summaryrefslogtreecommitdiff
path: root/tool/gem-unpack.rb
diff options
context:
space:
mode:
authorhsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-10-12 06:24:59 +0000
committerhsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-10-12 06:24:59 +0000
commit2e5fffa7cf8ca1047c26ea8b3d98d2f1d8f11dcf (patch)
tree3b73cddc0f5eaa23cdb9d097d531015ca02bdbf9 /tool/gem-unpack.rb
parent2db9a0db991bff28ea55fa04a291ff5db02a7b72 (diff)
* tool/downloader.rb: Removed verification of gem certification.
Because signed gem is not working on rubygems ecosystem. * tool/gem-unpack.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56399 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'tool/gem-unpack.rb')
-rwxr-xr-xtool/gem-unpack.rb3
1 files changed, 0 insertions, 3 deletions
diff --git a/tool/gem-unpack.rb b/tool/gem-unpack.rb
index f069d144ec..0ddcea0704 100755
--- a/tool/gem-unpack.rb
+++ b/tool/gem-unpack.rb
@@ -5,10 +5,7 @@ require 'rubygems/package'
# unpack bundled gem files.
def Gem.unpack(file, dir = nil)
- policy = Gem::Security::LowSecurity
- (policy = policy.dup).ui = Gem::SilentUI.new
pkg = Gem::Package.new(file)
- pkg.security_policy = policy
spec = pkg.spec
target = spec.full_name
target = File.join(dir, target) if dir