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.27.pre rake/jeweler_prerelease_tasks.rb
buildr-hx-0.0.26.pre rake/jeweler_prerelease_tasks.rb
buildr-hx-0.0.25.pre rake/jeweler_prerelease_tasks.rb
buildr-hx-0.0.24.pre rake/jeweler_prerelease_tasks.rb
buildr-hx-0.0.23.pre rake/jeweler_prerelease_tasks.rb
buildr-hx-0.0.22.pre rake/jeweler_prerelease_tasks.rb
buildr-hx-0.0.21.pre rake/jeweler_prerelease_tasks.rb
buildr-hx-0.0.20.pre rake/jeweler_prerelease_tasks.rb
buildr-hx-0.0.19.pre rake/jeweler_prerelease_tasks.rb
buildr-as3-0.2.33.pre rake/jeweler_prerelease_tasks.rb
buildr-hx-0.0.18.pre rake/jeweler_prerelease_tasks.rb
buildr-hx-0.0.17.pre rake/jeweler_prerelease_tasks.rb
buildr-hx-0.0.15.pre rake/jeweler_prerelease_tasks.rb
buildr-hx-0.0.16.pre rake/jeweler_prerelease_tasks.rb
buildr-hx-0.0.14.pre rake/jeweler_prerelease_tasks.rb
buildr-hx-0.0.12.pre rake/jeweler_prerelease_tasks.rb
buildr-as3-0.2.32.pre rake/jeweler_prerelease_tasks.rb
buildr-as3-0.2.31.pre rake/jeweler_prerelease_tasks.rb
buildr-html5-0.0.1.pre rake/jeweler_prerelease_tasks.rb
buildr-hx-0.0.9.pre rake/jeweler_prerelease_tasks.rb