launchdarkly-server-sdk 8.20.0-java → 8.20.1-java
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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2965ee187832df4fe76e23171b360aaa5bc8ba24e5f539eb895be73e407e44ae
|
|
4
|
+
data.tar.gz: 5dc4d3a0afd3735bdce196c4504bd53ac162d64039a7b90f992f61125d9f49e6
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c0b1ad496b560ffadd8c228940ae5ebc2cfe40f2f9dbcadf2cf95c40dda43754b9c082a48131263d626590b634f2df6dc4a7f2f9575fe0bc5643bc7d3b1fef3b
|
|
7
|
+
data.tar.gz: 71f7c619377b7fc99d3469313231fddc6d6ac2b115c484aab7168e7c5bcce6bae82224b5d9a67c9e7ec9e3dcd939dea47a65df9153ff0d8d7d3a791c082b9a88
|
data/README.md
CHANGED
|
@@ -16,7 +16,7 @@ LaunchDarkly overview
|
|
|
16
16
|
Supported Ruby versions
|
|
17
17
|
-----------------------
|
|
18
18
|
|
|
19
|
-
|
|
19
|
+
While this version of the LaunchDarkly SDK requires Ruby 3.1.0 or later (or JRuby 9.4.0 or later), you should use the latest patched version of a supported Ruby or JRuby release.
|
|
20
20
|
|
|
21
21
|
Getting started
|
|
22
22
|
-----------
|
data/lib/ldclient-rb/events.rb
CHANGED
|
@@ -190,6 +190,13 @@ module LaunchDarkly
|
|
|
190
190
|
end
|
|
191
191
|
|
|
192
192
|
def record_custom_event(context, key, data = nil, metric_value = nil)
|
|
193
|
+
if metric_value.is_a?(Float) && !metric_value.finite?
|
|
194
|
+
# NaN and +/-Infinity cannot be serialized to JSON; sending them would make the whole
|
|
195
|
+
# batch fail to serialize and drop every other event in it.
|
|
196
|
+
@logger.warn { "[LDClient] Custom event '#{key}' has a non-finite metric value (#{metric_value}); the event will be dropped" }
|
|
197
|
+
return
|
|
198
|
+
end
|
|
199
|
+
|
|
193
200
|
post_to_inbox(LaunchDarkly::Impl::CustomEvent.new(timestamp, context, key, data, metric_value))
|
|
194
201
|
end
|
|
195
202
|
|
|
@@ -192,10 +192,13 @@ module LaunchDarkly
|
|
|
192
192
|
end
|
|
193
193
|
elsif method == DELETE
|
|
194
194
|
data = JSON.parse(message.data, symbolize_names: true)
|
|
195
|
+
version = data[:version]
|
|
196
|
+
# The SSE client restarts the stream when this method raises.
|
|
197
|
+
raise ArgumentError, "delete event for #{data[:path]} has a version that is not an integer" unless version.is_a?(Integer)
|
|
195
198
|
for kind in [Impl::DataStore::FEATURES, Impl::DataStore::SEGMENTS]
|
|
196
199
|
key = key_for_path(kind, data[:path])
|
|
197
200
|
if key
|
|
198
|
-
update_sink_or_data_store.delete(kind, key,
|
|
201
|
+
update_sink_or_data_store.delete(kind, key, version)
|
|
199
202
|
break
|
|
200
203
|
end
|
|
201
204
|
end
|
data/lib/ldclient-rb/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: launchdarkly-server-sdk
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 8.20.
|
|
4
|
+
version: 8.20.1
|
|
5
5
|
platform: java
|
|
6
6
|
authors:
|
|
7
7
|
- LaunchDarkly
|
|
8
8
|
bindir: bin
|
|
9
9
|
cert_chain: []
|
|
10
|
-
date: 2026-11-
|
|
10
|
+
date: 2026-11-20 00:00:00.000000000 Z
|
|
11
11
|
dependencies:
|
|
12
12
|
- !ruby/object:Gem::Dependency
|
|
13
13
|
name: aws-sdk-dynamodb
|