splitclient-rb 8.11.0.pre.rc3 → 8.11.1.pre.beta1
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/CHANGES.txt +5 -0
- data/LICENSE +1 -1
- data/lib/splitclient-rb/engine/matchers/rule_based_segment_matcher.rb +1 -1
- data/lib/splitclient-rb/engine/sync_manager.rb +8 -9
- data/lib/splitclient-rb/sse/event_source/client.rb +1 -1
- data/lib/splitclient-rb/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4a4db5832f1014e1affbb3d8dc9449fb5b90b5a85f711d2adc1b23c68930f0d1
|
|
4
|
+
data.tar.gz: fcaaf6956533c33c1208db241b7abd3e926b733721088688e57b7b7902f13427
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d1a06b2e4e9fc50d0c29e0b1a5a4b8525d89ce1e98212bb771a2237326ccfe5de5d2612a5dff9203efbdff3bae053289bc7c16a51a8200629f4bba11e392892f
|
|
7
|
+
data.tar.gz: 6bd725d5b1ff5e882f27f4d86dcdb4966e0d93f188e1f30a3031a6c291cd82b63fd72a7458f36d6d3b231878282a7ab485f0dc1cbda60c55b4f8d6ea566f0b5d
|
data/CHANGES.txt
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
CHANGES
|
|
2
2
|
|
|
3
|
+
8.11.0 (Mar, 12, 2026)
|
|
4
|
+
- Added the ability to listen to different events triggered by the SDK. Read more in our docs.
|
|
5
|
+
- SDK_UPDATE notify when a flag or user segment has changed
|
|
6
|
+
- SDK_READY notify when the SDK is ready to evaluate
|
|
7
|
+
|
|
3
8
|
8.10.1 (Jan 28, 2025)
|
|
4
9
|
- Fixed rule-based segment matcher to exit when a conition is met.
|
|
5
10
|
- Fixed impressions properties format in redis mode.
|
data/LICENSE
CHANGED
|
@@ -157,7 +157,7 @@ Apache License
|
|
|
157
157
|
file or class name and description of purpose be included on the
|
|
158
158
|
same "printed page" as the copyright notice for easier
|
|
159
159
|
identification within third-party archives.
|
|
160
|
-
Copyright
|
|
160
|
+
Copyright 2025 Harness Corporation
|
|
161
161
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
162
162
|
you may not use this file except in compliance with the License.
|
|
163
163
|
You may obtain a copy of the License at
|
|
@@ -40,7 +40,7 @@ module SplitIoClient
|
|
|
40
40
|
break if matched
|
|
41
41
|
end
|
|
42
42
|
|
|
43
|
-
@logger.debug("[InRuleSegmentMatcher] #{@segment_name} is in rule based segment -> #{matched}")
|
|
43
|
+
@config.logger.debug("[InRuleSegmentMatcher] #{@segment_name} is in rule based segment -> #{matched}") if @config.debug_enabled
|
|
44
44
|
matched
|
|
45
45
|
end
|
|
46
46
|
|
|
@@ -6,14 +6,8 @@ module SplitIoClient
|
|
|
6
6
|
SYNC_MODE_STREAMING = 0
|
|
7
7
|
SYNC_MODE_POLLING = 1
|
|
8
8
|
|
|
9
|
-
def initialize(config,
|
|
10
|
-
|
|
11
|
-
telemetry_runtime_producer,
|
|
12
|
-
telemetry_synchronizer,
|
|
13
|
-
status_manager,
|
|
14
|
-
sse_handler,
|
|
15
|
-
push_manager,
|
|
16
|
-
status_queue)
|
|
9
|
+
def initialize(config, synchronizer, telemetry_runtime_producer, telemetry_synchronizer,
|
|
10
|
+
status_manager, sse_handler, push_manager, status_queue)
|
|
17
11
|
@config = config
|
|
18
12
|
@synchronizer = synchronizer
|
|
19
13
|
@telemetry_runtime_producer = telemetry_runtime_producer
|
|
@@ -23,6 +17,7 @@ module SplitIoClient
|
|
|
23
17
|
@push_manager = push_manager
|
|
24
18
|
@status_queue = status_queue
|
|
25
19
|
@sse_connected = Concurrent::AtomicBoolean.new(false)
|
|
20
|
+
@back_off = Engine::BackOff.new(1, 3)
|
|
26
21
|
end
|
|
27
22
|
|
|
28
23
|
def start
|
|
@@ -119,7 +114,7 @@ module SplitIoClient
|
|
|
119
114
|
end
|
|
120
115
|
|
|
121
116
|
def process_disconnect(reconnect)
|
|
122
|
-
unless @sse_connected.value
|
|
117
|
+
unless @sse_connected.value || reconnect
|
|
123
118
|
@config.logger.debug('Streaming already disconnected.') if @config.debug_enabled
|
|
124
119
|
return
|
|
125
120
|
end
|
|
@@ -130,6 +125,9 @@ module SplitIoClient
|
|
|
130
125
|
record_telemetry(Telemetry::Domain::Constants::SYNC_MODE, SYNC_MODE_POLLING)
|
|
131
126
|
|
|
132
127
|
if reconnect
|
|
128
|
+
wait_interval = @back_off.interval
|
|
129
|
+
@config.logger.debug("Retrying streaming connection in: #{wait_interval} seconds")
|
|
130
|
+
sleep(wait_interval)
|
|
133
131
|
@push_manager.stop_sse
|
|
134
132
|
@synchronizer.sync_all
|
|
135
133
|
@push_manager.start_sse
|
|
@@ -155,6 +153,7 @@ module SplitIoClient
|
|
|
155
153
|
|
|
156
154
|
case status
|
|
157
155
|
when Constants::PUSH_CONNECTED
|
|
156
|
+
@back_off.reset
|
|
158
157
|
process_connected
|
|
159
158
|
when Constants::PUSH_RETRYABLE_ERROR
|
|
160
159
|
process_disconnect(true)
|
|
@@ -86,7 +86,7 @@ module SplitIoClient
|
|
|
86
86
|
end
|
|
87
87
|
|
|
88
88
|
def connect_stream(latch)
|
|
89
|
-
return Constants::
|
|
89
|
+
return Constants::PUSH_RETRYABLE_ERROR unless socket_write(latch)
|
|
90
90
|
while connected? || @first_event.value
|
|
91
91
|
begin
|
|
92
92
|
if IO.select([@socket], nil, nil, @read_timeout)
|