Sha256: f2355550223b57f2519a400d8d6fbbea96521c563d3238c0a921d987c96077b3

Contents?: true

Size: 460 Bytes

Versions: 37

Compression:

Stored size: 460 Bytes

Contents

# frozen_string_literal: true

module Nanoc::Int::OutdatednessRules
  class RulesModified < Nanoc::Int::OutdatednessRule
    affects_props :compiled_content, :path

    def apply(obj, outdatedness_checker)
      seq_old = outdatedness_checker.action_sequence_store[obj]
      seq_new = outdatedness_checker.action_sequence_for(obj).serialize
      unless seq_old.eql?(seq_new)
        Nanoc::Int::OutdatednessReasons::RulesModified
      end
    end
  end
end

Version data entries

37 entries across 37 versions & 1 rubygems

Version Path
nanoc-4.10.1 lib/nanoc/base/services/outdatedness_rules/rules_modified.rb
nanoc-4.10.0 lib/nanoc/base/services/outdatedness_rules/rules_modified.rb
nanoc-4.9.9 lib/nanoc/base/services/outdatedness_rules/rules_modified.rb
nanoc-4.9.8 lib/nanoc/base/services/outdatedness_rules/rules_modified.rb
nanoc-4.9.7 lib/nanoc/base/services/outdatedness_rules/rules_modified.rb
nanoc-4.9.6 lib/nanoc/base/services/outdatedness_rules/rules_modified.rb
nanoc-4.9.5 lib/nanoc/base/services/outdatedness_rules/rules_modified.rb
nanoc-4.9.4 lib/nanoc/base/services/outdatedness_rules/rules_modified.rb
nanoc-4.9.3 lib/nanoc/base/services/outdatedness_rules/rules_modified.rb
nanoc-4.9.2 lib/nanoc/base/services/outdatedness_rules/rules_modified.rb
nanoc-4.9.1 lib/nanoc/base/services/outdatedness_rules/rules_modified.rb
nanoc-4.9.0 lib/nanoc/base/services/outdatedness_rules/rules_modified.rb
nanoc-4.8.19 lib/nanoc/base/services/outdatedness_rules/rules_modified.rb
nanoc-4.8.18 lib/nanoc/base/services/outdatedness_rules/rules_modified.rb
nanoc-4.8.17 lib/nanoc/base/services/outdatedness_rules/rules_modified.rb
nanoc-4.8.16 lib/nanoc/base/services/outdatedness_rules/rules_modified.rb
nanoc-4.8.15 lib/nanoc/base/services/outdatedness_rules/rules_modified.rb
nanoc-4.8.14 lib/nanoc/base/services/outdatedness_rules/rules_modified.rb
nanoc-4.8.13 lib/nanoc/base/services/outdatedness_rules/rules_modified.rb
nanoc-4.8.12 lib/nanoc/base/services/outdatedness_rules/rules_modified.rb