Skip to content

Commit

Permalink
Oh, there isn't a universal spec loader
Browse files Browse the repository at this point in the history
git-svn-id: svn+ssh://rubyforge.org/var/svn/rubygems/trunk@2122 3d4018f9-ac1a-0410-99e9-8a154d859a19
  • Loading branch information
drbrain committed Apr 1, 2009
1 parent 0fc543f commit 23ca235
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/gauntlet_rubygems.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@ def run(name)
warn name
self.dirty = true

spec = Gem::Specification.load 'gemspec'
spec = begin
Gem::Specification.load 'gemspec'
rescue SyntaxError
Gem::Specification.from_yaml 'gemspec'
end
spec.validate

self.data[name] = false
Expand Down

0 comments on commit 23ca235

Please sign in to comment.