splitclient-rb 7.1.0.pre.rc18 → 7.1.2.pre.rc1
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/.rubocop.yml +1 -0
- data/CHANGES.txt +9 -0
- data/lib/splitclient-rb/cache/stores/localhost_split_store.rb +1 -0
- data/lib/splitclient-rb/engine/auth_api_client.rb +7 -5
- data/lib/splitclient-rb/engine/push_manager.rb +0 -1
- data/lib/splitclient-rb/engine/synchronizer.rb +3 -3
- data/lib/splitclient-rb/split_config.rb +3 -3
- data/lib/splitclient-rb/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7181d0318397e8aa10f29e5117d6c4183a74a35a6639e2e844b31ae6288ae7af
|
4
|
+
data.tar.gz: a022ad89cb177a61df218a2178502e0ba35e8ab56e61b9f2e90df2421a0df090
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c3f951042a69afb48268146158bf1be3e9cb564df1391e4ee7fe86734862c7f5f1bc3d47b3d0621d2e13eec3603d195515b7154f59c128942f30a29e15269eff
|
7
|
+
data.tar.gz: fa58b0d81332e8c2b1ac24e40ab3cb74aa99a64ed3a53873ad28d1131041c7b3698a67de6f4661ac2109805312e359048426b82164d5f0c928ccdf3cf5e6c765
|
data/.rubocop.yml
CHANGED
data/CHANGES.txt
CHANGED
@@ -1,3 +1,12 @@
|
|
1
|
+
7.1.2 (Jun 11, 2020)
|
2
|
+
- Fixed uninitialized constant LocalhostSplitStore::YAML.
|
3
|
+
|
4
|
+
7.1.1 (May 19, 2020)
|
5
|
+
- Updated streaming domain.
|
6
|
+
|
7
|
+
7.1.0 (Apr 30, 2020)
|
8
|
+
- Added support for the new Split streaming architecture. When enabled, the SDK will not poll for updates but instead receive notifications every time there's a change in your environments, allowing to process those much quicker. If disabled (default) or in the event of an issue, the SDK will fallback to the known polling mechanism to provide a seamless experience.
|
9
|
+
|
1
10
|
7.0.3 (Jan 20, 2020)
|
2
11
|
- Added integration tests.
|
3
12
|
- Fixed impressions labels.
|
@@ -17,23 +17,25 @@ module SplitIoClient
|
|
17
17
|
return process_success(response) if response.success?
|
18
18
|
|
19
19
|
if response.status >= 400 && response.status < 500
|
20
|
-
@config.logger.debug("
|
20
|
+
@config.logger.debug("Error connecting to: #{@config.auth_service_url}. Response status: #{response.status}")
|
21
21
|
|
22
22
|
return { push_enabled: false, retry: false }
|
23
23
|
end
|
24
24
|
|
25
|
-
@config.logger.debug("
|
25
|
+
@config.logger.debug("Error connecting to: #{@config.auth_service_url}. Response status: #{response.status}")
|
26
26
|
{ push_enabled: false, retry: true }
|
27
|
+
rescue StandardError => e
|
28
|
+
@config.logger.debug("AuthApiClient error: #{e.inspect}.")
|
29
|
+
{ push_enabled: false, retry: false }
|
27
30
|
end
|
28
31
|
|
29
32
|
private
|
30
33
|
|
31
34
|
def expiration(token_decoded)
|
32
35
|
exp = token_decoded[0]['exp']
|
36
|
+
issued_at = token_decoded[0]['iat']
|
33
37
|
|
34
|
-
|
35
|
-
rescue StandardError => e
|
36
|
-
@config.logger.error("Error getting token expiration: #{e.inspect}")
|
38
|
+
exp - issued_at - SplitIoClient::Constants::EXPIRATION_RATE
|
37
39
|
end
|
38
40
|
|
39
41
|
def channels(token_decoded)
|
@@ -42,7 +42,6 @@ module SplitIoClient
|
|
42
42
|
sleep(time)
|
43
43
|
@config.logger.debug('schedule_next_token_refresh starting ...') if @config.debug_enabled
|
44
44
|
stop_sse
|
45
|
-
sleep(1)
|
46
45
|
start_sse
|
47
46
|
rescue StandardError => e
|
48
47
|
@config.logger.debug("schedule_next_token_refresh error: #{e.inspect}") if @config.debug_enabled
|
@@ -32,9 +32,9 @@ module SplitIoClient
|
|
32
32
|
end
|
33
33
|
|
34
34
|
def start_periodic_data_recording
|
35
|
-
|
36
|
-
|
37
|
-
|
35
|
+
impressions_sender
|
36
|
+
metrics_sender
|
37
|
+
events_sender
|
38
38
|
end
|
39
39
|
|
40
40
|
def start_periodic_fetch
|
@@ -271,15 +271,15 @@ module SplitIoClient
|
|
271
271
|
attr_accessor :streaming_enabled
|
272
272
|
|
273
273
|
def self.default_streaming_enabled
|
274
|
-
|
274
|
+
false
|
275
275
|
end
|
276
276
|
|
277
277
|
def self.default_streaming_service_url
|
278
|
-
'https://
|
278
|
+
'https://streaming.split.io/event-stream'
|
279
279
|
end
|
280
280
|
|
281
281
|
def self.default_auth_service_url
|
282
|
-
'https://auth.split
|
282
|
+
'https://auth.split.io/api/auth'
|
283
283
|
end
|
284
284
|
|
285
285
|
def self.default_auth_retry_back_off_base
|
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: 7.1.
|
4
|
+
version: 7.1.2.pre.rc1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Split Software
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-06-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: allocation_stats
|