Permalink
Browse files

Remove options[:rubygems]

  • Loading branch information...
1 parent 770309b commit 00e6b9ce660aa8aeacc73d2fa3b903c0a0cb31ce Carl Lerche committed Dec 16, 2009
Showing with 4 additions and 3 deletions.
  1. +0 −1 lib/bundler/bundle.rb
  2. +2 −0 lib/bundler/environment.rb
  3. +2 −2 lib/bundler/templates/environment.erb
View
@@ -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
@@ -66,6 +66,8 @@ def gem_dependencies
@gem_dependencies ||= dependencies.map { |d| d.to_gem_dependency }
end
+ alias rubygems? rubygems
+
private
def default_sources
@@ -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] = [] }

0 comments on commit 00e6b9c

Please sign in to comment.