summaryrefslogtreecommitdiff
path: root/lib/rubygems/package.rb
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2022-04-06 19:10:43 +0900
committernagachika <nagachika@ruby-lang.org>2022-05-18 10:02:42 +0900
commitec5dae0d816261719b0b2f9595c072701c7036e0 (patch)
tree83c22dc4a714a0897fd1348034f1e6272e7fbf5b /lib/rubygems/package.rb
parent1a0c76f4e1cb779f40986285ec931078835495ae (diff)
Merge RubyGems-3.3.10 and Bundler-2.3.10
Diffstat (limited to 'lib/rubygems/package.rb')
-rw-r--r--lib/rubygems/package.rb11
1 files changed, 6 insertions, 5 deletions
diff --git a/lib/rubygems/package.rb b/lib/rubygems/package.rb
index a81c5f307c..2dd8e8c28e 100644
--- a/lib/rubygems/package.rb
+++ b/lib/rubygems/package.rb
@@ -3,7 +3,12 @@
# Copyright (C) 2004 Mauricio Julio Fernández Pradier
# See LICENSE.txt for additional licensing information.
#++
-#
+
+require_relative "../rubygems"
+require_relative 'security'
+require_relative 'user_interaction'
+
+##
# Example using a Gem::Package
#
# Builds a .gem file given a Gem::Specification. A .gem file is a tarball
@@ -41,10 +46,6 @@
# #files are the files in the .gem tar file, not the Ruby files in the gem
# #extract_files and #contents automatically call #verify
-require_relative "../rubygems"
-require_relative 'security'
-require_relative 'user_interaction'
-
class Gem::Package
include Gem::UserInteraction