Sha256: 70d382a48213df0627eed41d15a455c7d793970af51d8a7647847b2a16147836
Contents?: true
Size: 656 Bytes
Versions: 5
Compression:
Stored size: 656 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__) new_version = version.increment!(:minor).to_s File.open(path, 'r+') do |file| contents = file.read contents.gsub!(AppStoreConnect::VERSION, new_version) file.rewind file.write(contents) new_version end end end
Version data entries
5 entries across 5 versions & 1 rubygems