denouncer 0.2.5 → 0.2.6

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 18e13628a53f1013de4d104ac8c7f7f7ba322a1d
4
- data.tar.gz: 6fe0e094e8b9d59dc79026772f34d211a1675417
3
+ metadata.gz: d95418a9137acb057884e81971a32145a509b432
4
+ data.tar.gz: 948a25ff7c0b33c5c052680e92c37a3646e6ac11
5
5
  SHA512:
6
- metadata.gz: 4756ec7dcc9fd0aef73d5d5a6afcf2a6cf9f9beab0a4f45aa15674afd321779ce6cdf58b657febcaa5ba18d4d2be25a5792aa1fa30ca63e4e8587bd9a0f7347c
7
- data.tar.gz: 2a7e48863d3be97aadd69d6c88d9798a2ac953b6fc7306f89640a4252cbf5857b5c7cd93d720845722e0b547606179f57452d8dd97264ba7c230db9ea427c44a
6
+ metadata.gz: a0a36c92b323d0d1e36bea77dac86858c4330ce5277fa91355071705252403ed64474522a90a7322b3bb583a5ce93ff23675b7cf81a6e09238b5f250f65ad731
7
+ data.tar.gz: 968812c48775dc4042e79beeddbd95b990221e30bab0a678f3924029fe25847af4a3b3741fa9712738c413a5cfaeb985787f082ec3197f1e03a60014c1cd11ab
@@ -58,7 +58,7 @@ Error message:
58
58
  #{error.message}
59
59
 
60
60
  Backtrace:
61
- #{error.backtrace}
61
+ #{formatted_backtrace(error)}
62
62
 
63
63
  Error cause:
64
64
  #{error.cause}
@@ -68,6 +68,17 @@ Metadata:
68
68
  END_OF_MESSAGE
69
69
  return msgstr
70
70
  end
71
+
72
+ def formatted_backtrace(error)
73
+ bt = error.backtrace
74
+ return "No backtrace available!" if bt.nil?
75
+ str = ""
76
+ bt.each do |line|
77
+ str << line << "\n"
78
+ end
79
+ return str
80
+ end
81
+
71
82
  end
72
83
  end
73
84
  end
@@ -1,3 +1,3 @@
1
1
  module Denouncer
2
- VERSION = "0.2.5"
2
+ VERSION = "0.2.6"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: denouncer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.5
4
+ version: 0.2.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Julian Weber
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-22 00:00:00.000000000 Z
11
+ date: 2015-03-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler