Parent

Class Index [+]

Quicksearch

Jeweler::Commands::ValidateGemspec

Attributes

gemspec_helper[RW]
output[RW]

Public Class Methods

build_for(jeweler) click to toggle source
    # File lib/jeweler/commands/validate_gemspec.rb, line 20
20:       def self.build_for(jeweler)
21:         command = new
22: 
23:         command.gemspec_helper = jeweler.gemspec_helper
24:         command.output = jeweler.output
25: 
26:         command
27:       end
new() click to toggle source
   # File lib/jeweler/commands/validate_gemspec.rb, line 6
6:       def initialize
7:         self.output = $stdout
8:       end

Public Instance Methods

run() click to toggle source
    # File lib/jeweler/commands/validate_gemspec.rb, line 10
10:       def run
11:         begin
12:           gemspec_helper.parse
13:           output.puts "#{gemspec_helper.path} is valid."
14:         rescue Exception => e
15:           output.puts "#{gemspec_helper.path} is invalid. See the backtrace for more details."
16:           raise
17:         end
18:       end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.