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