Skip to content
Browse files

Modify Gem::Specification#self.from_yaml

This resets the nil values of a spec to default so the spec won't be invalid
  • Loading branch information...
1 parent d8670a9 commit 6f80fe7668c266b14cab03fcce9ad83069adfdad Josef Strzibny committed Sep 24, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/rubygems/specification.rb
View
3 lib/rubygems/specification.rb
@@ -851,7 +851,8 @@ def self.from_yaml(input)
end
spec.instance_eval { @specification_version ||= NONEXISTENT_SPECIFICATION_VERSION }
-
+ spec.reset_nil_attributes_to_default
+
spec
end

0 comments on commit 6f80fe7

Please sign in to comment.
Something went wrong with that request. Please try again.