Sha256: 2be5408e8020b2153e1d86300ec6f6f1a9b56d30d51ca1b59aaa9933a2a40e12

Contents?: true

Size: 965 Bytes

Versions: 87

Compression:

Stored size: 965 Bytes

Contents

# frozen_string_literal: true

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

module Avm
  module EacGenericBase0
    module Sources
      class Base < ::Avm::Sources::Base
        module VersionBump
          def after_sub_version_bump_do_changes
            # Do nothing
          end

          # @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(&:after_sub_version_bump_do_changes)
            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
end

Version data entries

87 entries across 87 versions & 3 rubygems

Version Path
eac_tools-0.53.0 sub/avm-eac_generic_base0/lib/avm/eac_generic_base0/sources/base/version_bump.rb
avm-eac_generic_base0-0.9.0 lib/avm/eac_generic_base0/sources/base/version_bump.rb
eac_tools-0.52.0 sub/avm-eac_generic_base0/lib/avm/eac_generic_base0/sources/base/version_bump.rb
eac_tools-0.51.0 sub/avm-eac_generic_base0/lib/avm/eac_generic_base0/sources/base/version_bump.rb
eac_tools-0.50.0 sub/avm-eac_generic_base0/lib/avm/eac_generic_base0/sources/base/version_bump.rb
eac_tools-0.49.0 sub/avm-eac_generic_base0/lib/avm/eac_generic_base0/sources/base/version_bump.rb
eac_tools-0.48.1 sub/avm-eac_generic_base0/lib/avm/eac_generic_base0/sources/base/version_bump.rb
eac_tools-0.48.0 sub/avm-eac_generic_base0/lib/avm/eac_generic_base0/sources/base/version_bump.rb
eac_tools-0.47.2 sub/avm-eac_generic_base0/lib/avm/eac_generic_base0/sources/base/version_bump.rb
eac_tools-0.47.1 sub/avm-eac_generic_base0/lib/avm/eac_generic_base0/sources/base/version_bump.rb
eac_tools-0.47.0 sub/avm-eac_generic_base0/lib/avm/eac_generic_base0/sources/base/version_bump.rb
eac_tools-0.46.0 sub/avm-eac_generic_base0/lib/avm/eac_generic_base0/sources/base/version_bump.rb
eac_tools-0.45.2 sub/avm-eac_generic_base0/lib/avm/eac_generic_base0/sources/base/version_bump.rb
eac_tools-0.45.1 sub/avm-eac_generic_base0/lib/avm/eac_generic_base0/sources/base/version_bump.rb
eac_tools-0.45.0 sub/avm-eac_generic_base0/lib/avm/eac_generic_base0/sources/base/version_bump.rb
eac_tools-0.44.0 sub/avm-eac_generic_base0/lib/avm/eac_generic_base0/sources/base/version_bump.rb
eac_tools-0.43.0 sub/avm-eac_generic_base0/lib/avm/eac_generic_base0/sources/base/version_bump.rb
eac_tools-0.42.0 sub/avm-eac_generic_base0/lib/avm/eac_generic_base0/sources/base/version_bump.rb
eac_tools-0.41.0 sub/avm-eac_generic_base0/lib/avm/eac_generic_base0/sources/base/version_bump.rb
eac_tools-0.40.0 sub/avm-eac_generic_base0/lib/avm/eac_generic_base0/sources/base/version_bump.rb