Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

gemspec assumes that user kept all generated files #4345

Merged
merged 1 commit into from

3 participants

@sunaku

This commit allows the user be lazy and not update
their gemspec's files directive after deleting
unwanted files from their generated Rails plugin.

@sunaku sunaku 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.
3def2d6
@spastorino spastorino merged commit a06a84b into rails:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jan 6, 2012
  1. @sunaku

    gemspec assumes that user kept all generated files

    sunaku authored
    This commit allows the user be lazy and not update
    their gemspec's `files` directive after deleting
    unwanted files from their generated Rails plugin.
This page is out of date. Refresh to see the latest.
View
2  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 -%>
Something went wrong with that request. Please try again.