Skip to content
Browse files

Tidy up a bit plugin new gemspec

  • Loading branch information...
1 parent bba9c8d commit f2c83093ac1bccfc856371b1b5b14e99068411f7 @spastorino spastorino committed Jul 28, 2011
Showing with 3 additions and 7 deletions.
  1. +3 −7 railties/lib/rails/generators/rails/plugin_new/templates/%name%.gemspec
View
10 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

0 comments on commit f2c8309

Please sign in to comment.
Something went wrong with that request. Please try again.