splitclient-rb 7.1.0.pre.rc19-java → 7.1.1-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: 7005d7c5517f7bf3c66ce731e39fa5acada86a8d
4
- data.tar.gz: c5d15f2f4db872c026c93ac4dc844008ea4397e9
3
+ metadata.gz: 4d8553028acfb68b2e5f87baf3fc7adbadf85dab
4
+ data.tar.gz: 47e9babb201c1f0b50d6dc06dc05a568a58e43b4
5
5
  SHA512:
6
- metadata.gz: 255d33d0ee47b5c5d2edce4eb5cd94bcced8a03cb501f17e2aadf03164cb081dfe0c1a6236d9c2bc79401265604b63627b27b8aa2afe56665ed33ec8df323698
7
- data.tar.gz: e138a12961d6cdaade036fe8129bc91d608f5a45a9f006aa9b961369f5d0fbc4ddb6fb14359a3b410f8505ede0ed133d18897a86e98fb7dc6ef1c335d90dc9ab
6
+ metadata.gz: 901d00b2f39516b9a6fa5571b11189d54ccf89e4f9e2575502c6aa5186c491c007fbf82b3a3f694456c57fe7fb7cf3787ea5dada8f8e659c3d32b72588c4f3eb
7
+ data.tar.gz: 423ed4f0f45b9e298883fe9dba1682115dde15275a8e7a19e68556a071f6c5c1ed3710e845d2f7dd4e5a6487667c2f64d6ff4351dd30a2e581ab21edb5ee3d30
@@ -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,9 @@
1
+ 7.1.1 (May 19, 2020)
2
+ - Updated streaming domain.
3
+
4
+ 7.1.0 (Apr 30, 2020)
5
+ - 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.
6
+
1
7
  7.0.3 (Jan 20, 2020)
2
8
  - Added integration tests.
3
9
  - 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("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)
@@ -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
@@ -271,15 +271,15 @@ module SplitIoClient
271
271
  attr_accessor :streaming_enabled
272
272
 
273
273
  def self.default_streaming_enabled
274
- true
274
+ false
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.rc19'
2
+ VERSION = '7.1.1'
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.rc19
4
+ version: 7.1.1
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-30 00:00:00.000000000 Z
11
+ date: 2020-05-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement
@@ -444,9 +444,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
444
444
  version: '0'
445
445
  required_rubygems_version: !ruby/object:Gem::Requirement
446
446
  requirements:
447
- - - ">"
447
+ - - ">="
448
448
  - !ruby/object:Gem::Version
449
- version: 1.3.1
449
+ version: '0'
450
450
  requirements: []
451
451
  rubyforge_project:
452
452
  rubygems_version: 2.6.14