diff options
author | Santiago Pastorino <santiago@wyeworks.com> | 2011-07-28 11:48:21 -0300 |
---|---|---|
committer | Santiago Pastorino <santiago@wyeworks.com> | 2011-07-28 11:48:21 -0300 |
commit | d10f268d2057a4e9d46bd003afeceb4e910d1153 (patch) | |
tree | 32a39a2d61949dfa8dcb453da714a897578f9443 /railties/lib | |
parent | 5ab9132c1909b589f6d62b9f9f1086649ce8b7ce (diff) | |
download | rails-d10f268d2057a4e9d46bd003afeceb4e910d1153.tar.gz rails-d10f268d2057a4e9d46bd003afeceb4e910d1153.tar.bz2 rails-d10f268d2057a4e9d46bd003afeceb4e910d1153.zip |
Tidy up a bit plugin new gemspec
Diffstat (limited to 'railties/lib')
-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 |