console1984 0.1.14 → 0.1.15

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: edce6968a693f97b73d1e0c54ae8d0e83b659a71ef229bc8486c46f456f65783
4
- data.tar.gz: 8705e765cf98e7ec0ee828c5134694670a71779ff7e065ffed27e2a5e7b2dfc2
3
+ metadata.gz: 26a59332236edcf9b00811ef8fe7a7d6e3667763d0a58771bb09a5ef3935a64c
4
+ data.tar.gz: 03a89cc1fedb6e0837941730afb811a1e0f3f6b13393778e81993a5c577162c4
5
5
  SHA512:
6
- metadata.gz: 51a530838a4a651ffef1df68cc8f724f5e30998c90b44fd34ec1dd63a187b5344b662fffe3abd077a89586eab503f07841dd780ee1739320aedbf83add9b6455
7
- data.tar.gz: a24336a400da036dec22b6791234f83d09b4c313e61c37f80c6cc594b3f15ef8fe42313a6c1e2d092da0623b430d93be458513775fa88012fa8f63d8e1074362
6
+ metadata.gz: f21b2f38b9d1d1f136f7d3f83dac67cedd49fa47343e98b365c083aa58485d2a61aa0959ab8e9c6ff3086120b72bc6122e8a2c55f319419e812923e92badaf74
7
+ data.tar.gz: 50e7fdea76f8128744486dd5fddf59fd216118b7db7e51ff8c42aec0ff427fe720e94ffd308b95a6fee5c80b356dbf062e3802e1eaaac9829ac0a60e2d9c3742
@@ -6,7 +6,7 @@ module Console1984::Ext::Core::Module
6
6
  extend ActiveSupport::Concern
7
7
 
8
8
  def instance_eval(*)
9
- if Console1984.command_executor.executing_user_command?
9
+ if Console1984.command_executor.from_irb?(caller)
10
10
  raise Console1984::Errors::ForbiddenCommandAttempted
11
11
  else
12
12
  super
@@ -11,6 +11,11 @@ class Console1984::Refrigerator
11
11
  end
12
12
 
13
13
  private
14
+ def eager_load_all_classes
15
+ Rails.application.eager_load! unless Rails.application.config.eager_load
16
+ Console1984.class_loader.eager_load
17
+ end
18
+
14
19
  def freeze_internal_instances
15
20
  Console1984.config.freeze unless Console1984.config.test_mode
16
21
  end
@@ -23,9 +28,4 @@ class Console1984::Refrigerator
23
28
  # Not using a constant because we want this to run lazily (console-dependant dependencies might not be loaded).
24
29
  [Parser::CurrentRuby]
25
30
  end
26
-
27
- def eager_load_all_classes
28
- Rails.application.eager_load! unless Rails.application.config.eager_load
29
- Console1984.class_loader.eager_load
30
- end
31
31
  end
@@ -1,3 +1,3 @@
1
1
  module Console1984
2
- VERSION = '0.1.14'
2
+ VERSION = '0.1.15'
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.14
4
+ version: 0.1.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jorge Manrubia
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-09-10 00:00:00.000000000 Z
11
+ date: 2021-09-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: colorize
@@ -38,6 +38,20 @@ dependencies:
38
38
  - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: activeresource
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
41
55
  - !ruby/object:Gem::Dependency
42
56
  name: benchmark-ips
43
57
  requirement: !ruby/object:Gem::Requirement