What to Exclude from Gemspec Files?

144 views
Skip to first unread message

Faraz Yashar

unread,
Jul 15, 2015, 6:43:02 PM7/15/15
to ruby-b...@googlegroups.com
I'm a bit unclear about what exactly needs to be kept out of the gemspec file directive.

The [RubyGems specification guide](http://guides.rubygems.org/specification-reference/#files) includes tests:

```
require 'rake'
spec.files = Dir['lib/   *.rb'] + Dir['bin/*']
spec.files += Dir['[A-Z]*'] + Dir['test/**/*']
spec.files.reject! { |fn| fn.include? "CVS" }
```

The default line that comes with bundler rejects tests but includes other things that aren't necessary for running a gem. Shouldn't dotfiles be ignored as well? What about the gemspec, Gemfile, Rakefile, or /bin?


Cheers,
Faraz
Reply all
Reply to author
Forward
Message has been deleted
0 new messages