Sha256: f890ba8a6938f9424b60d2274f023e0e5705d8cf070fe6b62783e5f7bc506a66

Contents?: true

Size: 604 Bytes

Versions: 35

Compression:

Stored size: 604 Bytes

Contents

require 'rake'

module Hoe::Gemcutter
  include Rake::DSL if defined?(Rake::DSL)

  def define_gemcutter_tasks
    desc "Push gem to gemcutter."
    task :release_to_gemcutter => [:clean, :package, :release_sanity] do
      pkg   = "pkg/#{spec.name}-#{spec.version}"
      gems  = Dir["#{pkg}*.gem"]
      gems.each do |g|
        # TODO - once gemcutter supports command invocation, use it.
        # We could still fail here due to --format executable
        sh Gem.ruby, "-S", "gem", "push", g
      end
    end

    task :release_to => :release_to_gemcutter
  end
end unless defined? Hoe::Gemcutter

Version data entries

35 entries across 35 versions & 1 rubygems

Version Path
hoe-3.5.2 lib/hoe/gemcutter.rb
hoe-3.5.1 lib/hoe/gemcutter.rb
hoe-3.5.0 lib/hoe/gemcutter.rb
hoe-3.4.1 lib/hoe/gemcutter.rb
hoe-3.4.0 lib/hoe/gemcutter.rb
hoe-3.3.1 lib/hoe/gemcutter.rb
hoe-3.3.0 lib/hoe/gemcutter.rb
hoe-3.2.0 lib/hoe/gemcutter.rb
hoe-3.1.1 lib/hoe/gemcutter.rb
hoe-3.1.0 lib/hoe/gemcutter.rb
hoe-3.0.8 lib/hoe/gemcutter.rb
hoe-3.0.7 lib/hoe/gemcutter.rb
hoe-3.0.6 lib/hoe/gemcutter.rb
hoe-3.0.5 lib/hoe/gemcutter.rb
hoe-3.0.4 lib/hoe/gemcutter.rb
hoe-3.0.3 lib/hoe/gemcutter.rb
hoe-3.0.2 lib/hoe/gemcutter.rb
hoe-3.0.1 lib/hoe/gemcutter.rb
hoe-3.0.0 lib/hoe/gemcutter.rb
hoe-2.16.1 lib/hoe/gemcutter.rb