slack_log_device 5.1.0 → 5.1.1

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: 3aa26183c60229ce1a1102f4392082150a585cfc57f637e2241596ce4bb4f289
4
- data.tar.gz: 862b27ad34b7c77c5c8fd4f3d04a0228420462f3ebd2cf77593af8c8e044f673
3
+ metadata.gz: cc52c5185f21ce0623dd8961d9ac1d30f2ed29c83104f837e4ae364220bd1641
4
+ data.tar.gz: ced863d29c0bb032f918be72844264c126a8e8aa3a1aff76fc0f978afbd20bfb
5
5
  SHA512:
6
- metadata.gz: 0d6460466cd2b2e71b43a8db275105fd36d6d92e7dcac1b4a2f8935f27f6ea1eeeacdbafa9cb9827dd914f07369e499f924c79d60a9dca898813ec8461650b94
7
- data.tar.gz: 95f9bf541bc5c76be65e876d6c7cb1dde41f66e381da3fcf6693e56e0100f9bb0d60fa07f64aa1940fce85efdd67b280f82fa465796c4cec21db68b3c1c4d815
6
+ metadata.gz: a1b0c6e4f33378ab0da9b309c0b83b1c09e83c3785772e3c965a745019b3e35929c0645f9ca1837af5d84194e42416abb2044e8483550b577f79fffc1c4278a7
7
+ data.tar.gz: 99c4723464383950a79b54999966eefbf98ba0763ec0b99e7c5b382bb1be9a31b76b2efe420b45d29006dbff7a0d940ae2aa8bb66d189fbbd9611d4c493459ac
data/VERSION CHANGED
@@ -1 +1 @@
1
- 5.1.0
1
+ 5.1.1
@@ -95,9 +95,9 @@ class SlackLogDevice
95
95
  def append_exception_cause(text, exception)
96
96
  cause = exception.cause
97
97
  return text if cause.nil?
98
- message = "\n\nCaused by `#{exception.class}`"
98
+ message = "\n\nCaused by `#{cause.class}`"
99
99
  return text if (text + message).size > MAX_MESSAGE_LENGTH
100
- text = truncate("#{text}#{message}: #{exception.message}")
100
+ text = truncate("#{text}#{message}: #{cause.message}")
101
101
  text = append_exception_backtrace(text, cause)
102
102
  append_exception_cause(text, cause)
103
103
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: slack_log_device
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.1.0
4
+ version: 5.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexis Toulotte
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-02-04 00:00:00.000000000 Z
11
+ date: 2018-02-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport