Skip to content
This repository has been archived by the owner on Nov 27, 2023. It is now read-only.

Commit

Permalink
Update gemspec file to latest style standards (#21)
Browse files Browse the repository at this point in the history
- Remove test_files attribute since it's deprecated and no longer used.
rubygems/guides#90 (comment)
- Use Dir[] instead of git ls-files to specify gem files, in order to improve readability and exclude unnecessary files.
- Don't include development files and RSpec tests in the built gem.
  • Loading branch information
epistrephein authored Jan 16, 2020
1 parent 1b9bdd0 commit 9f73f2c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/).

#### Changed
- Rename attr_reader `conn` to `connection` ([#18](https://github.com/epistrephein/rarbg/pull/18)).
- Remove unnecessary files and attributes from gemspec ([#21](https://github.com/epistrephein/rarbg/pull/21)).
- Update version constraints for Rake, following v13.0 release ([#15](https://github.com/epistrephein/rarbg/pull/15)).
- Update version constraints for RuboCop in order to avoid breaking changes ([#16](https://github.com/epistrephein/rarbg/pull/16)).
- Tweak and reorder documentation ([#18](https://github.com/epistrephein/rarbg/pull/18)).
Expand Down
10 changes: 4 additions & 6 deletions rarbg.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,6 @@ Gem::Specification.new do |spec|
spec.homepage = 'https://github.com/epistrephein/rarbg'
spec.license = 'MIT'

spec.files = `git ls-files -z`.split("\x0").reject do |f|
f.match(%r{^(spec|docs)/})
end
spec.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
spec.require_path = 'lib'

spec.metadata = {
'bug_tracker_uri' => 'https://github.com/epistrephein/rarbg/issues',
'changelog_uri' => 'https://github.com/epistrephein/rarbg/blob/master/CHANGELOG.md',
Expand All @@ -29,6 +23,10 @@ Gem::Specification.new do |spec|
'source_code_uri' => 'https://github.com/epistrephein/rarbg'
}

spec.files = Dir['lib/**/*.rb', 'rarbg.gemspec']
spec.files += Dir['README.md', 'CHANGELOG.md', 'LICENSE']
spec.require_path = 'lib'

spec.required_ruby_version = '>= 2.0'

spec.add_runtime_dependency 'faraday', '~> 0.12'
Expand Down

0 comments on commit 9f73f2c

Please sign in to comment.