splitclient-rb 8.1.1.pre.rc2-java → 8.1.1.pre.rc3-java

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ba041f1df9e37f3bc6a4f39c870908012315bb17
4
- data.tar.gz: 35ee8aedaf5d662403122cfe3912b69fc0a9157b
3
+ metadata.gz: 1b7267b451ab9817944e3b73014b045ede7a2bab
4
+ data.tar.gz: 24c5e8ac0e02222b5e84d1fb881df06c4cd2d881
5
5
  SHA512:
6
- metadata.gz: dd3c8e1ff1014e7bfafeffc098b530cfebf6c0055a79dfb8fa24412d2e26fd42da3f1685e74e9aed58bfb75e539df8b95d586666cfbb202308b757c7aecbf942
7
- data.tar.gz: cbc94fac3168b86f885fb745ccf1e0a46e76f559d1cb5b7713dd7377b8269b0fda8f5cb405ff46f2d6e505ab9e616ee390e7fd959e047c2911e1ba8c76167ed3
6
+ metadata.gz: 96bff12734a1b1a01df634285f70a0ee044efb2d3a1cb8c1adc7eb077de61acff6bfcfc1ddb0e1a40ae8ccd83ae77c8377b8e658f69fdf0ccd872b5a7819bff1
7
+ data.tar.gz: 5e1a4903c97ae774073108938fa979442543d983165e8c708335eed3b124af6351407e26bdfd3cb21049d8f1b66aa97bae3576f3f407c81945188220df28a08c
data/CHANGES.txt CHANGED
@@ -1,5 +1,10 @@
1
1
  CHANGES
2
2
 
3
+ 8.1.1 (Mar 17, 2023)
4
+ - Added retries with backoff when the sdk tries to connect to the Streaming service and it is not available.
5
+ - Updated the way that the sdk write mtks in redis.
6
+ - Fixed calculation of timeUntilReady in telemetry.
7
+
3
8
  8.1.0 (Oct 5, 2022)
4
9
  - Added a new impressions mode for the SDK called NONE , to be used in factory when there is no desire to capture impressions on an SDK factory to feed Split's analytics engine. Running NONE mode, the SDK will only capture unique keys evaluated for a particular feature flag instead of full blown impressions.
5
10
 
@@ -12,13 +12,9 @@ module SplitIoClient
12
12
  end
13
13
 
14
14
  def record_uniques_key(uniques)
15
- return if uniques.nil? || uniques == {}
15
+ return if uniques.nil? || uniques.empty?
16
16
 
17
- size = @adapter.redis.pipelined do |pipeline|
18
- uniques.each do |key, value|
19
- pipeline.rpush(unique_keys_key, { f: key, ks: value.to_a }.to_json)
20
- end
21
- end
17
+ size = @adapter.add_to_queue(unique_keys_key, uniques_formatter(uniques))
22
18
 
23
19
  @adapter.expire(unique_keys_key, EXPIRE_SECONDS) if uniques.length == size.last
24
20
  rescue StandardError => e
@@ -48,6 +44,18 @@ module SplitIoClient
48
44
  @adapter.expire(impressions_count_key, EXPIRE_SECONDS) if impressions_count.size == hlen && (pipeline_result.sum - hlen) == total_count
49
45
  end
50
46
 
47
+ def uniques_formatter(uniques)
48
+ to_return = []
49
+ uniques.each do |key, value|
50
+ to_return << {
51
+ f: key,
52
+ ks: value.to_a
53
+ }.to_json
54
+ end
55
+
56
+ to_return
57
+ end
58
+
51
59
  def impressions_count_key
52
60
  "#{@config.redis_namespace}.impressions.count"
53
61
  end
@@ -1,3 +1,3 @@
1
1
  module SplitIoClient
2
- VERSION = '8.1.1.pre.rc2'
2
+ VERSION = '8.1.1.pre.rc3'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: splitclient-rb
3
3
  version: !ruby/object:Gem::Version
4
- version: 8.1.1.pre.rc2
4
+ version: 8.1.1.pre.rc3
5
5
  platform: java
6
6
  authors:
7
7
  - Split Software
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-03-16 00:00:00.000000000 Z
11
+ date: 2023-03-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement