diff options
Diffstat (limited to 'lib/rubygems/commands/build_command.rb')
-rw-r--r-- | lib/rubygems/commands/build_command.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rubygems/commands/build_command.rb b/lib/rubygems/commands/build_command.rb index c2e1abc92f..e1f0122c6c 100644 --- a/lib/rubygems/commands/build_command.rb +++ b/lib/rubygems/commands/build_command.rb @@ -47,7 +47,7 @@ class Gem::Commands::BuildCommand < Gem::Command def yaml?(filename) line = open(filename) { |f| line = f.gets } - result = line =~ %r{^--- *!ruby/object:Gem::Specification} + result = line =~ %r{!ruby/object:Gem::Specification} result end end |