nanoc-cli 4.14.0 → 4.14.1
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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ff228ae51f7b66c13b237fb565261fdebea9f3bd57ac51e51092a7a51b0a070d
|
|
4
|
+
data.tar.gz: 0b585b3f4b1fd4d79d87ea4de695609eb01f68ddd36116bc10131e5639079b0b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2050b772a4da2a8a5a35805656fb9ece78ca22d4eee0924533242f4e04864bbecc84b4e85e661a1b0fdf9f0fc8cca4c8593ddbb6935a11c956668507a6237fb8
|
|
7
|
+
data.tar.gz: 45c2dbc02430a54fd2ca1cbd616a14fd74f368424580e0ecd5f5c495c336362f0df8d2254a7359efd1487efe5ce925f36432312aa269979cbfd044035edc18b6
|
|
@@ -27,8 +27,8 @@ module Nanoc::CLI::CompileListeners
|
|
|
27
27
|
log('compilation', '')
|
|
28
28
|
end
|
|
29
29
|
|
|
30
|
-
on(:compilation_suspended) do |rep
|
|
31
|
-
log('compilation', "Suspended compilation of #{rep}
|
|
30
|
+
on(:compilation_suspended) do |rep|
|
|
31
|
+
log('compilation', "Suspended compilation of #{rep}")
|
|
32
32
|
end
|
|
33
33
|
|
|
34
34
|
on(:cached_content_used) do |rep|
|
|
@@ -36,18 +36,21 @@ module Nanoc::CLI::CompileListeners
|
|
|
36
36
|
@outdatedness_rules_summary.observe(duration, name: klass.to_s.sub(/.*::/, ''))
|
|
37
37
|
end
|
|
38
38
|
|
|
39
|
-
|
|
39
|
+
stopwatches_stack = []
|
|
40
40
|
|
|
41
|
-
on(:filtering_started) do |
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
41
|
+
on(:filtering_started) do |_rep, _filter_name|
|
|
42
|
+
# Add new stopwatch and start it
|
|
43
|
+
stopwatch = DDMetrics::Stopwatch.new
|
|
44
|
+
stopwatches_stack << stopwatch
|
|
45
|
+
stopwatch.start
|
|
45
46
|
end
|
|
46
47
|
|
|
47
|
-
on(:filtering_ended) do |
|
|
48
|
-
stopwatch
|
|
48
|
+
on(:filtering_ended) do |_rep, filter_name|
|
|
49
|
+
# Get topmost stopwatch and stop it
|
|
50
|
+
stopwatch = stopwatches_stack.pop
|
|
49
51
|
stopwatch.stop
|
|
50
52
|
|
|
53
|
+
# Record duration
|
|
51
54
|
@filters_summary.observe(stopwatch.duration, name: filter_name.to_s)
|
|
52
55
|
end
|
|
53
56
|
|
|
@@ -59,14 +62,6 @@ module Nanoc::CLI::CompileListeners
|
|
|
59
62
|
@store_stores_summary.observe(duration, name: klass.to_s)
|
|
60
63
|
end
|
|
61
64
|
|
|
62
|
-
on(:compilation_suspended) do |rep, _target_rep, _snapshot_name|
|
|
63
|
-
filter_stopwatches.fetch(rep).each(&:stop)
|
|
64
|
-
end
|
|
65
|
-
|
|
66
|
-
on(:compilation_started) do |rep|
|
|
67
|
-
filter_stopwatches.fetch(rep, []).each(&:start)
|
|
68
|
-
end
|
|
69
|
-
|
|
70
65
|
setup_phase_notifications
|
|
71
66
|
end
|
|
72
67
|
|
data/lib/nanoc/cli/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: nanoc-cli
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 4.14.
|
|
4
|
+
version: 4.14.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Denis Defreyne
|
|
@@ -57,14 +57,14 @@ dependencies:
|
|
|
57
57
|
requirements:
|
|
58
58
|
- - '='
|
|
59
59
|
- !ruby/object:Gem::Version
|
|
60
|
-
version: 4.14.
|
|
60
|
+
version: 4.14.1
|
|
61
61
|
type: :runtime
|
|
62
62
|
prerelease: false
|
|
63
63
|
version_requirements: !ruby/object:Gem::Requirement
|
|
64
64
|
requirements:
|
|
65
65
|
- - '='
|
|
66
66
|
- !ruby/object:Gem::Version
|
|
67
|
-
version: 4.14.
|
|
67
|
+
version: 4.14.1
|
|
68
68
|
- !ruby/object:Gem::Dependency
|
|
69
69
|
name: pry
|
|
70
70
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -132,7 +132,7 @@ licenses:
|
|
|
132
132
|
- MIT
|
|
133
133
|
metadata:
|
|
134
134
|
rubygems_mfa_required: 'true'
|
|
135
|
-
source_code_uri: https://github.com/nanoc/nanoc/tree/nanoc-cli-v4.14.
|
|
135
|
+
source_code_uri: https://github.com/nanoc/nanoc/tree/nanoc-cli-v4.14.1/nanoc-cli
|
|
136
136
|
rdoc_options: []
|
|
137
137
|
require_paths:
|
|
138
138
|
- lib
|