Sha256: b2bbbc6eda775beebca672c47e3ec4c0ac512563cf29b09175e4865562ae460a

Contents?: true

Size: 550 Bytes

Versions: 5

Compression:

Stored size: 550 Bytes

Contents

require 'thor'
require 'json'

require 'zendesk_apps_tools/manifest_handler'

module ZendeskAppsTools
  class Bump < Thor
    include Thor::Actions
    prepend ManifestHandler

    desc 'major', 'Bump major version'
    def major
      semver[:major] += 1
      semver[:minor] = 0
      semver[:patch] = 0
    end

    desc 'minor', 'Bump minor version'
    def minor
      semver[:minor] += 1
      semver[:patch] = 0
    end

    desc 'patch', 'Bump patch version'
    def patch
      semver[:patch] += 1
    end

    default_task :patch
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
zendesk_apps_tools-1.23.1 lib/zendesk_apps_tools/bump.rb
zendesk_apps_tools-1.23.0 lib/zendesk_apps_tools/bump.rb
zendesk_apps_tools-1.22.6 lib/zendesk_apps_tools/bump.rb
zendesk_apps_tools-1.22.5 lib/zendesk_apps_tools/bump.rb
zendesk_apps_tools-1.22.4 lib/zendesk_apps_tools/bump.rb