Sha256: f3fda904f31b420d9a8c1b985143a88a02cdc5394144aa873670f7165b93f46f

Contents?: true

Size: 744 Bytes

Versions: 17

Compression:

Stored size: 744 Bytes

Contents

require 'rake'
require 'rake/tasklib'

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

    def initialize
      yield self if block_given?

      define
    end

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

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

      task :release => 'gemcutter:release'
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
juwelier-2.4.9 lib/juwelier/rubygems_dot_org_tasks.rb
juwelier-2.4.7 lib/juwelier/rubygems_dot_org_tasks.rb
juwelier-2.4.6 lib/juwelier/rubygems_dot_org_tasks.rb
juwelier-2.4.5 lib/juwelier/rubygems_dot_org_tasks.rb
juwelier-2.4.4 lib/juwelier/rubygems_dot_org_tasks.rb
juwelier-2.4.1 lib/juwelier/rubygems_dot_org_tasks.rb
juwelier-2.4.0 lib/juwelier/rubygems_dot_org_tasks.rb
juwelier-2.3.6 lib/juwelier/rubygems_dot_org_tasks.rb
juwelier-2.3.4 lib/juwelier/rubygems_dot_org_tasks.rb
juwelier-2.3.2 lib/juwelier/rubygems_dot_org_tasks.rb
juwelier-2.3.0 lib/juwelier/rubygems_dot_org_tasks.rb
juwelier-2.2.3 lib/juwelier/rubygems_dot_org_tasks.rb
juwelier-2.2.1 lib/juwelier/rubygems_dot_org_tasks.rb
juwelier-2.1.3 lib/juwelier/rubygems_dot_org_tasks.rb
juwelier-2.1.2 lib/juwelier/rubygems_dot_org_tasks.rb
juwelier-2.1.1 lib/juwelier/rubygems_dot_org_tasks.rb
juwelier-2.1.0 lib/juwelier/rubygems_dot_org_tasks.rb