aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--railties/lib/rails/generators/rails/plugin_new/templates/%name%.gemspec10
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