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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6b2daab0a6d7e829797294c8b703e301dc7f17b73dee9bda6c5a1607e20c51fb
4
- data.tar.gz: 5f3def655477051953e0a09d8e3ef73242eaea7d469a901f1f79026b5db81252
3
+ metadata.gz: dd81bc5207cca9535521b3abb877012e3c7bf68b1dcf37af7f68fec43a29fb31
4
+ data.tar.gz: aee5accd38c5b13721027f1a9be571d87b3af7b180b172a5605205153a8a54f4
5
5
  SHA512:
6
- metadata.gz: b4b15ed2ed63525bf227db07cde00fcda1dc151732e83752806e17cc0886eeea1165e6a0faaf1b02059ae74f916d4582b87b7215eb25e6525b056ff786b8572c
7
- data.tar.gz: 30a5f3ddef09231bbf925ea84f71acc02f583258980bb3ae823688b5bb8d347fa80b7965a7dd13afca4c87a36320baee93a3b8d6ed5326c17ccd86819ba99b42
6
+ metadata.gz: c02aafdacb1f6434acf15bfd3c1293c58c08250e59562504f81a8267b570c3968fb2ddf25654dc0035493d2ea14fe6fca3bd8e5fc206e13f9a0766e89c00f895
7
+ data.tar.gz: 78a4e1446c22163074d49c24612b7e0ec5513c3571d0f9d7725df239f8a3a3d34b49e1efac2102a3f30f96a8d126ee01b74a33717bad74aec2d04c53f685ee3d
data/NEWS.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Nanoc news
2
2
 
3
+ ## 4.12.11 (2022-11-12)
4
+
5
+ Enhancements:
6
+
7
+ - Further improved compilation speed, especially for partial recomilation (#1609, #1612, #1613, #1615)
8
+
3
9
  ## 4.12.10 (2022-10-18)
4
10
 
5
11
  Enhancements:
@@ -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(rep)
10
- @action_sequence_builder = Nanoc::Core::ActionSequenceBuilder.new(rep)
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(layout) do |b|
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(seq.item_rep, actions: actions)
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
@@ -2,5 +2,5 @@
2
2
 
3
3
  module Nanoc
4
4
  # The current Nanoc version.
5
- VERSION = '4.12.10'
5
+ VERSION = '4.12.11'
6
6
  end
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.10
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-10-18 00:00:00.000000000 Z
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.10
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.10
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.10
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.10
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.24
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.