process_settings 0.10.4 → 0.10.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/process_settings.rb +2 -9
- data/lib/process_settings/monitor.rb +1 -1
- data/lib/process_settings/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 22513a938b872f9e3366d445d4c121aafd965c32bec9b937f9b2abe41ff73722
|
4
|
+
data.tar.gz: 4e352a2f5a80c19fd171810612b411762372aec422464f684cbcfe71d5d27602
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ac2cf3d580dd5c27c4bed2a10a59024d886bcfecd2cae4a2b39ddc3e34b78a82f41e01323bc0732144c4bd2823c1e379c2bd218ebf34cf4dc2b1a992d9bf9b20
|
7
|
+
data.tar.gz: 97b556d773340f019947a3c623faea53086274a8ff03b62b61583c757e3d7228acb0d1b800ad21076831648238dcca008f7a0cf939ade944d33fc3832b78828d
|
data/lib/process_settings.rb
CHANGED
@@ -22,14 +22,14 @@ module ProcessSettings
|
|
22
22
|
raise ArgumentError, "Invalid monitor of type #{monitor.class.name} provided. Must be of type ProcessSettings::AbstractMonitor"
|
23
23
|
end
|
24
24
|
|
25
|
-
|
25
|
+
Monitor.instance = monitor
|
26
26
|
end
|
27
27
|
|
28
28
|
# Getter method for retrieving the current monitor instance being used by ProcessSettings
|
29
29
|
#
|
30
30
|
# @return [ProcessSettings::AbstractMonitor]
|
31
31
|
def instance
|
32
|
-
|
32
|
+
Monitor.instance
|
33
33
|
end
|
34
34
|
|
35
35
|
# This is the main entry point for looking up settings in the process.
|
@@ -56,12 +56,5 @@ module ProcessSettings
|
|
56
56
|
def [](*path, dynamic_context: {}, required: true)
|
57
57
|
instance[*path, dynamic_context: dynamic_context, required: required]
|
58
58
|
end
|
59
|
-
|
60
|
-
private
|
61
|
-
|
62
|
-
def lazy_create_instance
|
63
|
-
ActiveSupport::Deprecation.warn("lazy creation of Monitor instance is deprecated and will be removed from ProcessSettings 1.0")
|
64
|
-
Monitor.instance
|
65
|
-
end
|
66
59
|
end
|
67
60
|
end
|
@@ -31,11 +31,11 @@ module ProcessSettings
|
|
31
31
|
end
|
32
32
|
|
33
33
|
def instance
|
34
|
-
ActiveSupport::Deprecation.warn("ProcessSettings::Monitor.instance is deprecated and will be removed in v1.0. Use ProcessSettings.instance instead.")
|
35
34
|
@instance ||= default_instance
|
36
35
|
end
|
37
36
|
|
38
37
|
def default_instance
|
38
|
+
ActiveSupport::Deprecation.warn("`ProcessSettings::Monitor.instance` is deprecated and will be removed in v1.0. Assign a `FileMonitor` object to `ProcessSettings.instance` instead.")
|
39
39
|
@default_instance ||= new_from_settings
|
40
40
|
end
|
41
41
|
|