diff options
author | Suraj N. Kurapati <sunaku@gmail.com> | 2012-01-06 01:49:06 -0800 |
---|---|---|
committer | Suraj N. Kurapati <sunaku@gmail.com> | 2012-01-06 01:49:06 -0800 |
commit | 3def2d6113e552548119b3e5e459d2d8b3309d50 (patch) | |
tree | caa50885c0f167e187ecd2fa134919572a826f0f /railties/lib | |
parent | 705b29bcb15f940294f17645ad91c02731f6861a (diff) | |
download | rails-3def2d6113e552548119b3e5e459d2d8b3309d50.tar.gz rails-3def2d6113e552548119b3e5e459d2d8b3309d50.tar.bz2 rails-3def2d6113e552548119b3e5e459d2d8b3309d50.zip |
gemspec assumes that user kept all generated files
This commit allows the user be lazy and not update
their gemspec's `files` directive after deleting
unwanted files from their generated Rails plugin.
Diffstat (limited to 'railties/lib')
-rw-r--r-- | railties/lib/rails/generators/rails/plugin_new/templates/%name%.gemspec | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/rails/generators/rails/plugin_new/templates/%name%.gemspec b/railties/lib/rails/generators/rails/plugin_new/templates/%name%.gemspec index 8588e88077..82ffeebb86 100644 --- a/railties/lib/rails/generators/rails/plugin_new/templates/%name%.gemspec +++ b/railties/lib/rails/generators/rails/plugin_new/templates/%name%.gemspec @@ -13,7 +13,7 @@ Gem::Specification.new do |s| s.summary = "TODO: Summary of <%= camelized %>." s.description = "TODO: Description of <%= camelized %>." - s.files = Dir["{app,config,db,lib}/**/*"] + ["MIT-LICENSE", "Rakefile", "README.rdoc"] + s.files = Dir["{app,config,db,lib}/**/*", "MIT-LICENSE", "Rakefile", "README.rdoc"] <% unless options.skip_test_unit? -%> s.test_files = Dir["test/**/*"] <% end -%> |