process_settings 0.10.5 → 0.10.6.pre.1
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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9f84a7b291c62e80a70aa63c5cd9fef3da8a479023b97b2b48876440e2ad3f78
|
4
|
+
data.tar.gz: ed14cf885d3c1e8f43aba4efd90b84aae91fba2e7d9aa0c044d3d87d60453ed0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: db0012a991f04fe39c830010e5d5bb189ab0d4acd7211e04b3c606aa4267297b439ef42837238366a13798bef80a3ba078c192494b2d135b29b5ae80998e16ab
|
7
|
+
data.tar.gz: 571dd8f98045dd11f43dc4d349d0b3b0e094de80deb304a3a52905c6659e8643f6adf9cc31ae4474bdd55b8530d9698fcaaa940e1d4a21c84461686bdd32b8e0
|
@@ -15,7 +15,7 @@ module ProcessSettings
|
|
15
15
|
attr_reader :static_context, :statically_targeted_settings
|
16
16
|
|
17
17
|
def initialize(logger:)
|
18
|
-
@logger = logger
|
18
|
+
@logger = logger or raise ArgumentError, "logger must be not be nil"
|
19
19
|
@on_change_callbacks = []
|
20
20
|
@when_updated_blocks = Set.new
|
21
21
|
@static_context = {}
|
@@ -13,7 +13,6 @@ module ProcessSettings
|
|
13
13
|
attr_writer :instance
|
14
14
|
|
15
15
|
def file_path=(new_file_path)
|
16
|
-
ActiveSupport::Deprecation.warn("ProcessSettings::Monitor.file_path= is deprecated and will be removed in v1.0.")
|
17
16
|
clear_instance
|
18
17
|
|
19
18
|
@file_path = new_file_path
|
@@ -31,11 +30,16 @@ module ProcessSettings
|
|
31
30
|
end
|
32
31
|
|
33
32
|
def instance
|
34
|
-
@instance
|
33
|
+
if @instance
|
34
|
+
@instance
|
35
|
+
else
|
36
|
+
ActiveSupport::Deprecation.warn("`ProcessSettings::Monitor.instance` lazy create is deprecated and will be removed in v1.0. Assign a `FileMonitor` object to `ProcessSettings.instance =` instead.")
|
37
|
+
@instance = default_instance
|
38
|
+
end
|
35
39
|
end
|
36
40
|
|
37
41
|
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
|
42
|
+
ActiveSupport::Deprecation.warn("`ProcessSettings::Monitor.instance` is deprecated and will be removed in v1.0. Assign a `FileMonitor` object to `ProcessSettings.instance =` instead.")
|
39
43
|
@default_instance ||= new_from_settings
|
40
44
|
end
|
41
45
|
|
@@ -11,8 +11,14 @@ module ProcessSettings
|
|
11
11
|
module Testing
|
12
12
|
# This class implements the Monitor#targeted_value interface but is stubbed to use a simple hash in tests
|
13
13
|
class MonitorStub
|
14
|
+
class << self
|
15
|
+
def new(*_args)
|
16
|
+
ActiveSupport::Deprecation.warn("ProcessSettings::Testing::MonitorStub is deprecated and will be removed in future versions. Use ProcessSettings::Testing::Monitor instead.", caller)
|
17
|
+
super
|
18
|
+
end
|
19
|
+
end
|
20
|
+
|
14
21
|
def initialize(settings_hash)
|
15
|
-
ActiveSupport::Deprecation.warn("ProcessSettings::Testing::MonitorStub is deprecated and will be removed in future versions. Use ProcessSettings::Testing::Monitor instead.", caller)
|
16
22
|
@settings_hash = HashWithHashPath[settings_hash]
|
17
23
|
end
|
18
24
|
|
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.10.
|
4
|
+
version: 0.10.6.pre.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Invoca
|
@@ -108,9 +108,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
108
108
|
version: '0'
|
109
109
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
110
110
|
requirements:
|
111
|
-
- - "
|
111
|
+
- - ">"
|
112
112
|
- !ruby/object:Gem::Version
|
113
|
-
version:
|
113
|
+
version: 1.3.1
|
114
114
|
requirements: []
|
115
115
|
rubygems_version: 3.0.3
|
116
116
|
signing_key:
|