Sha256: e9a8471a717a736de69b5dbf6e254fffc5ae1064eda6b6bfcdf981a0621784c3

Contents?: true

Size: 668 Bytes

Versions: 65

Compression:

Stored size: 668 Bytes

Contents

class Jeweler
  module Commands
    class ReleaseToRubygems
      include FileUtils

      attr_accessor :gemspec, :version, :output, :gemspec_helper

      def initialize
        self.output = $stdout
      end

      def run
        command = "gem push #{@gemspec_helper.gem_path}"
        output.puts "Executing #{command.inspect}:"
        sh command
      end

      def self.build_for(jeweler)
        command = new
        command.gemspec        = jeweler.gemspec
        command.gemspec_helper = jeweler.gemspec_helper
        command.version        = jeweler.version
        command.output         = jeweler.output
        command
      end
    end
  end
end

Version data entries

65 entries across 65 versions & 6 rubygems

Version Path
dirty_history-0.7.1 dirty_history/ruby/1.9.1/gems/jeweler-1.6.4/lib/jeweler/commands/release_to_rubygems.rb
dirty_history-0.7.0 dirty_history/ruby/1.9.1/gems/jeweler-1.6.4/lib/jeweler/commands/release_to_rubygems.rb
dirty_history-0.6.7 dirty_history/ruby/1.9.1/gems/jeweler-1.6.4/lib/jeweler/commands/release_to_rubygems.rb
dirty_history-0.6.6 dirty_history/ruby/1.9.1/gems/jeweler-1.6.4/lib/jeweler/commands/release_to_rubygems.rb
dirty_history-0.6.5 dirty_history/ruby/1.9.1/gems/jeweler-1.6.4/lib/jeweler/commands/release_to_rubygems.rb
dirty_history-0.6.4 dirty_history/ruby/1.9.1/gems/jeweler-1.6.4/lib/jeweler/commands/release_to_rubygems.rb
dirty_history-0.6.3 dirty_history/ruby/1.9.1/gems/jeweler-1.6.4/lib/jeweler/commands/release_to_rubygems.rb
dirty_history-0.6.2 dirty_history/ruby/1.9.1/gems/jeweler-1.6.4/lib/jeweler/commands/release_to_rubygems.rb
jeweler-1.8.4 lib/jeweler/commands/release_to_rubygems.rb
dirty_history-0.6.1 dirty_history/ruby/1.9.1/gems/jeweler-1.6.4/lib/jeweler/commands/release_to_rubygems.rb
dirty_history-0.6.0 dirty_history/ruby/1.9.1/gems/jeweler-1.6.4/lib/jeweler/commands/release_to_rubygems.rb
dirty_history-0.5.4 dirty_history/ruby/1.9.1/gems/jeweler-1.6.4/lib/jeweler/commands/release_to_rubygems.rb
dirty_history-0.5.3 dirty_history/ruby/1.9.1/gems/jeweler-1.6.4/lib/jeweler/commands/release_to_rubygems.rb
dirty_history-0.5.2 dirty_history/ruby/1.9.1/gems/jeweler-1.6.4/lib/jeweler/commands/release_to_rubygems.rb
dirty_history-0.5.1 dirty_history/ruby/1.9.1/gems/jeweler-1.6.4/lib/jeweler/commands/release_to_rubygems.rb
dirty_history-0.5.0 dirty_history/ruby/1.9.1/gems/jeweler-1.6.4/lib/jeweler/commands/release_to_rubygems.rb
chida_fib-0.1.0 shoulda/ruby/1.8/gems/jeweler-1.8.3/lib/jeweler/commands/release_to_rubygems.rb
jeweler-1.8.3 lib/jeweler/commands/release_to_rubygems.rb
jeweler-1.8.2 lib/jeweler/commands/release_to_rubygems.rb
jeweler-1.8.1 lib/jeweler/commands/release_to_rubygems.rb