lib/generators/blacklight/blacklight_generator.rb in blacklight-3.7.1 vs lib/generators/blacklight/blacklight_generator.rb in blacklight-3.7.2

- old
+ new

@@ -67,12 +67,16 @@ # Install Devise? def generate_devise_assets if options[:devise] gem "devise" - gem "devise-guests" - run "bundle install" + gem "devise-guests", "~> 0.2" + + Bundler.with_clean_env do + run "bundle install" + end + generate "devise:install" generate "devise", model_name.classify generate "devise:views" # add the #to_s to the model. @@ -153,11 +157,15 @@ end def add_sass_configuration gem 'compass-rails', '~> 1.0.0', :group => :assets gem 'compass-susy-plugin', '~> 0.9.0', :group => :assets - run "bundle install" - insert_into_file "config/application.rb", :after => "config.assets.enabled = true" do <<EOF + + Bundler.with_clean_env do + run "bundle install" + end + + insert_into_file "config/application.rb", :after => "config.assets.enabled = true" do <<EOF # Default SASS Configuration, check out https://github.com/rails/sass-rails for details config.assets.compress = !Rails.env.development? EOF