console1984 0.1.29 → 0.1.30

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: 3e6d3bffb321c5f76f56fbb28fa2b0bf289449c7fc927d0c9f1e729a3d47a756
4
- data.tar.gz: a3ce603cadc5d9d3cc0772947f529865a1659fedb5752a4915b19bbdfae10871
3
+ metadata.gz: edc219593c4db79d9abb483cb91fb2da5f229fbbb6729fecede09bd12a9a5c1f
4
+ data.tar.gz: 874b307704da2c60e082cd2eb0e9ad02b32fc85eb986b7f607975781328b8fe7
5
5
  SHA512:
6
- metadata.gz: a8243c4ff8a978058ab781b8c8cdc1d1c7139be178973a7df7106bfcc23c470feb19686f2370c0e5d6843fd91b6bfe5155291177c430acb281c2975c58a8647b
7
- data.tar.gz: 17b9eeaf8f599d599ab86b325e8ef755b330a40291704b036ca121f96410bbb145063e50a2091b2e6d4f7dbf237d076e2b70e1be9693a61eb2c408b7182102fe
6
+ metadata.gz: c6b1423d81bced6b0e6e430537d8da90574d4d13cf7a1f191a7c63fd943435e74c5842c94cc468d8e6389a9b4b84fef3472c095be25264ad8a50f8a66009e9ba
7
+ data.tar.gz: ed1b618301bd46e5479b046b34d8f1bc4f94b2bc919e4b5553240b4c77252fa827abc395eb4efd3b262047e19da6e66cf3007fca8a714e6b519df59c231eb726
@@ -29,6 +29,8 @@ class Console1984::CommandExecutor
29
29
  # We detected that a forbidden command was executed. We exit IRB right away.
30
30
  flag_suspicious(commands, error: error)
31
31
  Console1984.supervisor.exit_irb
32
+ rescue => error
33
+ raise encrypting_error(error)
32
34
  ensure
33
35
  run_as_system { session_logger.after_executing commands }
34
36
  end
@@ -97,4 +99,16 @@ class Console1984::CommandExecutor
97
99
  ensure
98
100
  @executing_user_command = original_value
99
101
  end
102
+
103
+ def encrypting_error(error)
104
+ def error.inspect
105
+ Console1984.command_executor.execute_in_protected_mode { super }
106
+ end
107
+
108
+ def error.to_s
109
+ Console1984.command_executor.execute_in_protected_mode { super }
110
+ end
111
+
112
+ error
113
+ end
100
114
  end
@@ -1,3 +1,3 @@
1
1
  module Console1984
2
- VERSION = "0.1.29"
2
+ VERSION = "0.1.30"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: console1984
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.29
4
+ version: 0.1.30
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jorge Manrubia
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-07-10 00:00:00.000000000 Z
11
+ date: 2023-09-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rainbow