Permalink
Browse files

Merge pull request #9955 from rubys/cleanup_app_gemfile

Cosmetic cleanup of generated Gemfile
  • Loading branch information...
2 parents 328c292 + 4e35dc0 commit d684de49713aeae3ff492f554fa220c8ae3c57a1 @rafaelfranca rafaelfranca committed Mar 27, 2013
Showing with 7 additions and 17 deletions.
  1. +7 −17 railties/lib/rails/generators/app_base.rb
@@ -179,26 +179,16 @@ def assets_gemfile_entry
gemfile = if options.dev? || options.edge?
<<-GEMFILE.gsub(/^ {12}/, '')
- # Gems used only for assets and not required
- # in production environments by default.
- group :assets do
- gem 'sprockets-rails', github: 'rails/sprockets-rails'
- gem 'sass-rails', github: 'rails/sass-rails'
- #{coffee_gemfile_entry if options[:skip_javascript]}
- #{javascript_runtime_gemfile_entry(2) if options[:skip_javascript]}
- gem 'uglifier', '>= 1.0.3'
- end
+ # Gems used for assets
+ gem 'sprockets-rails', github: 'rails/sprockets-rails'
+ gem 'sass-rails', github: 'rails/sass-rails'
+ gem 'uglifier', '>= 1.0.3'
GEMFILE
else
<<-GEMFILE.gsub(/^ {12}/, '')
- # Gems used only for assets and not required
- # in production environments by default.
- group :assets do
- gem 'sass-rails', '~> 4.0.0.beta1'
- #{coffee_gemfile_entry if options[:skip_javascript]}
- #{javascript_runtime_gemfile_entry(2) if options[:skip_javascript]}
- gem 'uglifier', '>= 1.0.3'
- end
+ # Gems used for assets
+ gem 'sass-rails', '~> 4.0.0.beta1'
+ gem 'uglifier', '>= 1.0.3'
GEMFILE
end

0 comments on commit d684de4

Please sign in to comment.