nanoc 4.12.10 → 4.12.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/NEWS.md +6 -0
- data/lib/nanoc/rule_dsl/action_recorder.rb +6 -4
- data/lib/nanoc/rule_dsl/action_sequence_calculator.rb +2 -2
- data/lib/nanoc/version.rb +1 -1
- metadata +7 -7
    
        checksums.yaml
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            SHA256:
         | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: dd81bc5207cca9535521b3abb877012e3c7bf68b1dcf37af7f68fec43a29fb31
         | 
| 4 | 
            +
              data.tar.gz: aee5accd38c5b13721027f1a9be571d87b3af7b180b172a5605205153a8a54f4
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: c02aafdacb1f6434acf15bfd3c1293c58c08250e59562504f81a8267b570c3968fb2ddf25654dc0035493d2ea14fe6fca3bd8e5fc206e13f9a0766e89c00f895
         | 
| 7 | 
            +
              data.tar.gz: 78a4e1446c22163074d49c24612b7e0ec5513c3571d0f9d7725df239f8a3a3d34b49e1efac2102a3f30f96a8d126ee01b74a33717bad74aec2d04c53f685ee3d
         | 
    
        data/NEWS.md
    CHANGED
    
    
| @@ -6,8 +6,10 @@ module Nanoc | |
| 6 6 | 
             
                  include Nanoc::Core::ContractsSupport
         | 
| 7 7 |  | 
| 8 8 | 
             
                  contract Nanoc::Core::ItemRep => C::Any
         | 
