splitclient-rb 8.10.0.pre.rc1 → 8.10.0.pre.rc2
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 +4 -4
- data/lib/splitclient-rb/sse/event_source/client.rb +13 -3
- data/lib/splitclient-rb/version.rb +1 -1
- metadata +5 -10
- data/.github/workflows/gem-push.yml +0 -40
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2a1f154dad854028971d56165b4d9c91f874ab4110083e7eb2560746d9f39868
|
|
4
|
+
data.tar.gz: e103dd790d41006bb8e39484b609b112a6811d0381dc10a763e0c600392d9fad
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a3ac4d6c11610bfb7b9146ff6cffc64352edfbb26bca397cca15e2654ce77162627c563707e45494b20e5933f21d489ee62d9d4703c35d363c7d584f1265e141
|
|
7
|
+
data.tar.gz: e77d244b4c912c2d912ffa09fbcc3bbd1e42fe3598defd5051f79d2d002f7fa40232fc7fd2426af28daa1e86ca4a089fd648e3581cd3eb3768793b948f85be85
|
|
@@ -156,11 +156,21 @@ module SplitIoClient
|
|
|
156
156
|
ssl_context = OpenSSL::SSL::SSLContext.new
|
|
157
157
|
ssl_socket = OpenSSL::SSL::SSLSocket.new(tcp_socket, ssl_context)
|
|
158
158
|
ssl_socket.hostname = @uri.host
|
|
159
|
-
|
|
160
|
-
|
|
159
|
+
|
|
160
|
+
begin
|
|
161
|
+
ssl_socket.connect_nonblock
|
|
162
|
+
rescue IO::WaitReadable
|
|
163
|
+
IO.select([ssl_socket])
|
|
164
|
+
retry
|
|
165
|
+
rescue IO::WaitWritable
|
|
166
|
+
IO.select(nil, [ssl_socket])
|
|
167
|
+
retry
|
|
168
|
+
end
|
|
169
|
+
|
|
170
|
+
return ssl_socket
|
|
171
|
+
# return ssl_socket.connect
|
|
161
172
|
rescue Exception => e
|
|
162
173
|
@config.logger.error("socket connect error: #{e.inspect}")
|
|
163
|
-
puts e.inspect
|
|
164
174
|
return nil
|
|
165
175
|
end
|
|
166
176
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: splitclient-rb
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 8.10.0.pre.
|
|
4
|
+
version: 8.10.0.pre.rc2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Split Software
|
|
8
|
-
autorequire:
|
|
9
8
|
bindir: bin
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
12
11
|
dependencies:
|
|
13
12
|
- !ruby/object:Gem::Dependency
|
|
14
13
|
name: allocation_stats
|
|
@@ -387,7 +386,6 @@ files:
|
|
|
387
386
|
- ".github/CODEOWNERS"
|
|
388
387
|
- ".github/pull_request_template.md"
|
|
389
388
|
- ".github/workflows/ci.yml"
|
|
390
|
-
- ".github/workflows/gem-push.yml"
|
|
391
389
|
- ".github/workflows/update-license-year.yml"
|
|
392
390
|
- ".gitignore"
|
|
393
391
|
- ".rubocop.yml"
|
|
@@ -564,7 +562,6 @@ homepage: https://github.com/splitio/ruby-client
|
|
|
564
562
|
licenses:
|
|
565
563
|
- Apache-2.0
|
|
566
564
|
metadata: {}
|
|
567
|
-
post_install_message:
|
|
568
565
|
rdoc_options: []
|
|
569
566
|
require_paths:
|
|
570
567
|
- lib
|
|
@@ -575,13 +572,11 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
575
572
|
version: 2.5.0
|
|
576
573
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
577
574
|
requirements:
|
|
578
|
-
- - "
|
|
575
|
+
- - ">="
|
|
579
576
|
- !ruby/object:Gem::Version
|
|
580
|
-
version:
|
|
577
|
+
version: '0'
|
|
581
578
|
requirements: []
|
|
582
|
-
|
|
583
|
-
rubygems_version: 2.7.6.2
|
|
584
|
-
signing_key:
|
|
579
|
+
rubygems_version: 3.7.1
|
|
585
580
|
specification_version: 4
|
|
586
581
|
summary: Ruby client for split SDK.
|
|
587
582
|
test_files: []
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
name: Ruby Gem
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
push:
|
|
5
|
-
branches: [ "release" ]
|
|
6
|
-
pull_request:
|
|
7
|
-
branches: [ "release" ]
|
|
8
|
-
|
|
9
|
-
jobs:
|
|
10
|
-
build:
|
|
11
|
-
name: Build + Publish
|
|
12
|
-
runs-on: ubuntu-latest
|
|
13
|
-
permissions:
|
|
14
|
-
contents: read
|
|
15
|
-
packages: write
|
|
16
|
-
|
|
17
|
-
steps:
|
|
18
|
-
- uses: actions/checkout@v4
|
|
19
|
-
- name: Set up Ruby 2.5.8
|
|
20
|
-
# To automatically get bug fixes and new Ruby versions for ruby/setup-ruby,
|
|
21
|
-
# change this to (see https://github.com/ruby/setup-ruby#versioning):
|
|
22
|
-
# uses: ruby/setup-ruby@v1
|
|
23
|
-
uses: ruby/setup-ruby@v1
|
|
24
|
-
with:
|
|
25
|
-
ruby-version: 2.5.8
|
|
26
|
-
|
|
27
|
-
- name: Publish to RubyGems
|
|
28
|
-
run: |
|
|
29
|
-
mkdir -p $HOME/.gem
|
|
30
|
-
touch $HOME/.gem/credentials
|
|
31
|
-
chmod 0600 $HOME/.gem/credentials
|
|
32
|
-
printf -- "---\n:rubygems_api_key: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
|
|
33
|
-
gem build *.gemspec
|
|
34
|
-
# gem push *.gem
|
|
35
|
-
- name: upload gem file
|
|
36
|
-
uses: actions/upload-artifact@v4
|
|
37
|
-
with:
|
|
38
|
-
name: gemspec
|
|
39
|
-
path: ./*.gem
|
|
40
|
-
|