process_settings 0.4.0.pre.4 → 0.4.0.pre.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/monitor.rb +1 -1
- data/lib/process_settings/version.rb +1 -1
- data/lib/process_settings.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1a69db3e4ceae9fba3348ecd92382b5f5a3958e1
|
4
|
+
data.tar.gz: 40fe4f88c2134f920564ee73c7ff501c3e7a6b39
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 964821a5aa423008d3ea765c927f331b9da82e93bfd7b2da57141e95015bad8729ee30838f6a1c8424873f827dcdc432489fbcc3dff0628e2b15de123b0aab1e
|
7
|
+
data.tar.gz: fcc8f83d5e90581cd7858b9bbb33a2d5c03ae452c9701730edd2c9a0c2b7e3f6fee3631807364a4f0bff7d2e811607db67ea72d09f6b8ef5dcf43914b5fab6c6
|
@@ -67,7 +67,7 @@ module ProcessSettings
|
|
67
67
|
# If nothing set at the given `path`:
|
68
68
|
# if required, raises SettingsPathNotFound
|
69
69
|
# else returns nil
|
70
|
-
def targeted_value(path, dynamic_context:, required: true)
|
70
|
+
def targeted_value(*path, dynamic_context:, required: true)
|
71
71
|
# Merging the static context in is necessary to make sure that the static context isn't shifting
|
72
72
|
# this can be rather costly to do every time if the dynamic context is not changing
|
73
73
|
# TODO: Warn in the case where dynamic context was attempting to change a static value
|
data/lib/process_settings.rb
CHANGED
@@ -7,8 +7,8 @@ require 'process_settings/monitor'
|
|
7
7
|
|
8
8
|
module ProcessSettings
|
9
9
|
class << self
|
10
|
-
def [](
|
11
|
-
Monitor.instance.targeted_value(
|
10
|
+
def [](*path, dynamic_context: {}, required: true)
|
11
|
+
Monitor.instance.targeted_value(*path, dynamic_context: dynamic_context, required: required)
|
12
12
|
end
|
13
13
|
end
|
14
14
|
end
|