| 9 | 
            -
                  def initialize( | 
| 10 | 
            -
                    @ | 
| 9 | 
            +
                  def initialize(item_rep)
         | 
| 10 | 
            +
                    @item_rep = item_rep
         | 
| 11 | 
            +
             | 
| 12 | 
            +
                    @action_sequence_builder = Nanoc::Core::ActionSequenceBuilder.new
         | 
| 11 13 |  | 
| 12 14 | 
             
                    @any_layouts = false
         | 
| 13 15 | 
             
                    @last_snapshot = false
         | 
| @@ -30,7 +32,7 @@ module Nanoc | |
| 30 32 |  | 
| 31 33 | 
             
                    unless any_layouts?
         | 
| 32 34 | 
             
                      @pre_snapshot = true
         | 
| 33 | 
            -
                      @action_sequence_builder.add_snapshot(:pre, nil)
         | 
| 35 | 
            +
                      @action_sequence_builder.add_snapshot(:pre, nil, @item_rep)
         | 
| 34 36 | 
             
                    end
         | 
| 35 37 |  | 
| 36 38 | 
             
                    @action_sequence_builder.add_layout(layout_identifier, extra_filter_args)
         | 
| @@ -51,7 +53,7 @@ module Nanoc | |
| 51 53 | 
             
                        path.to_s
         | 
| 52 54 | 
             
                      end
         | 
| 53 55 |  | 
| 54 | 
            -
                    @action_sequence_builder.add_snapshot(snapshot_name, path)
         | 
| 56 | 
            +
                    @action_sequence_builder.add_snapshot(snapshot_name, path, @item_rep)
         | 
| 55 57 | 
             
                    case snapshot_name
         | 
| 56 58 | 
             
                    when :last
         | 
| 57 59 | 
             
                      @last_snapshot = true
         | 
| @@ -84,7 +84,7 @@ module Nanoc::RuleDSL | |
| 84 84 | 
             
                    raise NoActionSequenceForLayoutException.new(layout)
         | 
| 85 85 | 
             
                  end
         | 
| 86 86 |  | 
| 87 | 
            -
                  Nanoc::Core::ActionSequenceBuilder.build | 
| 87 | 
            +
                  Nanoc::Core::ActionSequenceBuilder.build do |b|
         | 
| 88 88 | 
             
                    b.add_filter(res[0], res[1])
         | 
| 89 89 | 
             
                  end
         | 
| 90 90 | 
             
                end
         | 
| @@ -98,7 +98,7 @@ module Nanoc::RuleDSL | |
| 98 98 | 
             
                      actions << action
         | 
| 99 99 | 
             
                    end
         | 
| 100 100 | 
             
                  end
         | 
| 101 | 
            -
                  Nanoc::Core::ActionSequence.new( | 
| 101 | 
            +
                  Nanoc::Core::ActionSequence.new(actions: actions)
         | 
| 102 102 | 
             
                end
         | 
| 103 103 |  | 
| 104 104 | 
             
                def copy_paths_from_routing_rules(seq, snapshots_for_which_to_skip_routing_rule, rep:)
         | 
    
        data/lib/nanoc/version.rb
    CHANGED
    
    
    
        metadata
    CHANGED
    
    | @@ -1,14 +1,14 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: nanoc
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 4.12. | 
| 4 | 
            +
              version: 4.12.11
         | 
| 5 5 | 
             
            platform: ruby
         | 
| 6 6 | 
             
            authors:
         | 
| 7 7 | 
             
            - Denis Defreyne
         | 
| 8 8 | 
             
            autorequire:
         | 
| 9 9 | 
             
            bindir: bin
         | 
| 10 10 | 
             
            cert_chain: []
         | 
| 11 | 
            -
            date: 2022- | 
| 11 | 
            +
            date: 2022-11-12 00:00:00.000000000 Z
         | 
| 12 12 | 
             
            dependencies:
         | 
| 13 13 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 14 14 | 
             
              name: addressable
         | 
| @@ -64,28 +64,28 @@ dependencies: | |
| 64 64 | 
             
                requirements:
         | 
| 65 65 | 
             
                - - '='
         | 
| 66 66 | 
             
                  - !ruby/object:Gem::Version
         | 
| 67 | 
            -
                    version: 4.12. | 
| 67 | 
            +
                    version: 4.12.11
         | 
| 68 68 | 
             
              type: :runtime
         | 
| 69 69 | 
             
              prerelease: false
         | 
| 70 70 | 
             
              version_requirements: !ruby/object:Gem::Requirement
         | 
| 71 71 | 
             
                requirements:
         | 
| 72 72 | 
             
                - - '='
         | 
| 73 73 | 
             
                  - !ruby/object:Gem::Version
         | 
| 74 | 
            -
                    version: 4.12. | 
| 74 | 
            +
                    version: 4.12.11
         | 
| 75 75 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 76 76 | 
             
              name: nanoc-core
         | 
| 77 77 | 
             
              requirement: !ruby/object:Gem::Requirement
         | 
| 78 78 | 
             
                requirements:
         | 
| 79 79 | 
             
                - - '='
         | 
| 80 80 | 
             
                  - !ruby/object:Gem::Version
         | 
| 81 | 
            -
                    version: 4.12. | 
| 81 | 
            +
                    version: 4.12.11
         | 
| 82 82 | 
             
              type: :runtime
         | 
| 83 83 | 
             
              prerelease: false
         | 
| 84 84 | 
             
              version_requirements: !ruby/object:Gem::Requirement
         | 
| 85 85 | 
             
                requirements:
         | 
| 86 86 | 
             
                - - '='
         | 
| 87 87 | 
             
                  - !ruby/object:Gem::Version
         | 
| 88 | 
            -
                    version: 4.12. | 
| 88 | 
            +
                    version: 4.12.11
         | 
| 89 89 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 90 90 | 
             
              name: nanoc-deploying
         | 
| 91 91 | 
             
              requirement: !ruby/object:Gem::Requirement
         | 
| @@ -250,7 +250,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement | |
| 250 250 | 
             
                - !ruby/object:Gem::Version
         | 
| 251 251 | 
             
                  version: '0'
         | 
| 252 252 | 
             
            requirements: []
         | 
| 253 | 
            -
            rubygems_version: 3.3. | 
| 253 | 
            +
            rubygems_version: 3.3.25
         | 
| 254 254 | 
             
            signing_key:
         | 
| 255 255 | 
             
            specification_version: 4
         | 
| 256 256 | 
             
            summary: A static-site generator with a focus on flexibility.
         |