class Jeweler::Commands::ValidateGemspec

Attributes

gemspec_helper[RW]
output[RW]

Public Instance Methods

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

Public Class Methods

build_for(jeweler) click to toggle source
# File lib/jeweler/commands/validate_gemspec.rb, line 20
def self.build_for(jeweler)
  command = new

  command.gemspec_helper = jeweler.gemspec_helper
  command.output = jeweler.output

  command
end
new() click to toggle source
# File lib/jeweler/commands/validate_gemspec.rb, line 6
def initialize
  self.output = $stdout
end