Skip to content

Commit

Permalink
Refactor gem specification
Browse files Browse the repository at this point in the history
  • Loading branch information
nepalez committed Mar 8, 2020
1 parent cd84d8b commit 02f8845
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 9 deletions.
9 changes: 9 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,12 @@ Style/Documentation:

Style/StringLiterals:
EnforcedStyle: double_quotes

Style/HashEachMethods:
Enabled: true

Style/HashTransformKeys:
Enabled: true

Style/HashTransformValues:
Enabled: true
43 changes: 34 additions & 9 deletions fixturama.gemspec
Original file line number Diff line number Diff line change
@@ -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 = "[email protected]"
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 = "[email protected]"
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"

Expand All @@ -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
3 changes: 3 additions & 0 deletions lib/fixturama/version.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module Fixturama
VERSION = "0.2.0"
end

0 comments on commit 02f8845

Please sign in to comment.