summaryrefslogtreecommitdiff
path: root/lib/rubygems/commands/unpack_command.rb
diff options
context:
space:
mode:
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