Allows for testing of RDoc against every gem
# File lib/rdoc/gauntlet.rb, line 10
10: def run name
11: next if self.data[name]
12:
13: ri_dir = File.expand_path "~/.gauntlet/data/ri/#{name}"
14: FileUtils.rm_rf ri_dir if File.exist? ri_dir
15:
16: yaml = File.read 'gemspec'
17: spec = Gem::Specification.from_yaml yaml
18:
19: args = ]--ri --op #{ri_dir}]
20: args.push(*spec.rdoc_options)
21: args << spec.require_paths
22: args << spec.extra_rdoc_files
23: args = args.flatten.map { |a| a.to_s }
24: args.delete '--quiet'
25:
26: puts "#{name} - rdoc #{args.join ' '}"
27:
28: self.dirty = true
29: r = RDoc::RDoc.new
30:
31: begin
32: r.document args
33: self.data[name] = true
34: puts 'passed'
35: rescue StandardError, RDoc::Error => e
36: puts "failed - (#{e.class}) #{e.message}"
37: self.data[name] = false
38: end
39: rescue Gem::Exception
40: puts "bad gem #{name}"
41: ensure
42: puts
43: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.