Class | GemGauntlet |
In: |
lib/gauntlet_rubygems.rb
|
Parent: | Gauntlet |
GemGauntlet validates all current gems. Currently these packages are borked:
Asami-0.04 : No such file or directory - bin/Asami.rb ObjectGraph-1.0.1 : No such file or directory - bin/objectgraph evil-ruby-0.1.0 : authors must be Array of Strings fresh_cookies-1.0.0 : authors must be Array of Strings plugems_deploy-0.2.0 : authors must be Array of Strings pmsrb-0.2.0 : authors must be Array of Strings pqa-1.6 : authors must be Array of Strings rant-0.5.7 : authors must be Array of Strings rvsh-0.4.5 : No such file or directory - bin/rvsh xen-0.1.2.1 : authors must be Array of Strings
# File lib/gauntlet_rubygems.rb, line 41 41: def report 42: self.data.sort.reject { |k,v| !v }.each do |k,v| 43: puts "%-21s: %s" % [k, v] 44: end 45: end
# File lib/gauntlet_rubygems.rb, line 20 20: def run(name) 21: warn name 22: 23: spec = begin 24: Gem::Specification.load 'gemspec' 25: rescue SyntaxError 26: Gem::Specification.from_yaml File.read('gemspec') 27: end 28: spec.validate 29: 30: self.data[name] = false 31: self.dirty = true 32: rescue SystemCallError, Gem::InvalidSpecificationException => e 33: self.data[name] = e.message 34: self.dirty = true 35: end