nanoc-cli 4.12.1 → 4.12.5
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5ce8cd6e59dac924f91424ce745fee46efc06f893e0dec8fcc6e6d73e1fbf9bf
|
4
|
+
data.tar.gz: 20aac563f63a5ca69ccf2350b7559bda117fe4d99af9f363d9df1a6f55fc02da
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4f09c8c34a36b309de9fa090dd843f9e9dde4d4f6237f1a5d3a12ee5c7509c8b98f1001c12501dc13504e2773f3b30a58cfda5b18d6f88c7a0bc64ea1e220353
|
7
|
+
data.tar.gz: 0c2ec5f19f706d94163018ebcd1ef032b8971280be23d4d4e6a7250beec8446bcc23213a0ecea27382430efb0c42b503e9ca96d429dffebc0705c9f069a345d2
|
@@ -99,15 +99,17 @@ module Nanoc::CLI::Commands
|
|
99
99
|
'items'
|
100
100
|
when Nanoc::Core::LayoutCollection
|
101
101
|
'layouts'
|
102
|
+
when nil
|
103
|
+
'(unknown)'
|
102
104
|
else
|
103
|
-
raise Nanoc::Core::Errors::InternalInconsistency, "unexpected pred type #{pred}"
|
105
|
+
raise Nanoc::Core::Errors::InternalInconsistency, "unexpected pred type #{pred.inspect}"
|
104
106
|
end
|
105
107
|
|
106
108
|
pred_identifier =
|
107
109
|
case pred
|
108
110
|
when Nanoc::Core::Document
|
109
111
|
pred.identifier.to_s
|
110
|
-
when Nanoc::Core::Configuration
|
112
|
+
when Nanoc::Core::Configuration, nil
|
111
113
|
nil
|
112
114
|
when Nanoc::Core::IdentifiableCollection
|
113
115
|
case dep.props.raw_content
|
@@ -117,13 +119,13 @@ module Nanoc::CLI::Commands
|
|
117
119
|
"matching any of #{dep.props.raw_content.sort.join(', ')}"
|
118
120
|
end
|
119
121
|
else
|
120
|
-
raise Nanoc::Core::Errors::InternalInconsistency, "unexpected pred type #{pred}"
|
122
|
+
raise Nanoc::Core::Errors::InternalInconsistency, "unexpected pred type #{pred.inspect}"
|
121
123
|
end
|
122
124
|
|
123
125
|
if pred
|
124
126
|
puts " [ #{format '%6s', type} ] (#{dep.props}) #{pred_identifier}"
|
125
127
|
else
|
126
|
-
puts ' ( removed
|
128
|
+
puts ' ( removed )'
|
127
129
|
end
|
128
130
|
end
|
129
131
|
puts ' (nothing)' if dependencies.empty?
|
@@ -37,15 +37,22 @@ module Nanoc::CLI::CompileListeners
|
|
37
37
|
duration = @stopwatches[rep].duration
|
38
38
|
|
39
39
|
action =
|
40
|
-
if is_created
|
41
|
-
|
42
|
-
elsif
|
43
|
-
|
40
|
+
if is_created
|
41
|
+
:create
|
42
|
+
elsif is_modified
|
43
|
+
:update
|
44
|
+
elsif cached_reps.include?(rep)
|
45
|
+
:cached
|
46
|
+
else
|
47
|
+
:identical
|
44
48
|
end
|
45
49
|
level =
|
46
|
-
if is_created
|
47
|
-
|
48
|
-
|
50
|
+
if is_created
|
51
|
+
:high
|
52
|
+
elsif is_modified
|
53
|
+
:high
|
54
|
+
else
|
55
|
+
:low
|
49
56
|
end
|
50
57
|
|
51
58
|
# FIXME: do not depend on working directory
|
@@ -141,7 +141,6 @@ module Nanoc::CLI::CompileListeners
|
|
141
141
|
print_table_for_summary_duration(:stages, @stages_summary) if Nanoc::CLI.verbosity >= 2
|
142
142
|
print_table_for_summary(:outdatedness_rules, @outdatedness_rules_summary) if Nanoc::CLI.verbosity >= 2
|
143
143
|
print_table_for_summary_duration(:load_stores, @load_stores_summary) if Nanoc::CLI.verbosity >= 2
|
144
|
-
print_ddmemoize_metrics if Nanoc::CLI.verbosity >= 2
|
145
144
|
end
|
146
145
|
|
147
146
|
def print_table_for_summary(name, summary)
|
@@ -158,11 +157,6 @@ module Nanoc::CLI::CompileListeners
|
|
158
157
|
print_table(table_for_summary_durations(name, summary))
|
159
158
|
end
|
160
159
|
|
161
|
-
def print_ddmemoize_metrics
|
162
|
-
puts
|
163
|
-
DDMemoize.print_metrics
|
164
|
-
end
|
165
|
-
|
166
160
|
def print_table(rows)
|
167
161
|
puts DDMetrics::Table.new(rows).to_s
|
168
162
|
end
|
data/lib/nanoc/cli/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nanoc-cli
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.12.
|
4
|
+
version: 4.12.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Denis Defreyne
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-01-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: cri
|
@@ -44,14 +44,14 @@ dependencies:
|
|
44
44
|
requirements:
|
45
45
|
- - '='
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: 4.12.
|
47
|
+
version: 4.12.5
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - '='
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: 4.12.
|
54
|
+
version: 4.12.5
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: zeitwerk
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -104,7 +104,8 @@ files:
|
|
104
104
|
homepage: https://nanoc.ws/
|
105
105
|
licenses:
|
106
106
|
- MIT
|
107
|
-
metadata:
|
107
|
+
metadata:
|
108
|
+
rubygems_mfa_required: 'true'
|
108
109
|
post_install_message:
|
109
110
|
rdoc_options: []
|
110
111
|
require_paths:
|
@@ -113,14 +114,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
113
114
|
requirements:
|
114
115
|
- - ">="
|
115
116
|
- !ruby/object:Gem::Version
|
116
|
-
version: '2.
|
117
|
+
version: '2.6'
|
117
118
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
118
119
|
requirements:
|
119
120
|
- - ">="
|
120
121
|
- !ruby/object:Gem::Version
|
121
122
|
version: '0'
|
122
123
|
requirements: []
|
123
|
-
rubygems_version: 3.
|
124
|
+
rubygems_version: 3.3.5
|
124
125
|
signing_key:
|
125
126
|
specification_version: 4
|
126
127
|
summary: CLI for Nanoc
|