Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix "method redefined" warnings.

  • Loading branch information...
commit b4b409de2f9edf08a8df78fde1b6c7536fc73db5 1 parent 4925f52
@stephencelis stephencelis authored
View
2  lib/bundler/rubygems_ext.rb
@@ -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
View
1  lib/bundler/rubygems_integration.rb
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.