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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 967833914f48793f306c0db3f03ff8c9d0f5d22e6ba0f19ddb7b0bb1c1219acd
|
4
|
+
data.tar.gz: 950d029a647b243da36d42b771e1d70175507258f80c383336c03a415f7b1c56
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
13
|
-
required :p, :port, 'specify the port to listen on
|
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
|
|
@@ -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
|
|
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.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-
|
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.
|
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.
|
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.
|
124
|
+
rubygems_version: 3.4.14
|
125
125
|
signing_key:
|
126
126
|
specification_version: 4
|
127
127
|
summary: CLI for Nanoc
|