It just removes test and any file that might be included accidentally (not
a big deal, just a safety-net I like to use)

Afaik bundler auto-expands this to the actual file list and keep the
modified gemspec in the bundler/foo-sha directory, there should not be any
slowdown.


On Wed, Jan 8, 2014 at 8:45 AM, Rafael Mendonça França <
notifications@github.com> wrote:

> In prototype-rails.gemspec:
>
> > @@ -5,8 +5,7 @@ Gem::Specification.new do |spec|
> >    spec.homepage = 'http://github.com/rails/prototype-rails'
> >    spec.author   = 'Xavier Noria'
> >    spec.email    = 'fxn@hashref.com'
> > -
> > -  spec.files = %w(README Rakefile Gemfile) + Dir['lib/**/*', 'vendor/**/*', 'test/**/*']
> > +  spec.files    = `git ls-files README Rakefile Gemfile lib vendor`.split("\n")
>
> We avoid to use shells in the gemspec because this can slow down the Rails
> boot. What are the files that can't be included?
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/rails/prototype-rails/pull/27/files#r8730137>
> .
>