nanoc 4.6.4 → 4.7.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (41) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +2 -0
  3. data/Gemfile.lock +12 -4
  4. data/NEWS.md +7 -0
  5. data/README.md +1 -1
  6. data/lib/nanoc/base/feature.rb +1 -1
  7. data/lib/nanoc/base/services/compiler.rb +18 -11
  8. data/lib/nanoc/base/services/compiler/phases.rb +2 -0
  9. data/lib/nanoc/base/services/compiler/phases/abstract.rb +34 -0
  10. data/lib/nanoc/base/services/compiler/phases/cache.rb +8 -5
  11. data/lib/nanoc/base/services/compiler/phases/mark_done.rb +8 -5
  12. data/lib/nanoc/base/services/compiler/phases/recalculate.rb +6 -2
  13. data/lib/nanoc/base/services/compiler/phases/resume.rb +9 -7
  14. data/lib/nanoc/base/services/compiler/phases/write.rb +8 -5
  15. data/lib/nanoc/base/services/compiler/stages/compile_reps.rb +1 -1
  16. data/lib/nanoc/cli.rb +8 -0
  17. data/lib/nanoc/cli/commands/compile.rb +81 -27
  18. data/lib/nanoc/cli/commands/nanoc.rb +2 -1
  19. data/lib/nanoc/cli/error_handler.rb +1 -0
  20. data/lib/nanoc/filters.rb +1 -0
  21. data/lib/nanoc/filters/erubi.rb +27 -0
  22. data/lib/nanoc/rule_dsl/rule_context.rb +16 -2
  23. data/lib/nanoc/telemetry/labelled_counter.rb +9 -9
  24. data/lib/nanoc/telemetry/labelled_summary.rb +15 -11
  25. data/lib/nanoc/version.rb +1 -1
  26. data/spec/nanoc/base/compiler_spec.rb +2 -0
  27. data/spec/nanoc/base/services/compiler/phases/abstract_spec.rb +49 -0
  28. data/spec/nanoc/base/services/compiler/phases/cache_spec.rb +13 -9
  29. data/spec/nanoc/cli/commands/compile/timing_recorder_spec.rb +101 -5
  30. data/spec/nanoc/rule_dsl/rule_context_spec.rb +63 -13
  31. data/spec/nanoc/telemetry/labelled_counter_spec.rb +10 -10
  32. data/spec/nanoc/telemetry/labelled_summary_spec.rb +36 -23
  33. data/spec/nanoc/telemetry/stopwatch_spec.rb +2 -0
  34. data/spec/nanoc/telemetry_spec.rb +14 -14
  35. data/spec/spec_helper.rb +3 -0
  36. data/test/base/test_compiler.rb +0 -38
  37. data/test/checking/checks/test_html.rb +0 -4
  38. data/test/filters/test_erubi.rb +73 -0
  39. data/test/fixtures/vcr_cassettes/html_run_ok.yml +27 -98
  40. data/test/helper.rb +3 -0
  41. metadata +6 -2
@@ -3,6 +3,9 @@ $VERBOSE = false
3
3
  require 'simplecov'
4
4
  SimpleCov.start
5
5
 
6
+ require 'codecov'
7
+ SimpleCov.formatter = SimpleCov::Formatter::Codecov
8
+
6
9
  require 'minitest/autorun'
7
10
  require 'mocha/setup'
8
11
  require 'vcr'
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.6.4
4
+ version: 4.7.0
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-03-10 00:00:00.000000000 Z
11
+ date: 2017-03-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cri
@@ -180,6 +180,7 @@ files:
180
180
  - lib/nanoc/base/services/checksummer.rb
181
181
  - lib/nanoc/base/services/compiler.rb
182
182
  - lib/nanoc/base/services/compiler/phases.rb
183
+ - lib/nanoc/base/services/compiler/phases/abstract.rb
183
184
  - lib/nanoc/base/services/compiler/phases/cache.rb
184
185
  - lib/nanoc/base/services/compiler/phases/mark_done.rb
185
186
  - lib/nanoc/base/services/compiler/phases/recalculate.rb
@@ -289,6 +290,7 @@ files:
289
290
  - lib/nanoc/filters/coffeescript.rb
290
291
  - lib/nanoc/filters/colorize_syntax.rb
291
292
  - lib/nanoc/filters/erb.rb
293
+ - lib/nanoc/filters/erubi.rb
292
294
  - lib/nanoc/filters/erubis.rb
293
295
  - lib/nanoc/filters/haml.rb
294
296
  - lib/nanoc/filters/handlebars.rb
@@ -375,6 +377,7 @@ files:
375
377
  - spec/nanoc/base/repos/site_loader_spec.rb
376
378
  - spec/nanoc/base/repos/snapshot_repo_spec.rb
377
379
  - spec/nanoc/base/repos/store_spec.rb
380
+ - spec/nanoc/base/services/compiler/phases/abstract_spec.rb
378
381
  - spec/nanoc/base/services/compiler/phases/cache_spec.rb
379
382
  - spec/nanoc/base/services/compiler/stages/cleanup_spec.rb
380
383
  - spec/nanoc/base/services/compiler/stages/compile_reps_spec.rb
@@ -554,6 +557,7 @@ files:
554
557
  - test/filters/test_bluecloth.rb
555
558
  - test/filters/test_coffeescript.rb
556
559
  - test/filters/test_erb.rb
560
+ - test/filters/test_erubi.rb
557
561
  - test/filters/test_erubis.rb
558
562
  - test/filters/test_haml.rb
559
563
  - test/filters/test_handlebars.rb