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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/extend_exception.rb +4 -4
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cdfbc989f195ee78557d2551e7c6768f5a7265fa
4
- data.tar.gz: 57898719bf693ce149a8d0cd12bf00a3d7a1120a
3
+ metadata.gz: 5aca35493bf21923dc3c0479dc67ddb700d34541
4
+ data.tar.gz: 7f8b76d7fe177684af3b961689852a7a33b4d07b
5
5
  SHA512:
6
- metadata.gz: 6bf0ce27e9a5bc26e28801d179f109f1b1cbd2ba8a08d2ec945b7dfb3413b6efdab340bea864c5ed206f00c82de8d91aaf03b0aa046855f95c89eb0d250d35a4
7
- data.tar.gz: 1e3f16e8e80c46ebbe56b277cc21f17e921f676beb1b336c76cf5b5b5a282d098f7f322125edad6de7dbd546734d58c5e1ae1694f668714d19939ac5d584e9ce
6
+ metadata.gz: 7c6eb8bc9526ee4c19181eb48fdc1deea4ed985a4f494ebd9f24915b7856ad732c15ab58ebfb009d88266dfff22f1e829dee5601a5c0438105859bb2d99ebe3a
7
+ data.tar.gz: 6fe0d63b677c23fcd56cf58b02c88a8e0dbae38c1ae10854a4385dc19bb84b1fbf00476bf407616adf4c815932d39ee6c95ae6992bd210f9d576960b33810617
@@ -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 = encode_html(self.to_s)
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: blackstack_commons
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.14
4
+ version: 0.0.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - Leandro Daniel Sardi