console 1.2.2 → 1.2.3
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 +4 -4
- data/lib/console/event/failure.rb +4 -2
- data/lib/console/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 53ecf188aff5a90accc14fe821fb10e6859f782acc38b6651415d30cb3672931
|
4
|
+
data.tar.gz: 7fb95fd1edc4e945162cd179cd7377cae14cde2fd7b5cce2bcdfc8c6ea916b48
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a8278317c195f43815edac27784bb9375308ef534257214357698cb0072835e92c0bd3fd2a868187dc599fb4bfb3f312ef25924d6141cc82a4d7205348fa7bc3
|
7
|
+
data.tar.gz: 9471caecdf34f104f45b0e0ad984c9ec6e5e3ef852df388d798fd6ca75f2d6404ab3022f76123b5112ee6787fcd1bf1607016a9bee3f26a693a5076786fe522b
|
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literals: true
|
2
|
+
#
|
1
3
|
# Copyright, 2019, by Samuel G. D. Williams. <http://www.codeotaku.com>
|
2
4
|
#
|
3
5
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
@@ -51,7 +53,7 @@ module Console
|
|
51
53
|
format_exception(@exception, nil, output, terminal, verbose)
|
52
54
|
end
|
53
55
|
|
54
|
-
def format_exception(exception, prefix
|
56
|
+
def format_exception(exception, prefix, output, terminal, verbose)
|
55
57
|
lines = exception.message.lines.map(&:chomp)
|
56
58
|
|
57
59
|
output.puts " #{prefix}#{terminal[:exception_title]}#{exception.class}#{terminal.reset}: #{lines.shift}"
|
@@ -70,7 +72,7 @@ module Console
|
|
70
72
|
end
|
71
73
|
|
72
74
|
if exception.cause and verbose
|
73
|
-
format_exception(exception.cause, "Caused by ", output, terminal)
|
75
|
+
format_exception(exception.cause, "Caused by ", output, terminal, verbose)
|
74
76
|
end
|
75
77
|
end
|
76
78
|
end
|
data/lib/console/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: console
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Samuel Williams
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-04-
|
11
|
+
date: 2019-04-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: covered
|