nanoc 4.7.6 → 4.7.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +2 -2
- data/NEWS.md +7 -0
- data/lib/nanoc/base/entities/identifiable_collection.rb +8 -8
- data/lib/nanoc/base/entities/outdatedness_reasons.rb +0 -5
- data/lib/nanoc/base/repos/dependency_store.rb +23 -9
- data/lib/nanoc/base/services/compiler/stages/preprocess.rb +2 -1
- data/lib/nanoc/base/services/compiler_loader.rb +1 -1
- data/lib/nanoc/base/services/outdatedness_checker.rb +0 -1
- data/lib/nanoc/base/services/outdatedness_rules.rb +0 -1
- data/lib/nanoc/cli/commands/compile.rb +1 -0
- data/lib/nanoc/cli/commands/compile_listeners/diff_generator.rb +1 -1
- data/lib/nanoc/filters/colorize_syntax.rb +54 -316
- data/lib/nanoc/filters/colorize_syntax/colorizers.rb +177 -0
- data/lib/nanoc/version.rb +1 -1
- data/spec/nanoc/base/compiler_spec.rb +5 -2
- data/spec/nanoc/base/entities/identifiable_collection_spec.rb +29 -0
- data/spec/nanoc/base/repos/dependency_store_spec.rb +79 -79
- data/spec/nanoc/base/services/compiler/stages/compile_reps_spec.rb +5 -2
- data/spec/nanoc/base/services/dependency_tracker_spec.rb +7 -1
- data/spec/nanoc/base/services/outdatedness_checker_spec.rb +6 -7
- data/spec/nanoc/base/services/outdatedness_rules_spec.rb +3 -56
- data/spec/nanoc/base/views/document_view_spec.rb +7 -1
- data/spec/nanoc/base/views/item_rep_view_spec.rb +7 -1
- data/spec/nanoc/base/views/item_view_spec.rb +7 -1
- data/spec/nanoc/cli/commands/compile/diff_generator_spec.rb +44 -0
- data/spec/nanoc/cli/commands/show_data_spec.rb +1 -5
- data/spec/nanoc/integration/compile_command_spec.rb +31 -0
- data/test/base/test_dependency_tracker.rb +106 -86
- data/test/filters/test_xsl.rb +5 -1
- metadata +5 -3
- data/lib/nanoc/base/services/outdatedness_rules/paths_modified.rb +0 -20
data/test/filters/test_xsl.rb
CHANGED
@@ -86,7 +86,11 @@ EOS
|
|
86
86
|
def setup
|
87
87
|
super
|
88
88
|
|
89
|
-
|
89
|
+
config = Nanoc::Int::Configuration.new
|
90
|
+
items = Nanoc::Int::IdentifiableCollection.new(config)
|
91
|
+
layouts = Nanoc::Int::IdentifiableCollection.new(config)
|
92
|
+
|
93
|
+
@dependency_store = Nanoc::Int::DependencyStore.new(items, layouts)
|
90
94
|
@dependency_tracker = Nanoc::Int::DependencyTracker.new(@dependency_store)
|
91
95
|
|
92
96
|
@base_item = Nanoc::Int::Item.new('base', {}, '/base.md')
|
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.7.
|
4
|
+
version: 4.7.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Denis Defreyne
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-04-
|
11
|
+
date: 2017-04-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: cri
|
@@ -216,7 +216,6 @@ files:
|
|
216
216
|
- lib/nanoc/base/services/outdatedness_rules/configuration_modified.rb
|
217
217
|
- lib/nanoc/base/services/outdatedness_rules/content_modified.rb
|
218
218
|
- lib/nanoc/base/services/outdatedness_rules/not_written.rb
|
219
|
-
- lib/nanoc/base/services/outdatedness_rules/paths_modified.rb
|
220
219
|
- lib/nanoc/base/services/outdatedness_rules/rules_modified.rb
|
221
220
|
- lib/nanoc/base/services/outdatedness_rules/uses_always_outdated_filter.rb
|
222
221
|
- lib/nanoc/base/services/pruner.rb
|
@@ -310,6 +309,7 @@ files:
|
|
310
309
|
- lib/nanoc/filters/bluecloth.rb
|
311
310
|
- lib/nanoc/filters/coffeescript.rb
|
312
311
|
- lib/nanoc/filters/colorize_syntax.rb
|
312
|
+
- lib/nanoc/filters/colorize_syntax/colorizers.rb
|
313
313
|
- lib/nanoc/filters/erb.rb
|
314
314
|
- lib/nanoc/filters/erubi.rb
|
315
315
|
- lib/nanoc/filters/erubis.rb
|
@@ -433,6 +433,7 @@ files:
|
|
433
433
|
- spec/nanoc/base/views/post_compile_item_rep_collection_view_spec.rb
|
434
434
|
- spec/nanoc/base/views/post_compile_item_rep_view_spec.rb
|
435
435
|
- spec/nanoc/base/views/post_compile_item_view_spec.rb
|
436
|
+
- spec/nanoc/cli/commands/compile/diff_generator_spec.rb
|
436
437
|
- spec/nanoc/cli/commands/compile/file_action_printer_spec.rb
|
437
438
|
- spec/nanoc/cli/commands/compile/timing_recorder_spec.rb
|
438
439
|
- spec/nanoc/cli/commands/compile_spec.rb
|
@@ -459,6 +460,7 @@ files:
|
|
459
460
|
- spec/nanoc/helpers/rendering_spec.rb
|
460
461
|
- spec/nanoc/helpers/tagging_spec.rb
|
461
462
|
- spec/nanoc/helpers/text_spec.rb
|
463
|
+
- spec/nanoc/integration/compile_command_spec.rb
|
462
464
|
- spec/nanoc/integration/outdatedness_integration_spec.rb
|
463
465
|
- spec/nanoc/integration/partial_recompilation_spec.rb
|
464
466
|
- spec/nanoc/regressions/gh_1015_spec.rb
|
@@ -1,20 +0,0 @@
|
|
1
|
-
module Nanoc::Int::OutdatednessRules
|
2
|
-
class PathsModified < Nanoc::Int::OutdatednessRule
|
3
|
-
affects_props :path
|
4
|
-
|
5
|
-
def apply(obj, outdatedness_checker)
|
6
|
-
# FIXME: Prefer to not work on serialised version
|
7
|
-
|
8
|
-
seq_old = outdatedness_checker.action_sequence_store[obj]
|
9
|
-
seq_new = outdatedness_checker.action_sequence_for(obj).serialize
|
10
|
-
return true if seq_old.nil?
|
11
|
-
|
12
|
-
paths_old = seq_old.select { |pa| pa[0] == :snapshot }
|
13
|
-
paths_new = seq_new.select { |pa| pa[0] == :snapshot }
|
14
|
-
|
15
|
-
if paths_old != paths_new
|
16
|
-
Nanoc::Int::OutdatednessReasons::PathsModified
|
17
|
-
end
|
18
|
-
end
|
19
|
-
end
|
20
|
-
end
|