lib/rails/generators/app_base.rb in railties-3.1.0.rc5 vs lib/rails/generators/app_base.rb in railties-3.1.0.rc6

- old
+ new

@@ -200,9 +200,21 @@ def javascript_gemfile_entry "gem '#{options[:javascript]}-rails'" unless options[:skip_javascript] end + def assets_gemfile_entry + <<-GEMFILE.strip_heredoc + # Gems used only for assets and not required + # in production environments by default. + group :assets do + gem 'sass-rails', #{options.dev? || options.edge? ? " :git => 'git://github.com/rails/sass-rails.git', :branch => '3-1-stable'" : " ~> 3.1.0.rc".inspect} + gem 'coffee-rails', #{options.dev? || options.edge? ? ":git => 'git://github.com/rails/coffee-rails.git', :branch => '3-1-stable'" : "~> 3.1.0.rc".inspect} + gem 'uglifier' + end + GEMFILE + end + def bundle_command(command) say_status :run, "bundle #{command}" # We are going to shell out rather than invoking Bundler::CLI.new(command) # because `rails new` loads the Thor gem and on the other hand bundler uses