console1984 0.2.0 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/config/protections.yml +2 -1
- data/lib/console1984/ext/irb/context.rb +1 -1
- data/lib/console1984/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2780f949e661adfabca876c59cbe208b724728ba49d48e06caa3301c58419eb5
|
4
|
+
data.tar.gz: c6e5dd28ac9aab44c1eb8be6a76a34606cadac94a3d3545a1c6991fde636173c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 94f9f5032b7211bf3bec1b798417aa02ce33ac383b166808e92f7fff654fe150fb48a2d846adc2cfc14465abed6cc017061c0ebf7694192932744b64962f685d
|
7
|
+
data.tar.gz: 0f8e68ebd3aadbcee4904605b74ba47ef88e1ee3b99e3693ad97c39ca223f696f5484794457631348205ecc75283ae19477b926599aaa53ccb010aea6710cf7a
|
data/README.md
CHANGED
@@ -152,7 +152,7 @@ These config options are namespaced in `config.console1984`:
|
|
152
152
|
| `ask_for_username_if_empty` | If `true`, the console will ask for a username if it is empty. If `false`, it will raise an error if no username is set. Defaults to `false`. |
|
153
153
|
| `production_data_warning` | The text to show when a console session starts. |
|
154
154
|
| `enter_unprotected_encryption_mode_warning` | The text to show when user enters into unprotected mode. |
|
155
|
-
| `enter_protected_mode_warning` | The text to show when user
|
155
|
+
| `enter_protected_mode_warning` | The text to show when user goes back to protected mode. |
|
156
156
|
| `incinerate` | Whether incinerate sessions automatically after a period of time or not. Default to `true`. |
|
157
157
|
| `incinerate_after` | The period to keep sessions around before incinerate them. Default `30.days`. |
|
158
158
|
| `incineration_queue` | The name of the queue for session incineration jobs. Default `console1984_incineration`. |
|
data/config/protections.yml
CHANGED
@@ -14,13 +14,14 @@ validations:
|
|
14
14
|
protected:
|
15
15
|
- PG
|
16
16
|
- Mysql2
|
17
|
-
- ActiveRecord::
|
17
|
+
- ActiveRecord::Encryption
|
18
18
|
suspicious_terms:
|
19
19
|
- console_1984
|
20
20
|
- Console1984
|
21
21
|
- secret
|
22
22
|
- credentials
|
23
23
|
- irb
|
24
|
+
- ENV
|
24
25
|
forbidden_methods:
|
25
26
|
Kernel:
|
26
27
|
- eval
|
@@ -5,7 +5,7 @@ module Console1984::Ext::Irb::Context
|
|
5
5
|
|
6
6
|
# This method is invoked for showing returned objects in the console
|
7
7
|
# Overridden to make sure their evaluation is supervised.
|
8
|
-
def inspect_last_value
|
8
|
+
def inspect_last_value(...)
|
9
9
|
Console1984.command_executor.execute_in_protected_mode do
|
10
10
|
super
|
11
11
|
end
|
data/lib/console1984/version.rb
CHANGED
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.2.
|
4
|
+
version: 0.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jorge Manrubia
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2025-01-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rainbow
|
@@ -298,7 +298,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
298
298
|
- !ruby/object:Gem::Version
|
299
299
|
version: '0'
|
300
300
|
requirements: []
|
301
|
-
rubygems_version: 3.5.
|
301
|
+
rubygems_version: 3.5.3
|
302
302
|
signing_key:
|
303
303
|
specification_version: 4
|
304
304
|
summary: Your Rails console, 1984 style
|