console1984 0.1.24 → 0.1.25

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: a67c07da2418015b191eb5bdf297d0356cc21b628ab767baeb9bad25b0ec049f
4
- data.tar.gz: 43f01780c1c444fb9a62de3ffe54aa18b877666087ffe72dfed42d0ff4a5067a
3
+ metadata.gz: 604fa3be84c78fb2f8707433670b026479421156a6ea5063a11e74310ad52204
4
+ data.tar.gz: f1a1b10ffe7bc46176071ee5a4977d30383b652b456ddcbf52970afa61dcc59a
5
5
  SHA512:
6
- metadata.gz: 29020efa4419ba5ab3d156ab5739a0d51afd2ba28f5fd4f2d702b13f9cc7d4145ed3564d686ebfc748b371a4a7adf094013dba93f882ab0c641c58a1b8b306fd
7
- data.tar.gz: 51519e6c79206461115304b3edf7b471901608e4f5d0ff87874922ee42227b75b0e251f2370eabe750fbb8f1568179f5d6d027dc8b7406881e9abd70ac7c6115
6
+ metadata.gz: 47d46b93eda2373892871c6fc7667e3949fecbfe5c4a669f92b61c3f319499de30befc015543d67e0daf674d0c82cfb720658858057a96b268c3769f55e05f7b
7
+ data.tar.gz: 99a6d022450c62665224ec89f22ebf0f2b55866e37cb18616127077f58084a01e7b7d01be5e554dc2a883a729260fcc51ced37f511bce5086b3c68f0bb7b0524
@@ -2,7 +2,7 @@ class CreateConsole1984Tables < ActiveRecord::Migration[7.0]
2
2
  def change
3
3
  create_table :console1984_sessions do |t|
4
4
  t.text :reason
5
- t.references :user, null: false
5
+ t.references :user, null: false, index: false
6
6
  t.timestamps
7
7
 
8
8
  t.index :created_at
@@ -19,7 +19,7 @@ class CreateConsole1984Tables < ActiveRecord::Migration[7.0]
19
19
  create_table :console1984_commands do |t|
20
20
  t.text :statements
21
21
  t.references :sensitive_access
22
- t.references :session, null: false
22
+ t.references :session, null: false, index: false
23
23
  t.timestamps
24
24
 
25
25
  t.index [ :session_id, :created_at, :sensitive_access_id ], name: "on_session_and_sensitive_chronologically"
@@ -28,7 +28,7 @@ class Console1984::Shield
28
28
  def extend_protected_systems
29
29
  extend_irb
30
30
  extend_core_ruby
31
- extend_sockets
31
+ extend_sockets unless Console1984.protected_urls.blank?
32
32
  extend_active_record
33
33
  end
34
34
 
@@ -13,6 +13,6 @@ class Console1984::Username::EnvResolver
13
13
 
14
14
  private
15
15
  def username
16
- @username ||= ENV[@key]&.humanize
16
+ @username ||= ENV[@key]
17
17
  end
18
18
  end
@@ -1,3 +1,3 @@
1
1
  module Console1984
2
- VERSION = '0.1.24'
2
+ VERSION = '0.1.25'
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.24
4
+ version: 0.1.25
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jorge Manrubia
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-04-01 00:00:00.000000000 Z
11
+ date: 2022-06-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: colorize