diff options
author | Santiago Pastorino <santiago@wyeworks.com> | 2011-07-28 11:48:21 -0300 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2011-08-13 16:22:22 -0700 |
commit | 60f593dc548e5a62cd1a6de7512eaf344beff788 (patch) | |
tree | b81f05b56123249812533ec4aab1beb89d12abc8 /railties | |
parent | 47cc214600b9f099140a1df34bc68432ad1d2b23 (diff) | |
download | rails-60f593dc548e5a62cd1a6de7512eaf344beff788.tar.gz rails-60f593dc548e5a62cd1a6de7512eaf344beff788.tar.bz2 rails-60f593dc548e5a62cd1a6de7512eaf344beff788.zip |
Tidy up a bit plugin new gemspec
Diffstat (limited to 'railties')
-rw-r--r-- | railties/lib/rails/generators/rails/plugin_new/templates/%name%.gemspec | 10 |
1 files changed, 3 insertions, 7 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 b8d68ad0bc..8588e88077 100644 --- a/railties/lib/rails/generators/rails/plugin_new/templates/%name%.gemspec +++ b/railties/lib/rails/generators/rails/plugin_new/templates/%name%.gemspec @@ -18,14 +18,10 @@ Gem::Specification.new do |s| s.test_files = Dir["test/**/*"] <% end -%> - # If your gem is dependent on a specific version (or higher) of Rails: - <%= '# ' if options.dev? || options.edge? -%>s.add_dependency "rails", ">= <%= Rails::VERSION::STRING %>" - -<% unless options[:skip_javascript] || !full? -%> - # If your gem contains any <%= "#{options[:javascript]}-specific" %> javascript: + <%= '# ' if options.dev? || options.edge? -%>s.add_dependency "rails", "~> <%= Rails::VERSION::STRING %>" +<% if full? && !options[:skip_javascript] -%> # s.add_dependency "<%= "#{options[:javascript]}-rails" %>" - <% end -%> - # Declare development-specific dependencies: + s.add_development_dependency "<%= gem_for_database %>" end |