console 1.2.2 → 1.2.3

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: 42c957c1d64c6505fbeb52cd01efcd22117ecb74a0d0553c694edfa12c9ee649
4
- data.tar.gz: 7096c0f2e4a91f723857ffc94626a2a8b111ef80cbc0a4b48b21ea83d332a68f
3
+ metadata.gz: 53ecf188aff5a90accc14fe821fb10e6859f782acc38b6651415d30cb3672931
4
+ data.tar.gz: 7fb95fd1edc4e945162cd179cd7377cae14cde2fd7b5cce2bcdfc8c6ea916b48
5
5
  SHA512:
6
- metadata.gz: 48066e81cd4018dd39a8cf41075a098c4f8e540b68a85dcec668b6d88462502a01e3f2349c392f385b87530372e2e68df505a838502bbb8cf315e7d0e87a6ef5
7
- data.tar.gz: 8d13ed18bad4f335065d71a5d5784f86ad765d104bc62f8322d7212ddcd603f417aa220fe538c3ec5e4fc9118a9b3ffa3aa676e7efdc5aabff233e03e5e48fe5
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 = nil, output, terminal, verbose)
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
@@ -19,5 +19,5 @@
19
19
  # THE SOFTWARE.
20
20
 
21
21
  module Console
22
- VERSION = "1.2.2"
22
+ VERSION = "1.2.3"
23
23
  end
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.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-19 00:00:00.000000000 Z
11
+ date: 2019-04-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: covered