nanoc 4.7.7 → 4.7.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (39) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +6 -5
  3. data/NEWS.md +12 -0
  4. data/lib/nanoc/base/entities.rb +1 -0
  5. data/lib/nanoc/base/entities/action_sequence.rb +8 -36
  6. data/lib/nanoc/base/entities/checksum_collection.rb +31 -0
  7. data/lib/nanoc/base/entities/directed_graph.rb +35 -11
  8. data/lib/nanoc/base/errors.rb +3 -1
  9. data/lib/nanoc/base/repos/checksum_store.rb +1 -0
  10. data/lib/nanoc/base/services.rb +1 -0
  11. data/lib/nanoc/base/services/action_sequence_builder.rb +45 -0
  12. data/lib/nanoc/base/services/compiler.rb +34 -14
  13. data/lib/nanoc/base/services/compiler/stages.rb +1 -0
  14. data/lib/nanoc/base/services/compiler/stages/calculate_checksums.rb +31 -0
  15. data/lib/nanoc/base/services/compiler/stages/store_pre_compilation_state.rb +6 -13
  16. data/lib/nanoc/base/services/outdatedness_checker.rb +4 -2
  17. data/lib/nanoc/base/services/outdatedness_rules/attributes_modified.rb +1 -1
  18. data/lib/nanoc/base/services/outdatedness_rules/code_snippets_modified.rb +1 -1
  19. data/lib/nanoc/base/services/outdatedness_rules/configuration_modified.rb +1 -1
  20. data/lib/nanoc/base/services/outdatedness_rules/content_modified.rb +1 -1
  21. data/lib/nanoc/cli/cleaning_stream.rb +1 -1
  22. data/lib/nanoc/cli/commands/show-data.rb +1 -0
  23. data/lib/nanoc/rule_dsl/action_sequence_calculator.rb +7 -14
  24. data/lib/nanoc/rule_dsl/recording_executor.rb +40 -7
  25. data/lib/nanoc/version.rb +1 -1
  26. data/spec/nanoc/base/compiler_spec.rb +5 -5
  27. data/spec/nanoc/base/directed_graph_spec.rb +12 -0
  28. data/spec/nanoc/base/entities/action_sequence_spec.rb +132 -79
  29. data/spec/nanoc/base/errors/dependency_cycle_spec.rb +4 -4
  30. data/spec/nanoc/base/services/compiler/stages/calculate_checksums_spec.rb +69 -0
  31. data/spec/nanoc/base/services/executor_spec.rb +2 -2
  32. data/spec/nanoc/base/services/item_rep_router_spec.rb +4 -4
  33. data/spec/nanoc/base/services/outdatedness_checker_spec.rb +40 -24
  34. data/spec/nanoc/base/services/outdatedness_rules_spec.rb +27 -15
  35. data/spec/nanoc/cli/commands/show_data_spec.rb +2 -0
  36. data/spec/nanoc/rule_dsl/action_sequence_calculator_spec.rb +15 -13
  37. data/spec/nanoc/rule_dsl/recording_executor_spec.rb +4 -3
  38. data/test/cli/test_cleaning_stream.rb +8 -0
  39. metadata +6 -2
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.7
4
+ version: 4.7.8
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-16 00:00:00.000000000 Z
11
+ date: 2017-04-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cri
@@ -132,6 +132,7 @@ files:
132
132
  - lib/nanoc/base/core_ext/string.rb
133
133
  - lib/nanoc/base/entities.rb
134
134
  - lib/nanoc/base/entities/action_sequence.rb
135
+ - lib/nanoc/base/entities/checksum_collection.rb
135
136
  - lib/nanoc/base/entities/code_snippet.rb
136
137
  - lib/nanoc/base/entities/configuration.rb
137
138
  - lib/nanoc/base/entities/content.rb
@@ -177,6 +178,7 @@ files:
177
178
  - lib/nanoc/base/repos/store.rb
178
179
  - lib/nanoc/base/services.rb
179
180
  - lib/nanoc/base/services/action_provider.rb
181
+ - lib/nanoc/base/services/action_sequence_builder.rb
180
182
  - lib/nanoc/base/services/checksummer.rb
181
183
  - lib/nanoc/base/services/compilation_context.rb
182
184
  - lib/nanoc/base/services/compiler.rb
@@ -189,6 +191,7 @@ files:
189
191
  - lib/nanoc/base/services/compiler/phases/write.rb
190
192
  - lib/nanoc/base/services/compiler/stages.rb
191
193
  - lib/nanoc/base/services/compiler/stages/build_reps.rb
194
+ - lib/nanoc/base/services/compiler/stages/calculate_checksums.rb
192
195
  - lib/nanoc/base/services/compiler/stages/cleanup.rb
193
196
  - lib/nanoc/base/services/compiler/stages/compile_reps.rb
194
197
  - lib/nanoc/base/services/compiler/stages/determine_outdatedness.rb
@@ -403,6 +406,7 @@ files:
403
406
  - spec/nanoc/base/repos/store_spec.rb
404
407
  - spec/nanoc/base/services/compiler/phases/abstract_spec.rb
405
408
  - spec/nanoc/base/services/compiler/phases/cache_spec.rb
409
+ - spec/nanoc/base/services/compiler/stages/calculate_checksums_spec.rb
406
410
  - spec/nanoc/base/services/compiler/stages/cleanup_spec.rb
407
411
  - spec/nanoc/base/services/compiler/stages/compile_reps_spec.rb
408
412
  - spec/nanoc/base/services/dependency_tracker_spec.rb