Sha256: 5920c83c83e72607f76a1bfe8455c9f1d15634d6fc8b18fe605d3e9a9b7c9280

Contents?: true

Size: 1.5 KB

Versions: 14

Compression:

Stored size: 1.5 KB

Contents

module Nanoc::Int
  # Module that contains all outdatedness reasons.
  #
  # @api private
  module OutdatednessReasons
    # A generic outdatedness reason. An outdatedness reason is basically a
    # descriptive message that explains why a given object is outdated.
    class Generic
      # @return [String] A descriptive message for this outdatedness reason
      attr_reader :message

      # @param [String] message The descriptive message for this outdatedness
      #   reason
      def initialize(message)
        @message = message
      end
    end

    CodeSnippetsModified = Generic.new(
      'The code snippets have been modified since the last time the site was compiled.',
    )

    ConfigurationModified = Generic.new(
      'The site configuration has been modified since the last time the site was compiled.',
    )

    DependenciesOutdated = Generic.new(
      'This item uses content or attributes that have changed since the last time the site was compiled.',
    )

    NotEnoughData = Generic.new(
      'Not enough data is present to correctly determine whether the item is outdated.',
    )

    NotWritten = Generic.new(
      'This item representation has not yet been written to the output directory (but it does have a path).',
    )

    RulesModified = Generic.new(
      'The rules file has been modified since the last time the site was compiled.',
    )

    SourceModified = Generic.new(
      'The source file of this item has been modified since the last time the site was compiled.',
    )
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
nanoc-4.3.8 lib/nanoc/base/compilation/outdatedness_reasons.rb
nanoc-4.3.7 lib/nanoc/base/compilation/outdatedness_reasons.rb
nanoc-4.3.6 lib/nanoc/base/compilation/outdatedness_reasons.rb
nanoc-4.3.5 lib/nanoc/base/compilation/outdatedness_reasons.rb
nanoc-4.3.4 lib/nanoc/base/compilation/outdatedness_reasons.rb
nanoc-4.3.3 lib/nanoc/base/compilation/outdatedness_reasons.rb
nanoc-4.3.2 lib/nanoc/base/compilation/outdatedness_reasons.rb
nanoc-4.3.1 lib/nanoc/base/compilation/outdatedness_reasons.rb
nanoc-4.3.0 lib/nanoc/base/compilation/outdatedness_reasons.rb
nanoc-4.2.4 lib/nanoc/base/compilation/outdatedness_reasons.rb
nanoc-4.2.3 lib/nanoc/base/compilation/outdatedness_reasons.rb
nanoc-4.2.2 lib/nanoc/base/compilation/outdatedness_reasons.rb
nanoc-4.2.1 lib/nanoc/base/compilation/outdatedness_reasons.rb
nanoc-4.2.0 lib/nanoc/base/compilation/outdatedness_reasons.rb