diff options
| author | David Rodriguez <deivid.rodriguez@riseup.net> | 2024-05-13 15:02:43 +0200 |
|---|---|---|
| committer | git <svn-admin@ruby-lang.org> | 2024-05-13 18:04:55 +0000 |
| commit | 22dab739714208bde73a7c86ebcc2667e534b39e (patch) | |
| tree | 8fbb73c45c110cbae8d5b3694c7314674f6ad44f | |
| parent | b5e53e2f32e19e826eacbf9e2e301b1deae146df (diff) | |
[rubygems/rubygems] Don't depend on Pathname unnecessarily
https://github.com/rubygems/rubygems/commit/8c8aaecc48
| -rw-r--r-- | lib/bundler/rubygems_ext.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/bundler/rubygems_ext.rb b/lib/bundler/rubygems_ext.rb index 0cd94d60ce..fa61664a90 100644 --- a/lib/bundler/rubygems_ext.rb +++ b/lib/bundler/rubygems_ext.rb @@ -1,7 +1,5 @@ # frozen_string_literal: true -require "pathname" - require "rubygems" unless defined?(Gem) # We can't let `Gem::Source` be autoloaded in the `Gem::Specification#source` @@ -47,7 +45,7 @@ module Gem def full_gem_path if source.respond_to?(:root) - Pathname.new(loaded_from).dirname.expand_path(source.root).to_s + File.expand_path(File.dirname(loaded_from), source.root) else rg_full_gem_path end |
