diff --git a/.rubocop.yml b/.rubocop.yml index e38fece..1097e9d 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -20,3 +20,12 @@ Style/Documentation: Style/StringLiterals: EnforcedStyle: double_quotes + +Style/HashEachMethods: + Enabled: true + +Style/HashTransformKeys: + Enabled: true + +Style/HashTransformValues: + Enabled: true diff --git a/fixturama.gemspec b/fixturama.gemspec index d1eb24d..faa8166 100644 --- a/fixturama.gemspec +++ b/fixturama.gemspec @@ -1,15 +1,40 @@ +# frozen_string_literal: true + +require_relative "lib/fixturama/version" + Gem::Specification.new do |gem| gem.name = "fixturama" - gem.version = "0.2.0" - gem.author = "Andrew Kozin (nepalez)" - gem.email = "andrew.kozin@gmail.com" - gem.homepage = "https://github.com/nepalez/fixturama" + gem.version = Fixturama::VERSION gem.summary = "A set of helpers to prettify specs with fixtures" + gem.description = <<~DESC + Use fixtures to extract verbosity from RSpec specifications: + - load data, + - stub classes, modules and constants, + - seed the database via FactoryBot. + DESC + gem.authors = ["Andrew Kozin (nepalez)"] + gem.license = "MIT" + gem.email = "andrew.kozin@gmail.com" + gem.homepage = "https://github.com/nepalez/fixturama" + gem.metadata = { + "bug_tracker_uri" => "https://github.com/nepalez/fixturama/issues", + "changelog_uri" => + "https://github.com/nepalez/fixturama/blob/master/CHANGELOG.md", + "documentation_uri" => "https://www.rubydocs.info/gems/fixturama", + "homepage_uri" => gem.homepage, + "source_code_uri" => "https://github.com/nepalez/fixturama" + } - gem.files = `git ls-files`.split($INPUT_RECORD_SEPARATOR) - gem.test_files = gem.files.grep(/^spec/) + gem.files = Dir["lib/**/*"] gem.extra_rdoc_files = Dir["README.md", "LICENSE", "CHANGELOG.md"] + gem.rdoc_options += [ + "--title", "Fixturama - fixtures on steroids", + "--main", "README.md", + "--line-numbers", + "--inline-source", + "--quiet" + ] gem.required_ruby_version = ">= 2.2" @@ -18,7 +43,7 @@ Gem::Specification.new do |gem| gem.add_runtime_dependency "hashie", "~> 3.0" gem.add_runtime_dependency "webmock", "~> 3.0" - gem.add_development_dependency "rake", "~> 10" - gem.add_development_dependency "rspec-its", "~> 1.0" - gem.add_development_dependency "rubocop", "~> 0.49" + gem.add_development_dependency "rake", "~> 13.0" + gem.add_development_dependency "rspec-its", "~> 1.3" + gem.add_development_dependency "rubocop", "~> 0.80" end diff --git a/lib/fixturama/version.rb b/lib/fixturama/version.rb new file mode 100644 index 0000000..ee98cb8 --- /dev/null +++ b/lib/fixturama/version.rb @@ -0,0 +1,3 @@ +module Fixturama + VERSION = "0.2.0" +end