Sha256: 4f24e49bf75d750939c0b78513d7626040455dcd3f3c416ac09f2ab4624427e1

Contents?: true

Size: 801 Bytes

Versions: 3

Compression:

Stored size: 801 Bytes

Contents

require 'rake'
require 'rake/tasklib'

class Rake::Application
  def andrake

  end
end

class Andrake::Tasks < ::Rake::TaskLib
  def initialize
    define
  end

  private
  def define
    namespace :version do
      namespace :bump do
        desc "bump major version"
        task :major do
          manifest = Andrake::Manifest.load.bump_major!
          puts "major update to #{manifest.version}"
        end

        desc "bump minor version"
        task :minor do
          manifest = Andrake::Manifest.load.bump_minor!
          puts "minor update to #{manifest.version}"
        end

        desc "bump patch version"
        task :patch do
          manifest = Andrake::Manifest.load.bump_patch!
          puts "patch update to #{manifest.version}"
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
andrake-1.1.1 lib/andrake/tasks.rb
andrake-1.1.0 lib/andrake/tasks.rb
andrake-1.0.0 lib/andrake/tasks.rb