Sha256: c7c20beb35e3bb8f64094adc94e9e819472a5202000c5703545b899227ce3dd2

Contents?: true

Size: 677 Bytes

Versions: 17

Compression:

Stored size: 677 Bytes

Contents

require 'rake'

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

  ##
  # Define release_to_gemcutter and attach it to the release task.

  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

17 entries across 17 versions & 1 rubygems

Version Path
hoe-3.13.0 lib/hoe/gemcutter.rb
hoe-3.12.0 lib/hoe/gemcutter.rb
hoe-3.11.0 lib/hoe/gemcutter.rb
hoe-3.10.0 lib/hoe/gemcutter.rb
hoe-3.9.0 lib/hoe/gemcutter.rb
hoe-3.8.1 lib/hoe/gemcutter.rb
hoe-3.8.0 lib/hoe/gemcutter.rb
hoe-3.7.4 lib/hoe/gemcutter.rb
hoe-3.7.3 lib/hoe/gemcutter.rb
hoe-3.7.2 lib/hoe/gemcutter.rb
hoe-3.7.1 lib/hoe/gemcutter.rb
hoe-3.7.0 lib/hoe/gemcutter.rb
hoe-3.6.3 lib/hoe/gemcutter.rb
hoe-3.6.2 lib/hoe/gemcutter.rb
hoe-3.6.1 lib/hoe/gemcutter.rb
hoe-3.6.0 lib/hoe/gemcutter.rb
hoe-3.5.3 lib/hoe/gemcutter.rb