Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Remove options[:rubygems]

  • Loading branch information...
commit 00e6b9ce660aa8aeacc73d2fa3b903c0a0cb31ce 1 parent 770309b
Carl Lerche authored
View
1  lib/bundler/bundle.rb
@@ -33,7 +33,6 @@ def install(options = {})
update = options[:update]
cached = options[:cached]
- options[:rubygems] = @environment.rubygems
options[:system_gems] = @environment.system_gems
options[:manifest] = @environment.filename
options[:no_bundle] = no_bundle
View
2  lib/bundler/environment.rb
@@ -66,6 +66,8 @@ def gem_dependencies
@gem_dependencies ||= dependencies.map { |d| d.to_gem_dependency }
end
+ alias rubygems? rubygems
+
private
def default_sources
View
4 lib/bundler/templates/environment.erb
@@ -16,7 +16,7 @@ module Bundler
@gemfile = "#{dir}/<%= filename %>"
-<% if options[:rubygems] -%>
+<% if rubygems? -%>
require "rubygems"
@bundled_specs = {}
@@ -99,7 +99,7 @@ module Bundler
end
end
-<% if options[:rubygems] -%>
+<% if rubygems? -%>
module Gem
@loaded_stacks = Hash.new { |h,k| h[k] = [] }
Please sign in to comment.
Something went wrong with that request. Please try again.