summaryrefslogtreecommitdiff
blob: 62f09b38687acdeca44bcbf73d823e206b7f05ca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
diff -ur rubygems-0.9.0/lib/rubygems/specification.rb rubygems-0.9.0.new/lib/rubygems/specification.rb
--- rubygems-0.9.0/lib/rubygems/specification.rb	2006-06-27 01:46:30.000000000 +0700
+++ rubygems-0.9.0.new/lib/rubygems/specification.rb	2006-12-16 21:27:10.000000000 +0700
@@ -412,7 +412,7 @@
     def Specification.from_yaml(input)
       input = normalize_yaml_input(input)
       spec = YAML.load(input)
-      if(spec.class == FalseClass) then
+      if(spec.nil? || spec.class == FalseClass) then
         raise Gem::EndOfYAMLException
       end
       unless Specification === spec