summaryrefslogtreecommitdiff
path: root/lib/rubygems/commands/unpack_command.rb
diff options
context:
space:
mode:
authorbronzdoc <lsagastume1990@gmail.com>2019-06-23 20:08:34 -0600
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2019-07-31 07:47:01 +0800
commit6bd7772361685f861c6917462f9dead6254f2216 (patch)
treed286c04469ab12609ae7f06c005896cbd7820c7e /lib/rubygems/commands/unpack_command.rb
parent38daeded66afb4a7beafa47d82625a4eb40c112b (diff)
[rubygems/rubygems] Rename Gem::Package.metadata to Gem::Package.raw_spec
https://github.com/rubygems/rubygems/commit/a76f25dff0
Diffstat (limited to 'lib/rubygems/commands/unpack_command.rb')
-rw-r--r--lib/rubygems/commands/unpack_command.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/rubygems/commands/unpack_command.rb b/lib/rubygems/commands/unpack_command.rb
index 317fd44251..09829d873c 100644
--- a/lib/rubygems/commands/unpack_command.rb
+++ b/lib/rubygems/commands/unpack_command.rb
@@ -85,7 +85,7 @@ command help for an example.
end
if @options[:spec]
- spec, metadata = Gem::Package.metadata(path, security_policy)
+ spec, metadata = Gem::Package.raw_spec(path, security_policy)
if metadata.nil?
alert_error "--spec is unsupported on '#{name}' (old format gem)"
@@ -173,4 +173,5 @@ command help for an example.
path
end
+
end