Warnings #1403

Merged
merged 3 commits into from Sep 17, 2011
@@ -40,6 +40,7 @@ def load_paths
end
# RubyGems 1.8+ used only.
+ remove_method :gem_dir if method_defined? :gem_dir
def gem_dir
full_gem_path
end
@@ -151,6 +152,7 @@ class Platform
MSWIN = Gem::Platform.new('mswin32')
MINGW = Gem::Platform.new('x86-mingw32')
+ undef_method :hash if method_defined? :hash
def hash
@cpu.hash ^ @os.hash ^ @version.hash
end
@@ -180,6 +180,7 @@ def stub_source_index137(specs)
end
def stub_source_index170(specs)
+ Gem::SourceIndex.send(:alias_method, :old_initialize, :initialize)
Gem::SourceIndex.send(:define_method, :initialize) do |*args|
@gems = {}
# You're looking at this thinking: Oh! This is how I make those
@@ -205,7 +206,7 @@ def replace_bin_path(specs)
gem_class = (class << Gem ; self ; end)
gem_class.send(:remove_method, :bin_path)
gem_class.send(:define_method, :bin_path) do |name, *args|
- exec_name, *reqs = args
+ exec_name, = args
if exec_name == 'bundle'
return ENV['BUNDLE_BIN_PATH']
View
@@ -490,6 +490,7 @@ def initialize(options)
@revision = options["revision"]
@submodules = options["submodules"]
@update = false
+ @installed = nil
end
def self.from_lock(options)