Sha256: 4520670153dc1ab09b40aa5d2b034449032108b01840f0d291a5e3e95fb76882

Contents?: true

Size: 764 Bytes

Versions: 112

Compression:

Stored size: 764 Bytes

Contents

# frozen_string_literal: true

require 'avm/sources/base'
require 'eac_ruby_utils/core_ext'

module Avm
  module Sources
    class Base
      module VersionBump
        # @return [Avm::Scms::Commit, nil]
        def version_bump(target_version)
          scm.commit_if_change(version_bump_commit_message(target_version)) do
            version_bump_do_changes(target_version)
            parent.if_present(&:on_sub_updated)
          end
        end

        # @return [String]
        def version_bump_commit_message(target_version)
          i18n_translate(__method__, version: target_version, __locale: locale)
        end

        def version_bump_do_changes(_target_version)
          raise_abstract_method(__METHOD__)
        end
      end
    end
  end
end

Version data entries

112 entries across 112 versions & 2 rubygems

Version Path
avm-0.86.0 lib/avm/sources/base/version_bump.rb
eac_tools-0.86.4 sub/avm/lib/avm/sources/base/version_bump.rb
eac_tools-0.86.3 sub/avm/lib/avm/sources/base/version_bump.rb
avm-0.85.0 lib/avm/sources/base/version_bump.rb
eac_tools-0.86.2 sub/avm/lib/avm/sources/base/version_bump.rb
avm-0.84.3 lib/avm/sources/base/version_bump.rb
eac_tools-0.86.1 sub/avm/lib/avm/sources/base/version_bump.rb
eac_tools-0.84.2 sub/avm/lib/avm/sources/base/version_bump.rb
avm-0.84.2 lib/avm/sources/base/version_bump.rb
eac_tools-0.84.1 sub/avm/lib/avm/sources/base/version_bump.rb
avm-0.84.1 lib/avm/sources/base/version_bump.rb
eac_tools-0.84.0 sub/avm/lib/avm/sources/base/version_bump.rb
avm-0.84.0 lib/avm/sources/base/version_bump.rb
eac_tools-0.83.0 sub/avm/lib/avm/sources/base/version_bump.rb
avm-0.83.0 lib/avm/sources/base/version_bump.rb
eac_tools-0.82.0 sub/avm/lib/avm/sources/base/version_bump.rb
avm-0.82.0 lib/avm/sources/base/version_bump.rb
eac_tools-0.81.0 sub/avm/lib/avm/sources/base/version_bump.rb
eac_tools-0.80.0 sub/avm/lib/avm/sources/base/version_bump.rb
avm-0.81.0 lib/avm/sources/base/version_bump.rb