Sha256: 24dd61018bd928622a7a921040970a2adcdc16c9b9294e5ba835cc9956541e16

Contents?: true

Size: 1.27 KB

Versions: 48

Compression:

Stored size: 1.27 KB

Contents

require 'rake'
require 'rake/tasklib'
require File.dirname(__FILE__)+"/jeweler"

class Jeweler
  class PrereleaseTasks < Rake::TaskLib
    attr_accessor :jeweler

    def initialize
      yield self if block_given?

      define
    end

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

    def define
      namespace :git do
        desc "Tag and push prerelease to git. (happens by default with `rake prerelease`)"
        task :prerelease do
          jeweler.prerelease_to_git
        end
      end

      namespace :gemspec do
        desc "Regenerate and validate gemspec, and then commits and pushes to git on develop branch"
        task :prerelease do
          jeweler.prerelease_gemspec
        end
      end

      desc "Verifies that it is a prerelease version."
      task :is_prerelease_version => :version_required do
        abort "it's not a prerelease version" unless jeweler.is_prerelease_version?
      end

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

      desc "Make a prerelease to rubygems."
      task :prerelease => [:is_prerelease_version, 'gemspec:prerelease', 'git:prerelease', 'rubygems:release']
    end
  end
end

Version data entries

48 entries across 48 versions & 5 rubygems

Version Path
buildr-hx-0.0.8.pre rake/jeweler_prerelease_tasks.rb
buildr-hx-0.0.7.pre rake/jeweler_prerelease_tasks.rb
buildr-hx-0.0.6.pre rake/jeweler_prerelease_tasks.rb
buildr-hx-0.0.5.pre rake/jeweler_prerelease_tasks.rb
buildr-hx-0.0.4.pre rake/jeweler_prerelease_tasks.rb
buildr-hx-0.0.3.pre rake/jeweler_prerelease_tasks.rb
buildr-hx-0.0.2.pre rake/jeweler_prerelease_tasks.rb
buildr-hx-0.0.1.pre rake/jeweler_prerelease_tasks.rb
buildr-as3-0.2.30.pre rake/jeweler_prerelease_tasks.rb
buildr-as3-0.2.29.pre rake/jeweler_prerelease_tasks.rb
buildr-as3-0.2.28.pre rake/jeweler_prerelease_tasks.rb
buildr-as3-0.2.27.pre rake/jeweler_prerelease_tasks.rb
buildr-as3-0.2.26.pre rake/jeweler_prerelease_tasks.rb
gator-as3-0.0.13.pre rake/jeweler_prerelease_tasks.rb
gator-0.0.25.pre rake/jeweler_prerelease_tasks.rb
buildr-as3-0.2.25.pre rake/jeweler_prerelease_tasks.rb
gator-0.0.24.pre rake/jeweler_prerelease_tasks.rb
buildr-as3-0.2.24.pre rake/jeweler_prerelease_tasks.rb
buildr-as3-0.2.23.pre rake/jeweler_prerelease_tasks.rb
gator-as3-0.0.12.pre rake/jeweler_prerelease_tasks.rb