Skip to content

Commit

Permalink
Remove upgrading of rake. Use bundled version instead
Browse files Browse the repository at this point in the history
  • Loading branch information
nicoschuele committed Mar 11, 2017
1 parent 554994f commit 4b670f3
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions lib/railsbricks/app_generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -111,15 +111,13 @@ def generate_app

def update_essential_gems
new_line
wputs "----> Updating Rake & Bundler ... ", :info
system "#{@options[:gem_command]} install rake --no-rdoc --no-ri"
system "#{@options[:gem_command]} update rake"
wputs "----> Bundler ... ", :info
system "#{@options[:gem_command]} install bundler --no-rdoc --no-ri"
system "#{@options[:gem_command]} update bundler"
new_line
wputs "----> Rake & Bundler updated to their latest versions.", :info
wputs "----> Bundler updated to their latest versions.", :info
rescue
Errors.display_error("Required gems (rake & bundler) couldn't be updated properly. Stopping app creation.", true)
Errors.display_error("Required gem (bundler) couldn't be updated properly. Stopping app creation.", true)
abort
end

Expand Down

0 comments on commit 4b670f3

Please sign in to comment.