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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6d40ddccd6e06beaf5f506991d87a1b60d20246d6320e92a5dda0dceef86c746
|
4
|
+
data.tar.gz: 03cf91cc60cd5764665042e918c5241464ae4b2ab923dad19e7ccac28ae0954f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: db4dab2e225fb0565cf7654ac9030aecba5372f404e813633e088b615ad834c1283319456bb0c69b5c5526e5a2f8387c9151bb1f59ba20889d40993b3db29e9e
|
7
|
+
data.tar.gz: 921511573b0f9ad7c8d9019dbe2b83db1d5f054740508e33c48aea31de441a580a7d4ddecc75d9f722388028b08fae46fce5c1d7503a688598bf8b72d0121c14
|
@@ -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
|
-
|
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
|
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.1.
|
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-
|
11
|
+
date: 2021-09-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: colorize
|