launchdarkly-server-sdk 8.17.0 → 8.18.0
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/ldclient-rb/ldclient.rb +10 -2
- data/lib/ldclient-rb/version.rb +1 -1
- metadata +10 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 04cc3611f092210f59ccf789aea80c573089e6c19884dd878a15695bb8affb24
|
|
4
|
+
data.tar.gz: 634641b8caf1b66a28e11e8e4d7321e0ab3e6fb4b6d8608f69a573c8e1ce56f4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4602b9a3639878f3120e968fee5473f4f4abbdec95a0e4dd25e4bcfada163f04da868d8a258f51febc9890c36665520ac471523030e7015e065daef9d9e0180f
|
|
7
|
+
data.tar.gz: c536b25da3dc94de793d0114a07274ca00851caa2f73c4057ac707456bb77378ab2c5b21e9ccc805e68f1ee61ff1f52c6e4849c649139cab2e16a5bd3b1a13dd
|
data/lib/ldclient-rb/ldclient.rb
CHANGED
|
@@ -81,6 +81,10 @@ module LaunchDarkly
|
|
|
81
81
|
# The pid of the process in which the fork warning was last logged, or nil.
|
|
82
82
|
@fork_warned_pid = Concurrent::AtomicReference.new(nil)
|
|
83
83
|
|
|
84
|
+
# Each flag lets the matching cached-data warning log once per client.
|
|
85
|
+
@cached_data_evaluation_warned = Concurrent::AtomicBoolean.new(false)
|
|
86
|
+
@cached_data_all_flags_warned = Concurrent::AtomicBoolean.new(false)
|
|
87
|
+
|
|
84
88
|
start_up(wait_for_sec)
|
|
85
89
|
end
|
|
86
90
|
|
|
@@ -629,7 +633,9 @@ module LaunchDarkly
|
|
|
629
633
|
|
|
630
634
|
unless initialized?
|
|
631
635
|
if @data_system.store.initialized?
|
|
632
|
-
|
|
636
|
+
if @cached_data_all_flags_warned.make_true
|
|
637
|
+
@config.logger.warn { "Called all_flags_state before client initialization; using last known values from data store. This message is logged once." }
|
|
638
|
+
end
|
|
633
639
|
else
|
|
634
640
|
@config.logger.warn { "Called all_flags_state before client initialization. Data store not available; returning empty state" }
|
|
635
641
|
return FeatureFlagsState.new(false)
|
|
@@ -765,7 +771,9 @@ module LaunchDarkly
|
|
|
765
771
|
|
|
766
772
|
if @data_system.data_availability != Impl::DataSystem::DataAvailability::REFRESHED
|
|
767
773
|
if @data_system.data_availability == Impl::DataSystem::DataAvailability::CACHED
|
|
768
|
-
@
|
|
774
|
+
if @cached_data_evaluation_warned.make_true
|
|
775
|
+
@config.logger.warn { "[LDClient] Client has not finished initializing; using last known values from feature store. This message is logged once." }
|
|
776
|
+
end
|
|
769
777
|
else
|
|
770
778
|
@config.logger.error { "[LDClient] Client has not finished initializing; feature store unavailable, returning default value" }
|
|
771
779
|
detail = Evaluator.error_result(EvaluationReason::ERROR_CLIENT_NOT_READY, default)
|
data/lib/ldclient-rb/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: launchdarkly-server-sdk
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 8.
|
|
4
|
+
version: 8.18.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- LaunchDarkly
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-09-
|
|
11
|
+
date: 2026-09-16 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: aws-sdk-dynamodb
|
|
@@ -346,16 +346,22 @@ dependencies:
|
|
|
346
346
|
name: json
|
|
347
347
|
requirement: !ruby/object:Gem::Requirement
|
|
348
348
|
requirements:
|
|
349
|
-
- - "
|
|
349
|
+
- - ">="
|
|
350
350
|
- !ruby/object:Gem::Version
|
|
351
351
|
version: '2.3'
|
|
352
|
+
- - "<"
|
|
353
|
+
- !ruby/object:Gem::Version
|
|
354
|
+
version: '4'
|
|
352
355
|
type: :runtime
|
|
353
356
|
prerelease: false
|
|
354
357
|
version_requirements: !ruby/object:Gem::Requirement
|
|
355
358
|
requirements:
|
|
356
|
-
- - "
|
|
359
|
+
- - ">="
|
|
357
360
|
- !ruby/object:Gem::Version
|
|
358
361
|
version: '2.3'
|
|
362
|
+
- - "<"
|
|
363
|
+
- !ruby/object:Gem::Version
|
|
364
|
+
version: '4'
|
|
359
365
|
description: Official LaunchDarkly SDK for Ruby
|
|
360
366
|
email:
|
|
361
367
|
- team@launchdarkly.com
|