splitclient-rb 7.3.3.pre.rc1-java → 7.3.3.pre.rc2-java
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/splitclient-rb/cache/fetchers/segment_fetcher.rb +8 -3
- data/lib/splitclient-rb/cache/fetchers/split_fetcher.rb +8 -3
- data/lib/splitclient-rb/cache/senders/events_sender.rb +6 -0
- data/lib/splitclient-rb/cache/senders/impressions_count_sender.rb +6 -0
- data/lib/splitclient-rb/cache/senders/impressions_sender.rb +6 -0
- data/lib/splitclient-rb/engine/sync_manager.rb +4 -0
- data/lib/splitclient-rb/sse/workers/segments_worker.rb +4 -0
- data/lib/splitclient-rb/sse/workers/splits_worker.rb +4 -0
- data/lib/splitclient-rb/telemetry/sync_task.rb +2 -0
- data/lib/splitclient-rb/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d1ab3eb6a5912d672bfcada54c42bfb23ec466a9
|
4
|
+
data.tar.gz: 31145b3648947771d043e449e38a2af7520ce40e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 325e19268ac3baad1410d1dc301899a37e25f7b705518ffa63b10c25fb41cadf4116ef9fe84547de3fe8618e53bb06360ae1787b23f672710569b30de58a0bf4
|
7
|
+
data.tar.gz: 88101d28313df32e84caacb5bd0dd797a7f3aec166ef7bd31b2a632684f455a007f9e054265140d2a4d85f5f8816372be4783f7e23e9046aa41d2a794fdca037
|
@@ -15,10 +15,15 @@ module SplitIoClient
|
|
15
15
|
def call
|
16
16
|
if ENV['SPLITCLIENT_ENV'] == 'test'
|
17
17
|
fetch_segments
|
18
|
-
|
18
|
+
else
|
19
|
+
segments_thread
|
20
|
+
|
21
|
+
if defined?(PhusionPassenger)
|
22
|
+
PhusionPassenger.on_event(:starting_worker_process) do |forked|
|
23
|
+
segments_thread if forked
|
24
|
+
end
|
25
|
+
end
|
19
26
|
end
|
20
|
-
|
21
|
-
segments_thread
|
22
27
|
end
|
23
28
|
|
24
29
|
def fetch_segments_if_not_exists(names, cache_control_headers = false)
|
@@ -15,10 +15,15 @@ module SplitIoClient
|
|
15
15
|
def call
|
16
16
|
if ENV['SPLITCLIENT_ENV'] == 'test'
|
17
17
|
fetch_splits
|
18
|
-
|
18
|
+
else
|
19
|
+
splits_thread
|
20
|
+
|
21
|
+
if defined?(PhusionPassenger)
|
22
|
+
PhusionPassenger.on_event(:starting_worker_process) do |forked|
|
23
|
+
splits_thread if forked
|
24
|
+
end
|
25
|
+
end
|
19
26
|
end
|
20
|
-
|
21
|
-
splits_thread
|
22
27
|
end
|
23
28
|
|
24
29
|
def fetch_splits(fetch_options = { cache_control_headers: false, till: nil })
|
@@ -56,6 +56,10 @@ module SplitIoClient
|
|
56
56
|
if @config.streaming_enabled
|
57
57
|
@config.logger.debug('Starting Straming mode ...')
|
58
58
|
connected = @push_manager.start_sse
|
59
|
+
|
60
|
+
if defined?(PhusionPassenger)
|
61
|
+
PhusionPassenger.on_event(:starting_worker_process) { |forked| sse_thread_forked if forked }
|
62
|
+
end
|
59
63
|
end
|
60
64
|
|
61
65
|
unless connected
|