summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2025-11-07 07:14:31 +0900
committergit <svn-admin@ruby-lang.org>2025-11-07 20:12:47 +0000
commit9767b31090f923200abff68657c6489e8f32cfde (patch)
tree2d1bd381a86db7ebd7b84ed188af1f85f2b5ae5b
parent4816969c28def82d2fe57045758f5b39b3ac8081 (diff)
[ruby/rubygems] Removed unnecessary loading of pathname
https://github.com/ruby/rubygems/commit/6e965b7872
-rw-r--r--lib/bundler/cli/gem.rb2
-rw-r--r--lib/bundler/compact_index_client.rb1
-rw-r--r--lib/bundler/vendor/thor/lib/thor/runner.rb2
-rw-r--r--spec/bundler/support/path.rb1
4 files changed, 1 insertions, 5 deletions
diff --git a/lib/bundler/cli/gem.rb b/lib/bundler/cli/gem.rb
index 23b29bf36b..20d678d66d 100644
--- a/lib/bundler/cli/gem.rb
+++ b/lib/bundler/cli/gem.rb
@@ -1,7 +1,5 @@
# frozen_string_literal: true
-require "pathname"
-
module Bundler
class CLI
Bundler.require_thor_actions
diff --git a/lib/bundler/compact_index_client.rb b/lib/bundler/compact_index_client.rb
index 37e2ccced8..6865e30dbc 100644
--- a/lib/bundler/compact_index_client.rb
+++ b/lib/bundler/compact_index_client.rb
@@ -1,6 +1,5 @@
# frozen_string_literal: true
-require "pathname"
require "set"
module Bundler
diff --git a/lib/bundler/vendor/thor/lib/thor/runner.rb b/lib/bundler/vendor/thor/lib/thor/runner.rb
index 95f8b16e31..f0ce6df96c 100644
--- a/lib/bundler/vendor/thor/lib/thor/runner.rb
+++ b/lib/bundler/vendor/thor/lib/thor/runner.rb
@@ -2,7 +2,7 @@ require_relative "../thor"
require_relative "group"
require "digest/sha2"
-require "pathname"
+require "pathname" unless defined?(Pathname)
class Bundler::Thor::Runner < Bundler::Thor #:nodoc:
map "-T" => :list, "-i" => :install, "-u" => :update, "-v" => :version
diff --git a/spec/bundler/support/path.rb b/spec/bundler/support/path.rb
index cc750f55d8..bbbf5cc908 100644
--- a/spec/bundler/support/path.rb
+++ b/spec/bundler/support/path.rb
@@ -1,6 +1,5 @@
# frozen_string_literal: true
-require "pathname"
require "rbconfig"
require_relative "env"