Sha256: 3d5e98996c08b70d7320c0706f4cfdb4e16da6cbb2106d1bf0b5b1fd051ce668

Contents?: true

Size: 607 Bytes

Versions: 10

Compression:

Stored size: 607 Bytes

Contents

# frozen_string_literal: true

require 'app_store_connect/version'
require 'semantic'

namespace :version do
  desc 'Print current version'
  task :current do
    puts AppStoreConnect::VERSION
  end

  desc 'Increment version'
  task :increment do
    version = Semantic::Version.new(AppStoreConnect::VERSION)
    path = File.expand_path(File.join('..', 'app_store_connect', 'version.rb'), __dir__)

    File.open(path, 'r+') do |file|
      contents = file.read
      contents.gsub!(AppStoreConnect::VERSION, version.increment!(:minor).to_s)

      file.rewind
      file.write(contents)
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
app_store_connect-0.33.0 lib/tasks/version.rake
app_store_connect-0.32.0 lib/tasks/version.rake
app_store_connect-0.30.0 lib/tasks/version.rake
app_store_connect-0.29.0 lib/tasks/version.rake
app_store_connect-0.28.0 lib/tasks/version.rake
app_store_connect-0.27.0 lib/tasks/version.rake
app_store_connect-0.26.0 lib/tasks/version.rake
app_store_connect-0.25.0 lib/tasks/version.rake
app_store_connect-0.23.0 lib/tasks/version.rake
app_store_connect-0.22.0 lib/tasks/version.rake