nanoc-cli 4.12.15 → 4.12.16

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: acfdf43e1866b296c38f5c62f5c4dea5dd97ffa2baad31da0677a1786db60490
4
- data.tar.gz: aefd93a52879d5aa39905f3326b507b2ed2f0af6e0b46ba02ff52145287c327c
3
+ metadata.gz: 967833914f48793f306c0db3f03ff8c9d0f5d22e6ba0f19ddb7b0bb1c1219acd
4
+ data.tar.gz: 950d029a647b243da36d42b771e1d70175507258f80c383336c03a415f7b1c56
5
5
  SHA512:
6
- metadata.gz: 3b5d64692541831e34bf45636fa3d2e669cc0bffbe3d9f2810a58a77cec2114c26e07d3bc1a2b3d580fd5c152e03ee63a9c8562c5867827d249187894aa6b368
7
- data.tar.gz: a778a7307d566d7d4a2b26719704999ff55929c0567da51389f66cdeb848773981e9407fef0202e3e01a5ebdd713a985218c87287de587d4c5c835b420c212b3
6
+ metadata.gz: 7c4417f73177d9e4f393fe931fa3ce20370ebe47a7a6eab1e31e6d6bddec8861db7ab361a97f1f89b9639f913e70bd2bb76642901488969d6f06ac8e653a988c
7
+ data.tar.gz: f686d4186e1a41f19a9572d522e65d2016a10d0d971aa433e93c406d99983abee9c7af72c60749df92d2b6b82e1eb728d33d0af12770a88795fd4493b2311221
@@ -9,8 +9,8 @@ description <<~EOS
9
9
  EOS
10
10
 
11
11
  required :H, :handler, 'specify the handler to use (webrick/puma/...)'
12
- required :o, :host, 'specify the host to listen on (default: 127.0.0.1)', default: '127.0.0.1'
13
- required :p, :port, 'specify the port to listen on (default: 3000)', transform: Nanoc::CLI::Transform::Port, default: 3000
12
+ required :o, :host, 'specify the host to listen on', default: '127.0.0.1'
13
+ required :p, :port, 'specify the port to listen on', transform: Nanoc::CLI::Transform::Port, default: 3000
14
14
  flag :L, :'live-reload', 'reload on changes'
15
15
  no_params
16
16
 
@@ -168,7 +168,7 @@ module Nanoc::CLI::CompileListeners
168
168
  end
169
169
 
170
170
  def print_table(rows)
171
- puts DDMetrics::Table.new(rows).to_s
171
+ puts DDMetrics::Table.new(rows)
172
172
  end
173
173
  end
174
174
  end
@@ -115,6 +115,7 @@ module Nanoc::CLI
115
115
  stream.puts 'Captain! We’ve been hit!'
116
116
 
117
117
  write_error_message(stream, error)
118
+ write_error_detail(stream, error)
118
119
  write_item_rep(stream, error)
119
120
  write_stack_trace(stream, error)
120
121
 
@@ -133,6 +134,7 @@ module Nanoc::CLI
133
134
  stream.puts "Crashlog created at #{Time.now}"
134
135
 
135
136
  write_error_message(stream, error, verbose: true)
137
+ write_error_detail(stream, error)
136
138
  write_item_rep(stream, error, verbose: true)
137
139
  write_stack_trace(stream, error, verbose: true)
138
140
  write_version_information(stream, verbose: true)
@@ -292,6 +294,15 @@ module Nanoc::CLI
292
294
  end
293
295
  end
294
296
 
297
+ def write_error_detail(stream, error)
298
+ error = unwrap_error(error)
299
+
300
+ if error.respond_to?(:full_message)
301
+ stream.puts
302
+ stream.puts error.full_message
303
+ end
304
+ end
305
+
295
306
  def write_item_rep(stream, error, verbose: false)
296
307
  return unless error.is_a?(Nanoc::Core::Errors::CompilationError)
297
308
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Nanoc
4
4
  module CLI
5
- VERSION = '4.12.15'
5
+ VERSION = '4.12.16'
6
6
  end
7
7
  end
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.15
4
+ version: 4.12.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - Denis Defreyne
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-02-06 00:00:00.000000000 Z
11
+ date: 2023-06-24 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.15
47
+ version: 4.12.16
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.15
54
+ version: 4.12.16
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: zeitwerk
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -121,7 +121,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
121
121
  - !ruby/object:Gem::Version
122
122
  version: '0'
123
123
  requirements: []
124
- rubygems_version: 3.4.1
124
+ rubygems_version: 3.4.14
125
125
  signing_key:
126
126
  specification_version: 4
127
127
  summary: CLI for Nanoc