summaryrefslogtreecommitdiff
path: root/tool
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2022-07-31 00:04:16 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2022-08-05 09:44:18 +0900
commit44a0a66559ee4a03a84c27feca05e9b1b0f59df8 (patch)
treeb2b574c9e44bfafdbe3561e50f68bffd4c8a5373 /tool
parent41516b35418d6108c75d9f2190a846ded6a47108 (diff)
Move to tool/lib/bundled_gem.rb
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/6203
Diffstat (limited to 'tool')
-rw-r--r--tool/lib/bundled_gem.rb (renamed from tool/gem-unpack.rb)4
1 files changed, 3 insertions, 1 deletions
diff --git a/tool/gem-unpack.rb b/tool/lib/bundled_gem.rb
index 6310c3f92a..0b7d52b86a 100644
--- a/tool/gem-unpack.rb
+++ b/tool/lib/bundled_gem.rb
@@ -5,7 +5,9 @@ require 'rubygems/package'
# This library is used by "make extract-gems" to
# unpack bundled gem files.
-class << Gem
+module BundledGem
+ module_function
+
def unpack(file, *rest)
pkg = Gem::Package.new(file)
prepare_test(pkg.spec, *rest) {|dir| pkg.extract_files(dir)}