nanoc-core 4.14.2 → 4.14.3

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: 1eb383ecd0b9f70dab794c7cbbeaea2000372252ec7fca79a88977f4b9ee52e4
4
- data.tar.gz: 10b983997d7836e81a8d9926f8ccaf2f2208e557fce3a61d67675dc954d8dd4a
3
+ metadata.gz: 6654a9dc862f8e0ff682547725c8479ebc4e50d848c55e70f3ba7d902fff008c
4
+ data.tar.gz: a6260a1f1aa36656b15f494e9ad0a0242dc7ea4d3385511e85ba30f55d7e4f7b
5
5
  SHA512:
6
- metadata.gz: 2a05d9133dfcea7375b3b2dbc86d876701f86d29298bc029eae947b59893071f06df12aeb0491179ec3b6f725770de9ff7af940d16ffbd978c02859acb50e2cb
7
- data.tar.gz: e374dd038fb6535c7e48ec2228f872ec06a70022a82306da0a4ac35c11ec2133e88aea1bee4f0ec5fbe339965a63e67f2054a34d1afacb8b7275c26de7e5e6c1
6
+ metadata.gz: 74ba0d19319adb353c6284db11f0f8ec94f7e8c4672e50be452332664d2e5ac16efaebe247cc81d6738fbe908502819018e1404449a54869aaf55e6a96b3e157
7
+ data.tar.gz: 82bc7bbbeb7764a0d23962da4bdc50f18024c16b663fa3af08e3ac5da2f07097832e88aa2e0086bef88a758720f07dbdfd9213f3e8f882f45a07364a9523be99
@@ -45,7 +45,7 @@ module Nanoc
45
45
 
46
46
  # Read prio B
47
47
  @this = @prio_b.shift
48
- @this = @prio_b.shift while @seen.include?(@this)
48
+ @this = @prio_b.shift while @seen.include?(@this) || @completed.include?(@this)
49
49
  if @this
50
50
  return @this
51
51
  end
@@ -83,6 +83,18 @@ module Nanoc
83
83
  # element will come from @prio_b at some point in the future, so we’ll
84
84
  # have to skip it then.
85
85
  @seen << needed_rep
86
+
87
+ # Add everything else that `@this` depends on to the queue. It is OK
88
+ # if there are duplicates; `#next` will filter them out.
89
+ @dependency_store.objects_causing_outdatedness_of(@this.item).each do |obj|
90
+ if obj.is_a?(Nanoc::Core::Item)
91
+ item = obj
92
+
93
+ @reps[item].each do |rep|
94
+ @prio_b.unshift(rep)
95
+ end
96
+ end
97
+ end
86
98
  end
87
99
 
88
100
  private
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Nanoc
4
4
  module Core
5
- VERSION = '4.14.2'
5
+ VERSION = '4.14.3'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nanoc-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.14.2
4
+ version: 4.14.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Denis Defreyne
@@ -303,7 +303,7 @@ licenses:
303
303
  - MIT
304
304
  metadata:
305
305
  rubygems_mfa_required: 'true'
306
- source_code_uri: https://github.com/nanoc/nanoc/tree/nanoc-core-v4.14.2/nanoc-core
306
+ source_code_uri: https://github.com/nanoc/nanoc/tree/nanoc-core-v4.14.3/nanoc-core
307
307
  rdoc_options: []
308
308
  require_paths:
309
309
  - lib