console1984 0.1.30 → 0.1.31

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: edc219593c4db79d9abb483cb91fb2da5f229fbbb6729fecede09bd12a9a5c1f
4
- data.tar.gz: 874b307704da2c60e082cd2eb0e9ad02b32fc85eb986b7f607975781328b8fe7
3
+ metadata.gz: 534f4adb54490c9f5cb39a9e068e9d15ac2d84d05a7e7ed97e287b132021b52d
4
+ data.tar.gz: 2d6d1f7059db9bb2c4561136b45ef57b74a8ab8f86dd59a2a80fd6c117bdd5f6
5
5
  SHA512:
6
- metadata.gz: c6b1423d81bced6b0e6e430537d8da90574d4d13cf7a1f191a7c63fd943435e74c5842c94cc468d8e6389a9b4b84fef3472c095be25264ad8a50f8a66009e9ba
7
- data.tar.gz: ed1b618301bd46e5479b046b34d8f1bc4f94b2bc919e4b5553240b4c77252fa827abc395eb4efd3b262047e19da6e66cf3007fca8a714e6b519df59c231eb726
6
+ metadata.gz: ac7e2d0297fe375b638e8f1b1887889296fca195fd54cd489605420866399ff85506e525d4a173c95ccca988ed97767a7302d0a821cd7c0a36f7fe993a07d86a
7
+ data.tar.gz: 69f8d533ea41a90b038b713875d125f156bfebdec950c1a4c72a326a05ea551d01c170766fe941d2cb69e5ff55ba564953834e2759afe453eece87ee4c2a8b08
@@ -101,12 +101,16 @@ class Console1984::CommandExecutor
101
101
  end
102
102
 
103
103
  def encrypting_error(error)
104
- def error.inspect
105
- Console1984.command_executor.execute_in_protected_mode { super }
104
+ if error.respond_to?(:inspect)
105
+ def error.inspect
106
+ Console1984.command_executor.execute_in_protected_mode { method(:inspect).super_method.call }
107
+ end
106
108
  end
107
109
 
108
- def error.to_s
109
- Console1984.command_executor.execute_in_protected_mode { super }
110
+ if error.respond_to?(:to_s)
111
+ def error.to_s
112
+ Console1984.command_executor.execute_in_protected_mode { method(:to_s).super_method.call }
113
+ end
110
114
  end
111
115
 
112
116
  error
@@ -1,3 +1,3 @@
1
1
  module Console1984
2
- VERSION = "0.1.30"
2
+ VERSION = "0.1.31"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: console1984
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.30
4
+ version: 0.1.31
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jorge Manrubia