nanoc 4.6.4 → 4.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +2 -0
- data/Gemfile.lock +12 -4
- data/NEWS.md +7 -0
- data/README.md +1 -1
- data/lib/nanoc/base/feature.rb +1 -1
- data/lib/nanoc/base/services/compiler.rb +18 -11
- data/lib/nanoc/base/services/compiler/phases.rb +2 -0
- data/lib/nanoc/base/services/compiler/phases/abstract.rb +34 -0
- data/lib/nanoc/base/services/compiler/phases/cache.rb +8 -5
- data/lib/nanoc/base/services/compiler/phases/mark_done.rb +8 -5
- data/lib/nanoc/base/services/compiler/phases/recalculate.rb +6 -2
- data/lib/nanoc/base/services/compiler/phases/resume.rb +9 -7
- data/lib/nanoc/base/services/compiler/phases/write.rb +8 -5
- data/lib/nanoc/base/services/compiler/stages/compile_reps.rb +1 -1
- data/lib/nanoc/cli.rb +8 -0
- data/lib/nanoc/cli/commands/compile.rb +81 -27
- data/lib/nanoc/cli/commands/nanoc.rb +2 -1
- data/lib/nanoc/cli/error_handler.rb +1 -0
- data/lib/nanoc/filters.rb +1 -0
- data/lib/nanoc/filters/erubi.rb +27 -0
- data/lib/nanoc/rule_dsl/rule_context.rb +16 -2
- data/lib/nanoc/telemetry/labelled_counter.rb +9 -9
- data/lib/nanoc/telemetry/labelled_summary.rb +15 -11
- data/lib/nanoc/version.rb +1 -1
- data/spec/nanoc/base/compiler_spec.rb +2 -0
- data/spec/nanoc/base/services/compiler/phases/abstract_spec.rb +49 -0
- data/spec/nanoc/base/services/compiler/phases/cache_spec.rb +13 -9
- data/spec/nanoc/cli/commands/compile/timing_recorder_spec.rb +101 -5
- data/spec/nanoc/rule_dsl/rule_context_spec.rb +63 -13
- data/spec/nanoc/telemetry/labelled_counter_spec.rb +10 -10
- data/spec/nanoc/telemetry/labelled_summary_spec.rb +36 -23
- data/spec/nanoc/telemetry/stopwatch_spec.rb +2 -0
- data/spec/nanoc/telemetry_spec.rb +14 -14
- data/spec/spec_helper.rb +3 -0
- data/test/base/test_compiler.rb +0 -38
- data/test/checking/checks/test_html.rb +0 -4
- data/test/filters/test_erubi.rb +73 -0
- data/test/fixtures/vcr_cassettes/html_run_ok.yml +27 -98
- data/test/helper.rb +3 -0
- metadata +6 -2
data/test/helper.rb
CHANGED
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.
|
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-
|
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
|