splitclient-rb 7.1.0.pre.rc18-java → 7.1.2.pre.rc2-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
  SHA1:
3
- metadata.gz: 0ac90caee39959dfef51cb39d592dd138f2bb6d4
4
- data.tar.gz: '02876c0465b3de13217d5f866a213a7abde1d8e8'
3
+ metadata.gz: afc77e2f431656a87519e7e009487dadc1b789d2
4
+ data.tar.gz: aff994a347324c9f9ebecf9dc0cfb2e0ec656d87
5
5
  SHA512:
6
- metadata.gz: 8efc3aedc3e5580edda24d664221998998fadaaf99c492255fa27725797d0770d6e5f2cfb9752b74527406ddbd877345ffeb46c59257403df707d6f33d1da511
7
- data.tar.gz: a2b6b3dee738bd03d370bdeb94694ce56893cf0e1131b52ea3df69d74b0ccf53f189987563456ada85b4cad37e4419b27ee0ffeb3fe2c9263f34c330a3018730
6
+ metadata.gz: b57afb83b4c04a1527ace09d30338d47654a2ca61b7cede9fe269b0c9aa34033d2ffa29fbe0671a6064087d699767030aa64dacf86a12224ac88235db53594c1
7
+ data.tar.gz: ca79e85368d79c9f48399a556cfa09a2077b89926111495959fd40c2dab43c368dc2feb82eaf1471211e718b316fea4d9674b4c5ae9879e3abe549eec8369b52
@@ -16,6 +16,7 @@ Metrics/LineLength:
16
16
  - spec/sse/**/*
17
17
  - spec/integrations/**/*
18
18
  - spec/engine/sync_manager_spec.rb
19
+ - spec/engine/auth_api_client_spec.rb
19
20
 
20
21
  Style/BracesAroundHashParameters:
21
22
  Exclude:
@@ -1,3 +1,13 @@
1
+ 7.1.2 (Jun 11, 2020)
2
+ - Fixed uninitialized constant LocalhostSplitStore::YAML.
3
+ - Updated default_streaming_enabled to true.
4
+
5
+ 7.1.1 (May 19, 2020)
6
+ - Updated streaming domain.
7
+
8
+ 7.1.0 (Apr 30, 2020)
9
+ - 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.
10
+
1
11
  7.0.3 (Jan 20, 2020)
2
12
  - Added integration tests.
3
13
  - Fixed impressions labels.
@@ -4,6 +4,7 @@ module SplitIoClient
4
4
  module Cache
5
5
  module Stores
6
6
  class LocalhostSplitStore
7
+ require 'yaml'
7
8
  attr_reader :splits_repository
8
9
 
9
10
  def initialize(splits_repository, config, sdk_blocker = nil)
@@ -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("Problem to connect to: #{@config.auth_service_url}. Response status: #{response.status}")
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("Problem to connect to: #{@config.auth_service_url}. Response status: #{response.status}")
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
- (exp - SplitIoClient::Constants::EXPIRATION_RATE) - Time.now.getutc.to_i unless exp.nil?
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
- @metrics_sender = metrics_sender
36
- @impressions_sender = impressions_sender
37
- @events_sender = events_sender
35
+ impressions_sender
36
+ metrics_sender
37
+ events_sender
38
38
  end
39
39
 
40
40
  def start_periodic_fetch
@@ -275,11 +275,11 @@ module SplitIoClient
275
275
  end
276
276
 
277
277
  def self.default_streaming_service_url
278
- 'https://realtime.ably.io/event-stream'
278
+ 'https://streaming.split.io/event-stream'
279
279
  end
280
280
 
281
281
  def self.default_auth_service_url
282
- 'https://auth.split-stage.io/api/auth'
282
+ 'https://auth.split.io/api/auth'
283
283
  end
284
284
 
285
285
  def self.default_auth_retry_back_off_base
@@ -1,3 +1,3 @@
1
1
  module SplitIoClient
2
- VERSION = '7.1.0.pre.rc18'
2
+ VERSION = '7.1.2.pre.rc2'
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: 7.1.0.pre.rc18
4
+ version: 7.1.2.pre.rc2
5
5
  platform: java
6
6
  authors:
7
7
  - Split Software
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-04-28 00:00:00.000000000 Z
11
+ date: 2020-06-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement