summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-ruby/rubygems/files/rubygems-0.9.0-build-from-yaml.patch')
-rw-r--r--dev-ruby/rubygems/files/rubygems-0.9.0-build-from-yaml.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/dev-ruby/rubygems/files/rubygems-0.9.0-build-from-yaml.patch b/dev-ruby/rubygems/files/rubygems-0.9.0-build-from-yaml.patch
new file mode 100644
index 0000000..62f09b3
--- /dev/null
+++ b/dev-ruby/rubygems/files/rubygems-0.9.0-build-from-yaml.patch
@@ -0,0 +1,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