splitclient-rb 7.1.0 → 7.1.1.pre.rc1

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
  SHA256:
3
- metadata.gz: 25448aa0706bb01d755d39f0f37672188323fba39113b46cdbc290547acd4406
4
- data.tar.gz: 2f7504d7b5a5d8ba5721676978aa59a53657a0044652d0e7219660195cd6350e
3
+ metadata.gz: de2ccef7c8453d25a2387205c67d9e0133824c44f8b4b8a7f17c8e8d5546caa0
4
+ data.tar.gz: e2c535d5b8b3b29cb78fad6fe78408700b12c4a23d2a00da4e6641384f0c67fe
5
5
  SHA512:
6
- metadata.gz: 4bcdd298815c7e9a1c489de12b407de87559714d7da4fe20c6b573cda7938ccb67f279d0b633aefc103b900116991cbdd87f1280d19766869441db62c4b2d38b
7
- data.tar.gz: e59d85956893850f14a1819628d314700e6022d433694fc13ba6f0be88792ea63d09eb35b8386456936d0edc4c8aed150453b041f68c23779b74c441508eebc4
6
+ metadata.gz: 011551a26705e2215111a2a1e71804f58a16016387c35cd5a8c84ed38c7899efb27165cdb5b28f0018cef04fed6d86658092a3c7acb85410dbcb12b630e157a0
7
+ data.tar.gz: 7c49a20179377108f6f2c6796447483cd17099ca19cf4f43286138f20e94f898162d7d796a4df3023cdb912b67a7da2c306c7160b4a9d2883f1dad72c0c3860b
data/CHANGES.txt CHANGED
@@ -1,3 +1,6 @@
1
+ 7.1.1 (May 18, 2020)
2
+ - Updated streaming domain.
3
+
1
4
  7.1.0 (Apr 30, 2020)
2
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.
3
6
 
@@ -24,16 +24,18 @@ module SplitIoClient
24
24
 
25
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)
@@ -275,7 +275,7 @@ module SplitIoClient
275
275
  end
276
276
 
277
277
  def self.default_streaming_service_url
278
- 'https://split-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
@@ -1,3 +1,3 @@
1
1
  module SplitIoClient
2
- VERSION = '7.1.0'
2
+ VERSION = '7.1.1.pre.rc1'
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
4
+ version: 7.1.1.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-04-30 00:00:00.000000000 Z
11
+ date: 2020-05-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: allocation_stats
@@ -448,9 +448,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
448
448
  version: '0'
449
449
  required_rubygems_version: !ruby/object:Gem::Requirement
450
450
  requirements:
451
- - - ">="
451
+ - - ">"
452
452
  - !ruby/object:Gem::Version
453
- version: '0'
453
+ version: 1.3.1
454
454
  requirements: []
455
455
  rubygems_version: 3.0.6
456
456
  signing_key: