blackstack_commons 0.0.14 → 0.0.16
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/extend_exception.rb +4 -4
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5aca35493bf21923dc3c0479dc67ddb700d34541
|
4
|
+
data.tar.gz: 7f8b76d7fe177684af3b961689852a7a33b4d07b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7c6eb8bc9526ee4c19181eb48fdc1deea4ed985a4f494ebd9f24915b7856ad732c15ab58ebfb009d88266dfff22f1e829dee5601a5c0438105859bb2d99ebe3a
|
7
|
+
data.tar.gz: 6fe0d63b677c23fcd56cf58b02c88a8e0dbae38c1ae10854a4385dc19bb84b1fbf00476bf407616adf4c815932d39ee6c95ae6992bd210f9d576960b33810617
|
data/lib/extend_exception.rb
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
class Exception
|
2
|
-
def to_html
|
3
|
-
BlackStack::Strings::Encoding.encode_exception(self)
|
2
|
+
def to_html(include_backtrace=true)
|
3
|
+
BlackStack::Strings::Encoding.encode_exception(self, include_backtrace)
|
4
4
|
end
|
5
5
|
|
6
|
-
def to_console
|
7
|
-
ret =
|
6
|
+
def to_console(include_backtrace=true)
|
7
|
+
ret = self.to_s
|
8
8
|
ret += "\r\n" + self.backtrace.join("\r\n") if (include_backtrace == true)
|
9
9
|
ret
|
10
10
|
end # to_console
|