Sha256: 7ecaf59b52bf2b298c0af1b14cb1058c41580cec77d92d94d8037ffe73151e88

Contents?: true

Size: 574 Bytes

Versions: 8

Compression:

Stored size: 574 Bytes

Contents

# Copyright (c) 2020 Jerome Arbez-Gindre
# frozen_string_literal: true

module DefMastership
  # Update definition checksum with calculated one
  class UpdateDefChecksumModifier < ModifierBase
    def replacements
      %i[replace]
    end

    def new_line_modifier(config, adoc_texts)
      document = Document.new
      adoc_texts.each do |adoc_file, _|
        document.parse_file_with_preprocessor(adoc_file)
      end
      line_modifier = UpdateDefChecksumLineModifier.from_config(config)
      line_modifier.document = document
      line_modifier
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
defmastership-1.0.17 lib/defmastership/update_def_checksum_modifier.rb
defmastership-1.0.16 lib/defmastership/update_def_checksum_modifier.rb
defmastership-1.0.15 lib/defmastership/update_def_checksum_modifier.rb
defmastership-1.0.14 lib/defmastership/update_def_checksum_modifier.rb
defmastership-1.0.13 lib/defmastership/update_def_checksum_modifier.rb
defmastership-1.0.12 lib/defmastership/update_def_checksum_modifier.rb
defmastership-1.0.11 lib/defmastership/update_def_checksum_modifier.rb
defmastership-1.0.10 lib/defmastership/update_def_checksum_modifier.rb