Sha256: 43fc43fc0bbf227c90e1ed8b66010d969e49a8fdc227ecebd70b1ab6d9c68bbf

Contents?: true

Size: 953 Bytes

Versions: 122

Compression:

Stored size: 953 Bytes

Contents

# frozen_string_literal: true

require 'eac_ruby_utils/core_ext'

module Avm
  module Scms
    class Commit
      enable_abstract_methods

      # @return [Array<Pathname>]
      def changed_files
        raise_abstract_method __method__
      end

      # @param other [Avm::Scms::Commit]
      # @return [Avm::Scms::Commit]
      def merge_with(_other)
        raise_abstract_method __method__
      end

      # @return [Array<Pathname>]
      def no_scm_changed_files
        changed_files.reject { |path| scm_file?(path) }
      end

      # @param new_message [String]
      def reword(_new_message)
        raise_abstract_method __method__
      end

      # @return [Array<Pathname>]
      def scm_changed_files
        changed_files.select { |path| scm_file?(path) }
      end

      # @param path [Pathname]
      # @return [TrueClass,FalseClass]
      def scm_file?(_path)
        raise_abstract_method __method__
      end
    end
  end
end

Version data entries

122 entries across 122 versions & 3 rubygems

Version Path
avm-0.52.0 lib/avm/scms/commit.rb
eac_tools-0.38.0 sub/avm/lib/avm/scms/commit.rb
avm-0.51.0 lib/avm/scms/commit.rb
eac_tools-0.37.2 sub/avm/lib/avm/scms/commit.rb
avm-0.50.0 lib/avm/scms/commit.rb
eac_tools-0.37.1 sub/avm/lib/avm/scms/commit.rb
avm-0.49.0 lib/avm/scms/commit.rb
eac_tools-0.37.0 sub/avm/lib/avm/scms/commit.rb
avm-0.48.0 lib/avm/scms/commit.rb
eac_tools-0.36.1 sub/avm/lib/avm/scms/commit.rb
avm-0.47.0 lib/avm/scms/commit.rb
eac_tools-0.36.0 sub/avm/lib/avm/scms/commit.rb
avm-0.46.0 lib/avm/scms/commit.rb
eac_tools-0.35.0 sub/avm/lib/avm/scms/commit.rb
eac_tools-0.34.0 sub/avm/lib/avm/scms/commit.rb
eac_tools-0.33.0 sub/avm/lib/avm/scms/commit.rb
avm-0.45.0 lib/avm/scms/commit.rb
eac_tools-0.32.0 sub/avm/lib/avm/scms/commit.rb
avm-0.44.0 lib/avm/scms/commit.rb
eac_tools-0.31.1 sub/avm/lib/avm/scms/commit.rb