diff options
author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2019-11-07 12:56:17 +0100 |
---|---|---|
committer | David RodrÃguez <deivid.rodriguez@riseup.net> | 2019-11-07 12:56:17 +0100 |
commit | 305ff80ae0f5d8852d0d11c835b30a233d5f32f4 (patch) | |
tree | d51d43377a4475ab9f68c554c7dc21ece65a464c | |
parent | a1ecdbffceded635d615fc31d4823a2a67a8db0d (diff) | |
download | bundler-dead_code.tar.gz |
Remove rubygems integration dead codedead_code
-rw-r--r-- | lib/bundler/rubygems_integration.rb | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/lib/bundler/rubygems_integration.rb b/lib/bundler/rubygems_integration.rb index c4950d14e8..9b23a5c4c8 100644 --- a/lib/bundler/rubygems_integration.rb +++ b/lib/bundler/rubygems_integration.rb @@ -447,35 +447,6 @@ module Bundler Gem.clear_paths end - # This backports base_dir which replaces installation path - # RubyGems 1.8+ - def backport_base_dir - redefine_method(Gem::Specification, :base_dir) do - return Gem.dir unless loaded_from - File.dirname File.dirname loaded_from - end - end - - def backport_cache_file - redefine_method(Gem::Specification, :cache_dir) do - @cache_dir ||= File.join base_dir, "cache" - end - - redefine_method(Gem::Specification, :cache_file) do - @cache_file ||= File.join cache_dir, "#{full_name}.gem" - end - end - - def backport_spec_file - redefine_method(Gem::Specification, :spec_dir) do - @spec_dir ||= File.join base_dir, "specifications" - end - - redefine_method(Gem::Specification, :spec_file) do - @spec_file ||= File.join spec_dir, "#{full_name}.gemspec" - end - end - def undo_replacements @replaced_methods.each do |(sym, klass), method| redefine_method(klass, sym, method) |