summaryrefslogtreecommitdiff
path: root/tool
diff options
context:
space:
mode:
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)}