diff options
author | Michael Herold <michael.j.herold@gmail.com> | 2014-09-05 17:02:05 -0500 |
---|---|---|
committer | Michael Herold <michael.j.herold@gmail.com> | 2014-09-05 17:02:05 -0500 |
commit | 9e39c76ec08528ee8c46da772f94d953d23fd3b4 (patch) | |
tree | 949be92547def6977524ed0321aabb72caa08ede /hashie.gemspec | |
parent | 81d92f02a19afe725a9c8c6657bed33e08edba69 (diff) | |
download | hashie-9e39c76ec08528ee8c46da772f94d953d23fd3b4.tar.gz |
Update the way files are added in the gemspec
Since the gem is packaged based on this file list, it seems pertinent to
only include files that users might want to see when they install the
gem, so let's explicitly list those files from the root that we want to
include.
Also, let's use Ruby globbing instead of `git ls-files` so it's all
in-Ruby calls.
Note: `.yardopts` is included explicitly to show the file list on
rdoc.info if later added. See [this Twitter conversation][twitter].
[twitter]: https://twitter.com/lsegal/status/270950893875245057
Diffstat (limited to 'hashie.gemspec')
-rw-r--r-- | hashie.gemspec | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/hashie.gemspec b/hashie.gemspec index d000399..eaeeda4 100644 --- a/hashie.gemspec +++ b/hashie.gemspec @@ -11,8 +11,10 @@ Gem::Specification.new do |gem| gem.license = 'MIT' gem.require_paths = ['lib'] - gem.files = `git ls-files`.split("\n") - gem.test_files = `git ls-files -- {test,spec,features}/*`.split("\n") + gem.files = %w(.yardopts CHANGELOG.md CONTRIBUTING.md LICENSE README.md UPGRADING.md Rakefile hashie.gemspec) + gem.files += Dir['lib/**/*.rb'] + gem.files += Dir['spec/**/*.rb'] + gem.test_files = Dir['spec/**/*.rb'] gem.add_development_dependency 'rake' gem.add_development_dependency 'rspec', '~> 3.0' |