Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Tidy up a bit plugin new gemspec

  • Loading branch information...
commit d10f268d2057a4e9d46bd003afeceb4e910d1153 1 parent 5ab9132
@spastorino spastorino authored
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
Please sign in to comment.
Something went wrong with that request. Please try again.