Sha256: 89f023a8f83b63d460ba8d0c609f1d30e23eca30d2559ceec4a73c4552991755

Contents?: true

Size: 733 Bytes

Versions: 120

Compression:

Stored size: 733 Bytes

Contents

require 'rake'
require 'rake/tasklib'

class Jeweler
  # Rake tasks for putting a Jeweler gem on Gemcutter.
  #
  # Jeweler::Tasks.new needs to be used before this.
  #
  # Basic usage:
  #
  #     Jeweler::RubygemsDotOrgTasks.new
  #
  # Easy enough, right?
  class RubygemsDotOrgTasks < ::Rake::TaskLib
    attr_accessor :jeweler

    def initialize
      yield self if block_given?

      define
    end

    def jeweler
      @jeweler ||= Rake.application.jeweler
    end

    def define
      namespace :rubygems do
        desc "Release gem to Gemcutter"
        task :release => [:gemspec, :build] do
          jeweler.release_gem_to_rubygems
        end
      end

      task :release => 'rubygems:release'
    end
  end
end

Version data entries

120 entries across 66 versions & 6 rubygems

Version Path
jeweler-2.1.1 lib/jeweler/rubygems_tasks.rb
jeweler-2.0.1 lib/jeweler/rubygems_tasks.rb
jeweler-2.0.0 lib/jeweler/rubygems_tasks.rb
jeweler-1.8.8 lib/jeweler/rubygems_tasks.rb
jeweler-1.8.7 lib/jeweler/rubygems_tasks.rb
jeweler-1.8.6 lib/jeweler/rubygems_tasks.rb
jeweler-1.8.5 lib/jeweler/rubygems_tasks.rb
devise_sociable-0.1.0 vendor/bundle/gems/jeweler-1.8.4/lib/jeweler/rubygems_tasks.rb
dirty_history-0.7.3 dirty_history/ruby/1.9.1/gems/jeweler-1.6.4/lib/jeweler/rubygems_tasks.rb
dirty_history-0.7.3 dirty_history/ruby/1.9.1/gems/jeweler-1.5.2/lib/jeweler/rubygems_tasks.rb
dirty_history-0.7.2 dirty_history/ruby/1.9.1/gems/jeweler-1.6.4/lib/jeweler/rubygems_tasks.rb
dirty_history-0.7.2 dirty_history/ruby/1.9.1/gems/jeweler-1.5.2/lib/jeweler/rubygems_tasks.rb
dirty_history-0.7.1 dirty_history/ruby/1.9.1/gems/jeweler-1.6.4/lib/jeweler/rubygems_tasks.rb
dirty_history-0.7.1 dirty_history/ruby/1.9.1/gems/jeweler-1.5.2/lib/jeweler/rubygems_tasks.rb
dirty_history-0.7.0 dirty_history/ruby/1.9.1/gems/jeweler-1.5.2/lib/jeweler/rubygems_tasks.rb
dirty_history-0.7.0 dirty_history/ruby/1.9.1/gems/jeweler-1.6.4/lib/jeweler/rubygems_tasks.rb
dirty_history-0.6.7 dirty_history/ruby/1.9.1/gems/jeweler-1.5.2/lib/jeweler/rubygems_tasks.rb
dirty_history-0.6.7 dirty_history/ruby/1.9.1/gems/jeweler-1.6.4/lib/jeweler/rubygems_tasks.rb
dirty_history-0.6.6 dirty_history/ruby/1.9.1/gems/jeweler-1.5.2/lib/jeweler/rubygems_tasks.rb
dirty_history-0.6.6 dirty_history/ruby/1.9.1/gems/jeweler-1.6.4/lib/jeweler/rubygems_tasks.rb