splitclient-rb 8.0.0.pre.rc2-java → 8.0.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: c9beda4470bef68acfea1cb18a857d0b0d6a0f29
4
- data.tar.gz: 677de7caceaa230cbb5b667e319865c93785da6c
3
+ metadata.gz: a32ab3387865509e36920b5fdad6628b801d6022
4
+ data.tar.gz: 03171c8afda405b04f367c0933be63ecb83ee4d2
5
5
  SHA512:
6
- metadata.gz: cc648ee9e65658304075aafd08e5cae96cd358b29d9c200dec09ab32b7ee3216ebffe6212923e1b2ffdb57b36cf3adf475bcb5f7817b36835b9a2316854252e2
7
- data.tar.gz: c112ef70383f4025ca72a30d340aa6d749dbf9a4c9999ad7d3da5767c7c88cadee9491c10bd52b9412681ce8533941e0590b6bbdc69cd4d955f1ac06ac5234c0
6
+ metadata.gz: 1f1500e87cd4200c7ee7afa7375bb8879116f65a79f1414dc5009f63e12c2f4ff6792bdbb706b4a82dc184e83ecfab2dc3b0fef58fd7184fbed8cafb4d26817a
7
+ data.tar.gz: bd8805f46629a25eca16ba1c7d66be129d4649687a4a4248b75735f807dd1af4069bf18be9fafaa58817693ab246b64b4d20c788525432d3496524c53cb1e805
data/CHANGES.txt CHANGED
@@ -1,5 +1,15 @@
1
1
  CHANGES
2
2
 
3
+ 8.0.1 (Jul 20, 2022)
4
+ - Updated dependencies to support faraday > 2.0
5
+
6
+ 8.0.0 (May 10, 2022)
7
+ - BREAKING CHANGE: Deprecated support for ruby 2.3 and 2.4 versions. The minimum ruby version required is 2.5 now.
8
+ - Updated redis command for config telemetry, using hset instead of rpush now.
9
+ - Updated dependencies:
10
+ - rake to ~> 13.0
11
+ - faraday to >= 1.1, < 2.0
12
+
3
13
  7.3.4 (Feb 21, 2022)
4
14
  - Updated streaming events architecture with a new queue logic.
5
15
  - Fixed redis integration Pipelining command deprecation warning.
data/README.md CHANGED
@@ -1,5 +1,5 @@
1
1
  # Split SDK for Ruby
2
- [![Build Status](https://travis-ci.com/splitio/ruby-client.svg?branch=master)](https://travis-ci.com/splitio/ruby-client)
2
+ ![Build Status](https://github.com/splitio/ruby-client/actions/workflows/ci.yml/badge.svg?branch=master)
3
3
 
4
4
  ## Overview
5
5
  This SDK is designed to work with Split, the platform for controlled rollouts, which serves features to your users via a Split feature flag to manage your complete customer experience.
@@ -3,10 +3,10 @@
3
3
  module SplitIoClient
4
4
  module Api
5
5
  class Client
6
- RUBY_ENCODING = '1.9'.respond_to?(:force_encoding)
7
-
8
6
  def initialize(config)
9
- @config = config
7
+ @config = config
8
+
9
+ check_faraday_compatibility
10
10
  end
11
11
 
12
12
  def get_api(url, api_key, params = {}, cache_control_headers = false)
@@ -64,6 +64,14 @@ module SplitIoClient
64
64
  'SplitSDKVersion' => "#{@config.language}-#{@config.version}",
65
65
  }
66
66
  end
67
+
68
+ def check_faraday_compatibility
69
+ version = Faraday::VERSION.split('.')[0]
70
+
71
+ require 'faraday/net_http_persistent' if version.to_i >= 2
72
+ rescue StandardError => e
73
+ @config.logger.warn(e)
74
+ end
67
75
  end
68
76
  end
69
77
  end
@@ -47,13 +47,13 @@ module SplitIoClient
47
47
  connected = false
48
48
 
49
49
  if @config.streaming_enabled
50
- @config.logger.debug('Starting Straming mode ...')
50
+ @config.logger.debug('Starting Streaming mode ...')
51
51
  start_push_status_monitor
52
52
  connected = @push_manager.start_sse
53
53
  end
54
54
 
55
55
  unless connected
56
- @config.logger.debug('Starting polling mode ...')
56
+ @config.logger.debug('Starting Polling mode ...')
57
57
  @synchronizer.start_periodic_fetch
58
58
  record_telemetry(Telemetry::Domain::Constants::SYNC_MODE, SYNC_MODE_POLLING)
59
59
  end
@@ -1,3 +1,3 @@
1
1
  module SplitIoClient
2
- VERSION = '8.0.0.pre.rc2'
2
+ VERSION = '8.0.1'
3
3
  end
@@ -51,7 +51,8 @@ Gem::Specification.new do |spec|
51
51
 
52
52
  spec.add_runtime_dependency 'bitarray', '~> 1.3'
53
53
  spec.add_runtime_dependency 'concurrent-ruby', '~> 1.0'
54
- spec.add_runtime_dependency 'faraday', '>= 1.1', '< 2.0'
54
+ spec.add_runtime_dependency 'faraday', '>= 1.1', '< 3.0'
55
+ spec.add_runtime_dependency 'faraday-net_http_persistent', '>= 1.0', '< 3.0'
55
56
  spec.add_runtime_dependency 'json', '>= 1.8', '< 3.0'
56
57
  spec.add_runtime_dependency 'jwt', '>= 1.0.0', '< 3.0'
57
58
  spec.add_runtime_dependency 'lru_redux', '~> 1.1'
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.0.0.pre.rc2
4
+ version: 8.0.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: 2022-05-09 00:00:00.000000000 Z
11
+ date: 2022-07-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement
@@ -228,7 +228,7 @@ dependencies:
228
228
  version: '1.1'
229
229
  - - "<"
230
230
  - !ruby/object:Gem::Version
231
- version: '2.0'
231
+ version: '3.0'
232
232
  name: faraday
233
233
  prerelease: false
234
234
  type: :runtime
@@ -239,7 +239,27 @@ dependencies:
239
239
  version: '1.1'
240
240
  - - "<"
241
241
  - !ruby/object:Gem::Version
242
- version: '2.0'
242
+ version: '3.0'
243
+ - !ruby/object:Gem::Dependency
244
+ requirement: !ruby/object:Gem::Requirement
245
+ requirements:
246
+ - - ">="
247
+ - !ruby/object:Gem::Version
248
+ version: '1.0'
249
+ - - "<"
250
+ - !ruby/object:Gem::Version
251
+ version: '3.0'
252
+ name: faraday-net_http_persistent
253
+ prerelease: false
254
+ type: :runtime
255
+ version_requirements: !ruby/object:Gem::Requirement
256
+ requirements:
257
+ - - ">="
258
+ - !ruby/object:Gem::Version
259
+ version: '1.0'
260
+ - - "<"
261
+ - !ruby/object:Gem::Version
262
+ version: '3.0'
243
263
  - !ruby/object:Gem::Dependency
244
264
  requirement: !ruby/object:Gem::Requirement
245
265
  requirements:
@@ -536,9 +556,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
536
556
  version: 2.5.0
537
557
  required_rubygems_version: !ruby/object:Gem::Requirement
538
558
  requirements:
539
- - - ">"
559
+ - - ">="
540
560
  - !ruby/object:Gem::Version
541
- version: 1.3.1
561
+ version: '0'
542
562
  requirements: []
543
563
  rubyforge_project:
544
564
  rubygems_version: 2.6.14