process_settings 0.8.1 → 0.8.2
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 -0
- data/lib/process_settings/target.rb +2 -2
- 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: 4c35c37914363571825848c95ec6d1f3d15811b11b0bea5671f28744a4108129
|
4
|
+
data.tar.gz: 6c252be7fb7d924f50fd9a6cdbbb35bcfa292da595cb79c3e644a8f9f3da08d1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f07d59b5f034ce85b5e20b117fe731d3b3860b6422c0ba2c8fcdaf4c39d88c5af70ed6636952cd9385c25ad9e320cfd1784671689406dae71ac051fdf1daa709
|
7
|
+
data.tar.gz: 3a74f7e775d7c4688a20b0c3b93918992ef5acd3163aa581f411b87fa326ef7cc0eaea0f090915464f3b20f45740112c681543b3a7c8c5c58eba3dca8b0ba6f2
|
@@ -143,6 +143,7 @@ module ProcessSettings
|
|
143
143
|
# this can be rather costly to do every time if the dynamic context is not changing
|
144
144
|
# TODO: Warn in the case where dynamic context was attempting to change a static value
|
145
145
|
# TODO: Cache the last used dynamic context as a potential optimization to avoid unnecessary deep merges
|
146
|
+
# TECH-4402 was created to address these todos
|
146
147
|
full_context = dynamic_context.deep_merge(static_context)
|
147
148
|
result = statically_targeted_settings.reduce(:not_found) do |latest_result, target_and_settings|
|
148
149
|
# find last value from matching targets
|
@@ -58,8 +58,8 @@ module ProcessSettings
|
|
58
58
|
when true # this hash entry is true, so omit it
|
59
59
|
when false # this hash entry is false, so hash is false
|
60
60
|
return false
|
61
|
-
else
|
62
|
-
|
61
|
+
else # sub-key does not exist, so hash is false
|
62
|
+
return false
|
63
63
|
end
|
64
64
|
else
|
65
65
|
hash[key] = value
|