Sha256: 7a2ef397a51da8da2901f58e1f4a99ba97cf9d4f6b91ce3b5fa7b281b7d8cdae

Contents?: true

Size: 644 Bytes

Versions: 159

Compression:

Stored size: 644 Bytes

Contents

class Jeweler
  module Commands
    class ValidateGemspec
      attr_accessor :gemspec_helper, :output

      def initialize
        self.output = $stdout
      end

      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

      def self.build_for(jeweler)
        command = new

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

        command
      end
    end
  end
end

Version data entries

159 entries across 105 versions & 14 rubygems

Version Path
dirty_history-0.6.4 dirty_history/ruby/1.9.1/gems/jeweler-1.6.4/lib/jeweler/commands/validate_gemspec.rb
dirty_history-0.6.3 dirty_history/ruby/1.9.1/gems/jeweler-1.6.4/lib/jeweler/commands/validate_gemspec.rb
dirty_history-0.6.3 dirty_history/ruby/1.9.1/gems/jeweler-1.5.2/lib/jeweler/commands/validate_gemspec.rb
dirty_history-0.6.2 dirty_history/ruby/1.9.1/gems/jeweler-1.5.2/lib/jeweler/commands/validate_gemspec.rb
dirty_history-0.6.2 dirty_history/ruby/1.9.1/gems/jeweler-1.6.4/lib/jeweler/commands/validate_gemspec.rb
jeweler-1.8.4 lib/jeweler/commands/validate_gemspec.rb
dirty_history-0.6.1 dirty_history/ruby/1.9.1/gems/jeweler-1.5.2/lib/jeweler/commands/validate_gemspec.rb
dirty_history-0.6.1 dirty_history/ruby/1.9.1/gems/jeweler-1.6.4/lib/jeweler/commands/validate_gemspec.rb
dirty_history-0.6.0 dirty_history/ruby/1.9.1/gems/jeweler-1.5.2/lib/jeweler/commands/validate_gemspec.rb
dirty_history-0.6.0 dirty_history/ruby/1.9.1/gems/jeweler-1.6.4/lib/jeweler/commands/validate_gemspec.rb
dirty_history-0.5.4 dirty_history/ruby/1.9.1/gems/jeweler-1.5.2/lib/jeweler/commands/validate_gemspec.rb
dirty_history-0.5.4 dirty_history/ruby/1.9.1/gems/jeweler-1.6.4/lib/jeweler/commands/validate_gemspec.rb
dirty_history-0.5.3 dirty_history/ruby/1.9.1/gems/jeweler-1.5.2/lib/jeweler/commands/validate_gemspec.rb
dirty_history-0.5.3 dirty_history/ruby/1.9.1/gems/jeweler-1.6.4/lib/jeweler/commands/validate_gemspec.rb
dirty_history-0.5.2 dirty_history/ruby/1.9.1/gems/dirty_history-0.2.0/dirty_history/ruby/1.9.1/gems/dirty_history-0.2.0/dirty_history/ruby/1.9.1/gems/jeweler-1.5.2/lib/jeweler/commands/validate_gemspec.rb
dirty_history-0.5.2 dirty_history/ruby/1.9.1/gems/dirty_history-0.2.0/dirty_history/ruby/1.9.1/gems/jeweler-1.5.2/lib/jeweler/commands/validate_gemspec.rb
dirty_history-0.5.2 dirty_history/ruby/1.9.1/gems/jeweler-1.5.2/lib/jeweler/commands/validate_gemspec.rb
dirty_history-0.5.2 dirty_history/ruby/1.9.1/gems/jeweler-1.6.4/lib/jeweler/commands/validate_gemspec.rb
dirty_history-0.5.1 dirty_history/ruby/1.9.1/gems/jeweler-1.6.4/lib/jeweler/commands/validate_gemspec.rb
dirty_history-0.5.1 dirty_history/ruby/1.9.1/gems/dirty_history-0.2.0/dirty_history/ruby/1.9.1/gems/dirty_history-0.2.0/dirty_history/ruby/1.9.1/gems/jeweler-1.5.2/lib/jeweler/commands/validate_gemspec.rb