ff-ruby-server-sdk 1.0.4 → 1.0.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/CHANGELOG.md +4 -0
- data/example/getting_started/getting_started.rb +3 -0
- data/lib/ff/ruby/server/sdk/api/inner_client.rb +8 -4
- data/lib/ff/ruby/server/sdk/api/metrics_processor.rb +1 -1
- data/lib/ff/ruby/server/sdk/api/polling_processor.rb +1 -1
- data/lib/ff/ruby/server/sdk/api/update_processor.rb +1 -1
- data/lib/ff/ruby/server/sdk/version.rb +1 -1
- data/scripts/sdk_specs.sh +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fcebe5eaa757a9376616a1a1db63c1a829f435b113ad140d228cb5ee18b54ffe
|
4
|
+
data.tar.gz: 17698d0edbc9c2a4d6bfd93f599d1f3acb844b45c88083c272d6f9d2542e00b9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 84e5149958d5d0c15ae08644eb8803b49b4d31299abdd8c054e804e830e2c6b93c18f9701403017b87a7bbf2e2582c49777ba71edc01de2d6a7bdac9abf959ed
|
7
|
+
data.tar.gz: e8d093a568bee30b277774d6b3173ba30bd757033b265686356ee6490c0e57f8046826e3fe9e56f8673439e1eb2e4ce979197384976e0a45c1866aebf7c39d7b
|
data/CHANGELOG.md
CHANGED
@@ -21,7 +21,10 @@ logger.info "Harness Ruby SDK Getting Started"
|
|
21
21
|
client = CfClient.instance
|
22
22
|
|
23
23
|
client.init(apiKey, ConfigBuilder.new.logger(logger).build)
|
24
|
+
|
25
|
+
logger.info "----- initialization started ----- "
|
24
26
|
client.wait_for_initialization
|
27
|
+
logger.info "----- initialization done ----- "
|
25
28
|
|
26
29
|
# Create a target (different targets can get different results based on rules. This include a custom attribute 'location')
|
27
30
|
target = Target.new("RubySDK", identifier="rubysdk", attributes={"location": "emea"})
|
@@ -223,6 +223,8 @@ class InnerClient < ClientCallback
|
|
223
223
|
return
|
224
224
|
end
|
225
225
|
|
226
|
+
@config.logger.info "All processors now ready"
|
227
|
+
|
226
228
|
@initialized = true
|
227
229
|
|
228
230
|
# TODO: notify - Reactivity support
|
@@ -262,7 +264,8 @@ class InnerClient < ClientCallback
|
|
262
264
|
@repository = StorageRepository.new(@config.cache, @repository_callback, @config.store, @config.logger)
|
263
265
|
|
264
266
|
@metrics_callback = InnerClientMetricsCallback.new(self, @config.logger)
|
265
|
-
@metrics_processor = MetricsProcessor.new
|
267
|
+
@metrics_processor = MetricsProcessor.new
|
268
|
+
@metrics_processor.init(@connector, @config, @metrics_callback)
|
266
269
|
|
267
270
|
@evaluator = Evaluator.new(@repository, logger = @config.logger)
|
268
271
|
@evaluator_callback = InnerClientFlagEvaluateCallback.new(@metrics_processor, logger = @config.logger)
|
@@ -275,8 +278,8 @@ class InnerClient < ClientCallback
|
|
275
278
|
logger = @config.logger
|
276
279
|
)
|
277
280
|
|
278
|
-
@poll_processor = PollingProcessor.new
|
279
|
-
|
281
|
+
@poll_processor = PollingProcessor.new
|
282
|
+
@poll_processor.init(
|
280
283
|
connector = @connector,
|
281
284
|
repository = @repository,
|
282
285
|
poll_interval_in_sec = @config.poll_interval_in_seconds,
|
@@ -291,7 +294,8 @@ class InnerClient < ClientCallback
|
|
291
294
|
logger = @config.logger
|
292
295
|
)
|
293
296
|
|
294
|
-
@update_processor = UpdateProcessor.new
|
297
|
+
@update_processor = UpdateProcessor.new
|
298
|
+
@update_processor.init(
|
295
299
|
|
296
300
|
connector = @connector,
|
297
301
|
repository = @repository,
|
data/scripts/sdk_specs.sh
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ff-ruby-server-sdk
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- 'Miloš Vasić, cyr.: Милош Васић'
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-01-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|