From 9e39c76ec08528ee8c46da772f94d953d23fd3b4 Mon Sep 17 00:00:00 2001 From: Michael Herold Date: Fri, 5 Sep 2014 17:02:05 -0500 Subject: 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 --- hashie.gemspec | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'hashie.gemspec') 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' -- cgit v1.2.1