Sha256: ce26f60d38e3032668c248e2d78d8458c43884d352a866ee3e443c064bbb3e77

Contents?: true

Size: 1.46 KB

Versions: 32

Compression:

Stored size: 1.46 KB

Contents

# encoding: utf-8

module Nanoc

  # Module that contains all outdatedness reasons.
  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

32 entries across 32 versions & 1 rubygems

Version Path
nanoc-3.7.4 lib/nanoc/base/compilation/outdatedness_reasons.rb
nanoc-3.7.3 lib/nanoc/base/compilation/outdatedness_reasons.rb
nanoc-3.7.2 lib/nanoc/base/compilation/outdatedness_reasons.rb
nanoc-3.7.1 lib/nanoc/base/compilation/outdatedness_reasons.rb
nanoc-3.7.0 lib/nanoc/base/compilation/outdatedness_reasons.rb
nanoc-3.6.11 lib/nanoc/base/compilation/outdatedness_reasons.rb
nanoc-3.6.10 lib/nanoc/base/compilation/outdatedness_reasons.rb
nanoc-3.6.9 lib/nanoc/base/compilation/outdatedness_reasons.rb
nanoc-3.6.8 lib/nanoc/base/compilation/outdatedness_reasons.rb
nanoc-3.6.7 lib/nanoc/base/compilation/outdatedness_reasons.rb
nanoc-3.6.6 lib/nanoc/base/compilation/outdatedness_reasons.rb
nanoc-3.6.5 lib/nanoc/base/compilation/outdatedness_reasons.rb
nanoc-3.6.4 lib/nanoc/base/compilation/outdatedness_reasons.rb
nanoc-3.6.3 lib/nanoc/base/compilation/outdatedness_reasons.rb
nanoc-3.6.2 lib/nanoc/base/compilation/outdatedness_reasons.rb
nanoc-3.6.1 lib/nanoc/base/compilation/outdatedness_reasons.rb
nanoc-3.6.0 lib/nanoc/base/compilation/outdatedness_reasons.rb
nanoc-3.5.0 lib/nanoc/base/compilation/outdatedness_reasons.rb
nanoc-3.5.0b2 lib/nanoc/base/compilation/outdatedness_reasons.rb
nanoc-3.5.0b1 lib/nanoc/base/compilation/outdatedness_reasons.rb