console1984 0.1.9 → 0.1.10

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: 2f1312b244e339b0196d4baa80fc989ed3871cd722f166a278f4877ca1dee4da
4
- data.tar.gz: a66ab76f426a50cb99c4de2223d420c9d2d246b5dd0a6ec8f1712deca56244f9
3
+ metadata.gz: 6d40ddccd6e06beaf5f506991d87a1b60d20246d6320e92a5dda0dceef86c746
4
+ data.tar.gz: 03cf91cc60cd5764665042e918c5241464ae4b2ab923dad19e7ccac28ae0954f
5
5
  SHA512:
6
- metadata.gz: d46797d8751dde38fccb25fef4e86e3a8ee42b17251d932e5cbc9ffc381bba2bd42c2a946ce8e7e867ff8e6270700dec73d8425534f52970c87bffbc682365f8
7
- data.tar.gz: cd1a43abe5170dfb94a83ed375b8517b4263354ba30a53cb2287f3ffd240ab18984134df79801657fcb07fea1826d6fc3f978f6ae752c013ead820330d8e024a
6
+ metadata.gz: db4dab2e225fb0565cf7654ac9030aecba5372f404e813633e088b615ad834c1283319456bb0c69b5c5526e5a2f8387c9151bb1f59ba20889d40993b3db29e9e
7
+ data.tar.gz: 921511573b0f9ad7c8d9019dbe2b83db1d5f054740508e33c48aea31de441a580a7d4ddecc75d9f722388028b08fae46fce5c1d7503a688598bf8b72d0121c14
@@ -76,7 +76,7 @@ class Console1984::CommandValidator::ParsedCommand
76
76
 
77
77
  def on_casgn(node)
78
78
  super
79
- _scope_node, name, value_node = *node
79
+ scope_node, name, value_node = *node
80
80
  @constant_assignments.push(*extract_constants(value_node))
81
81
  end
82
82
 
@@ -11,14 +11,17 @@ class Console1984::Refrigerator
11
11
  end
12
12
 
13
13
  private
14
- EXTERNAL_MODULES_AND_CLASSES_TO_FREEZE = [Parser::CurrentRuby]
15
-
16
14
  def freeze_internal_instances
17
15
  Console1984.config.freeze unless Console1984.config.test_mode
18
16
  end
19
17
 
20
18
  def freeze_external_modules_and_classes
21
- EXTERNAL_MODULES_AND_CLASSES_TO_FREEZE.each { |klass| klass.include(Console1984::Freezeable) }
19
+ external_modules_and_classes_to_freeze.each { |klass| klass.include(Console1984::Freezeable) }
20
+ end
21
+
22
+ def external_modules_and_classes_to_freeze
23
+ # Not using a constant because we want this to run lazily (console-dependant dependencies might not be loaded).
24
+ [Parser::CurrentRuby]
22
25
  end
23
26
 
24
27
  def eager_load_all_classes
@@ -1,3 +1,3 @@
1
1
  module Console1984
2
- VERSION = '0.1.9'
2
+ VERSION = '0.1.10'
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.9
4
+ version: 0.1.10
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-06 00:00:00.000000000 Z
11
+ date: 2021-09-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: colorize