process_settings 0.4.0.pre.4 → 0.4.0.pre.5

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
  SHA1:
3
- metadata.gz: 140a1442c24610ff86f42711e259fa20c478474f
4
- data.tar.gz: '09b7c3fe96b5fd206d314aa7652671777c44198a'
3
+ metadata.gz: 1a69db3e4ceae9fba3348ecd92382b5f5a3958e1
4
+ data.tar.gz: 40fe4f88c2134f920564ee73c7ff501c3e7a6b39
5
5
  SHA512:
6
- metadata.gz: 2f922878b0de99a81164c846b148d8f81ac7b73746f93bddc61cda010f550a6b89021cdf89188e5e67b07281117dbfb29894f24bc417e4f0c8d46da1c1d4d811
7
- data.tar.gz: fe802ec5e18e6fcf4fc0783067ff76e4a5a4fe0e888da9b2bba7f91d8da58d4f873bb76cd965fb50f46afa261ee37a085f6d4256e6fa7f61978704f996551a8f
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ProcessSettings
4
- VERSION = '0.4.0.pre.4'
4
+ VERSION = '0.4.0.pre.5'
5
5
  end
@@ -7,8 +7,8 @@ require 'process_settings/monitor'
7
7
 
8
8
  module ProcessSettings
9
9
  class << self
10
- def [](value, dynamic_context: {}, required: true)
11
- Monitor.instance.targeted_value(value, dynamic_context: dynamic_context, required: required)
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
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.4.0.pre.4
4
+ version: 0.4.0.pre.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Invoca