splitclient-rb 8.0.0.pre.rc2 → 8.0.1

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
  SHA256:
3
- metadata.gz: 333fcb2b05ec1dcb1c7e3a2a56bdc7da02892c38918e75857764c99b77bed49b
4
- data.tar.gz: 9ab57fecdfcba16ce0cb22cdc68d051dbb512e3f23ff2eb530e2f856bf8e8c36
3
+ metadata.gz: 469500866a927df2b947b88009b0db9fa5e0adc626196ea6590f29fb2f39ed2b
4
+ data.tar.gz: 8598e211fe2888ce149767915d6fadb419a17ecd85a73e91f6de1bf01c55b7c3
5
5
  SHA512:
6
- metadata.gz: 7ec3a948c7ac452f27313c1f9dfb8a7f34e7464c9689cf319de7379346163815a937185672c42f6849a1304886a83733082a5692b647501908d434b395d55b4a
7
- data.tar.gz: bf6a9e34ff5356e32f66c03fd2949caa751dd05a2a50731a120f9cdb0d5438905b3ee5df0aa95a45d2dc75f22b6dbcb98179ee14e2619d37fc5eaf3115a78e9d
6
+ metadata.gz: c35f6e581f61aa82a95f096d46fb4d664bbac87b7898c4d473b582ccc5aeeae16bf155e439b575911616e6c9f11f08b1bec31af4c99fd9c8bdaa5f90c0d6b284
7
+ data.tar.gz: d45a2ac342c8ebf309e50bdecbe413b0d146b5b44a25ac785425ec3f68e14cf8949827dc59e5f9b697c5edfd154094d25ee416c531e2de77cab8067347798959
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: ruby
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
  name: allocation_stats
@@ -229,7 +229,7 @@ dependencies:
229
229
  version: '1.1'
230
230
  - - "<"
231
231
  - !ruby/object:Gem::Version
232
- version: '2.0'
232
+ version: '3.0'
233
233
  type: :runtime
234
234
  prerelease: false
235
235
  version_requirements: !ruby/object:Gem::Requirement
@@ -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
+ name: faraday-net_http_persistent
245
+ requirement: !ruby/object:Gem::Requirement
246
+ requirements:
247
+ - - ">="
248
+ - !ruby/object:Gem::Version
249
+ version: '1.0'
250
+ - - "<"
251
+ - !ruby/object:Gem::Version
252
+ version: '3.0'
253
+ type: :runtime
254
+ prerelease: false
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
  name: json
245
265
  requirement: !ruby/object:Gem::Requirement
@@ -541,11 +561,11 @@ required_ruby_version: !ruby/object:Gem::Requirement
541
561
  version: 2.5.0
542
562
  required_rubygems_version: !ruby/object:Gem::Requirement
543
563
  requirements:
544
- - - ">"
564
+ - - ">="
545
565
  - !ruby/object:Gem::Version
546
- version: 1.3.1
566
+ version: '0'
547
567
  requirements: []
548
- rubygems_version: 3.3.5
568
+ rubygems_version: 3.2.3
549
569
  signing_key:
550
570
  specification_version: 4
551
571
  summary: Ruby client for split SDK.