diff options
author | Andre Arko <andre@arko.net> | 2011-09-17 12:09:21 -0700 |
---|---|---|
committer | Andre Arko <andre@arko.net> | 2011-09-17 12:09:21 -0700 |
commit | 7a624ab4c77f9129b5e77407319c5413a93823f6 (patch) | |
tree | 1e0943a4c109e1a6e707a53286449f05486a30af | |
parent | 2c04e28d2cf0d77ede90ec96e1db23615ff23ab2 (diff) | |
parent | 67cfb2f7d5b2c6e30cfed686074d23e32c4e5eaa (diff) | |
download | bundler-7a624ab4c77f9129b5e77407319c5413a93823f6.tar.gz |
Merge pull request #1403 from stephencelis/bundler
---
This pull request fixes a few warnings I encounter with the `-w` flag enabled when I run `bundle exec rake`.
Conflicts:
lib/bundler/rubygems_integration.rb
-rw-r--r-- | lib/bundler/rubygems_ext.rb | 2 | ||||
-rw-r--r-- | lib/bundler/rubygems_integration.rb | 1 | ||||
-rw-r--r-- | lib/bundler/source.rb | 1 |
3 files changed, 4 insertions, 0 deletions
diff --git a/lib/bundler/rubygems_ext.rb b/lib/bundler/rubygems_ext.rb index 54e72c53b7..20c08b7379 100644 --- a/lib/bundler/rubygems_ext.rb +++ b/lib/bundler/rubygems_ext.rb @@ -40,6 +40,7 @@ module Gem 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 @@ module Gem 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 diff --git a/lib/bundler/rubygems_integration.rb b/lib/bundler/rubygems_integration.rb index d6721c876a..0978942130 100644 --- a/lib/bundler/rubygems_integration.rb +++ b/lib/bundler/rubygems_integration.rb @@ -180,6 +180,7 @@ module Bundler 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 diff --git a/lib/bundler/source.rb b/lib/bundler/source.rb index 25b59927af..139964061b 100644 --- a/lib/bundler/source.rb +++ b/lib/bundler/source.rb @@ -490,6 +490,7 @@ module Bundler @revision = options["revision"] @submodules = options["submodules"] @update = false + @installed = nil end def self.from_lock(options) |