ronin.gemspec in ronin-2.0.0.beta1 vs ronin.gemspec in ronin-2.0.0.beta2
- old
+ new
@@ -24,17 +24,18 @@
glob = lambda { |patterns| gem.files & Dir[*patterns] }
gem.files = `git ls-files`.split($/)
gem.files = glob[gemspec['files']] if gemspec['files']
gem.files += Array(gemspec['generated_files'])
+ # exclude test files from the packages gem
+ gem.files -= glob[gemspec['test_files'] || 'spec/{**/}*']
gem.executables = gemspec.fetch('executables') do
glob['bin/*'].map { |path| File.basename(path) }
end
gem.default_executable = gem.executables.first if Gem::VERSION < '1.7.'
gem.extensions = glob[gemspec['extensions'] || 'ext/**/extconf.rb']
- gem.test_files = glob[gemspec['test_files'] || '{spec/{**/}*_spec.rb']
gem.extra_rdoc_files = glob[gemspec['extra_doc_files'] || '*.{txt,md}']
gem.require_paths = Array(gemspec.fetch('require_paths') {
%w[ext lib].select { |dir| File.directory?(dir) }
})