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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c8ecb4fa34cd6b858da396ba8fe96832807673e193cec73cd718db10cef55069
4
- data.tar.gz: d4fa72ac23fb00e03526b9b4c9fc338f24672bbcf79ca78a62e6b5779b82123a
3
+ metadata.gz: 4c35c37914363571825848c95ec6d1f3d15811b11b0bea5671f28744a4108129
4
+ data.tar.gz: 6c252be7fb7d924f50fd9a6cdbbb35bcfa292da595cb79c3e644a8f9f3da08d1
5
5
  SHA512:
6
- metadata.gz: 25c2cbf0cceddde9c5bb20e6cb87d2059ffbcc8430d8123d89af460a9eed687e7e9e76ebd697afcf04c405b3bd105b3bc0888a62acb84dd962bce66c6466fb30
7
- data.tar.gz: e630c9aae2efdbbc5072b82f27ed3e77f40757878189db66c64fd591f0e351a901adc20ed68a7dbb15c58615377326cb274dcf3871e49d200f19fcb6cc0f2e10
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
- raise ArgumentError, "Got #{sub_value.inspect}???"
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ProcessSettings
4
- VERSION = '0.8.1'
4
+ VERSION = '0.8.2'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: process_settings
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.1
4
+ version: 0.8.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Invoca