splitclient-rb 8.4.0.rc.1-java → 8.4.1.pre.rc1-java
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/CHANGES.txt +4 -0
- data/lib/splitclient-rb/cache/filter/bloom_filter.rb +10 -6
- data/lib/splitclient-rb/version.rb +1 -1
- metadata +28 -29
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: bded5f5dcfda4dab76ab1118caf867e55829dde22d836a9d415385f2b8802a31
|
4
|
+
data.tar.gz: ac4785cdb4a9d044f3c424d1bad7e526705e3b2c7eac77965b27690146d6943d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 64f4efa53add4ad3e3737acb32cf6f1db09751ae736d72cf671ea5273b5cd153e2a045a7cf9ce9ae0b69ac61d702d54b775db6d6bb897c1b9b8bde56de67465c
|
7
|
+
data.tar.gz: '094e48faa676ab44e816c8b103efa38317d1802552ef472c2c5bd8f040be336879b87e1bcdea190f9287972b02b4000a17dc433ceb93c46b81a29cee66bee48e'
|
data/CHANGES.txt
CHANGED
@@ -1,5 +1,9 @@
|
|
1
1
|
CHANGES
|
2
2
|
|
3
|
+
8.4.0 (May 3, 2024)
|
4
|
+
- Fixed issue preventing Impressopns and Events posting if client.destroy is called before the post threads started
|
5
|
+
- Added support for targeting rules based on semantic versions (https://semver.org/).
|
6
|
+
|
3
7
|
8.3.1 (Mar 22, 2024)
|
4
8
|
- Fixed ruby process hanging due to failed thread.join command, when calling destroy and a http request still active.
|
5
9
|
- Fixed streaming notification parser. Issue ref: https://github.com/splitio/ruby-client/issues/511
|
@@ -8,8 +8,8 @@ module SplitIoClient
|
|
8
8
|
class BloomFilter
|
9
9
|
def initialize(capacity, false_positive_probability = 0.001)
|
10
10
|
@capacity = capacity.round
|
11
|
-
m = best_m(capacity, false_positive_probability)
|
12
|
-
|
11
|
+
@m = best_m(capacity, false_positive_probability)
|
12
|
+
reset_filter
|
13
13
|
@k = best_k(capacity)
|
14
14
|
end
|
15
15
|
|
@@ -17,22 +17,26 @@ module SplitIoClient
|
|
17
17
|
return false if contains?(string)
|
18
18
|
|
19
19
|
positions = hashes(string)
|
20
|
-
|
21
20
|
positions.each { |position| @ba[position] = 1 }
|
22
21
|
|
23
22
|
true
|
24
23
|
end
|
25
|
-
|
24
|
+
|
26
25
|
def contains?(string)
|
27
26
|
!hashes(string).any? { |ea| @ba[ea] == 0 }
|
28
27
|
end
|
29
28
|
|
30
29
|
def clear
|
31
|
-
@ba
|
30
|
+
@ba = nil
|
31
|
+
reset_filter
|
32
32
|
end
|
33
|
-
|
33
|
+
|
34
34
|
private
|
35
35
|
|
36
|
+
def reset_filter
|
37
|
+
@ba = BitArray.new(@m.round)
|
38
|
+
end
|
39
|
+
|
36
40
|
# m is the required number of bits in the array
|
37
41
|
def best_m(capacity, false_positive_probability)
|
38
42
|
-(capacity * Math.log(false_positive_probability)) / (Math.log(2) ** 2)
|
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.4.
|
4
|
+
version: 8.4.1.pre.rc1
|
5
5
|
platform: java
|
6
6
|
authors:
|
7
7
|
- Split Software
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-12-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|
@@ -17,8 +17,8 @@ dependencies:
|
|
17
17
|
- !ruby/object:Gem::Version
|
18
18
|
version: '0.1'
|
19
19
|
name: allocation_stats
|
20
|
-
prerelease: false
|
21
20
|
type: :development
|
21
|
+
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
@@ -31,8 +31,8 @@ dependencies:
|
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: '2.2'
|
33
33
|
name: bundler
|
34
|
-
prerelease: false
|
35
34
|
type: :development
|
35
|
+
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
@@ -45,8 +45,8 @@ dependencies:
|
|
45
45
|
- !ruby/object:Gem::Version
|
46
46
|
version: '11.1'
|
47
47
|
name: byebug
|
48
|
-
prerelease: false
|
49
48
|
type: :development
|
49
|
+
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
@@ -59,8 +59,8 @@ dependencies:
|
|
59
59
|
- !ruby/object:Gem::Version
|
60
60
|
version: '0.14'
|
61
61
|
name: pry
|
62
|
-
prerelease: false
|
63
62
|
type: :development
|
63
|
+
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - "~>"
|
@@ -73,8 +73,8 @@ dependencies:
|
|
73
73
|
- !ruby/object:Gem::Version
|
74
74
|
version: '1.0'
|
75
75
|
name: pry-nav
|
76
|
-
prerelease: false
|
77
76
|
type: :development
|
77
|
+
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - "~>"
|
@@ -87,8 +87,8 @@ dependencies:
|
|
87
87
|
- !ruby/object:Gem::Version
|
88
88
|
version: '13.0'
|
89
89
|
name: rake
|
90
|
-
prerelease: false
|
91
90
|
type: :development
|
91
|
+
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
94
|
- - "~>"
|
@@ -101,8 +101,8 @@ dependencies:
|
|
101
101
|
- !ruby/object:Gem::Version
|
102
102
|
version: '1.1'
|
103
103
|
name: rake-compiler
|
104
|
-
prerelease: false
|
105
104
|
type: :development
|
105
|
+
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
108
|
- - "~>"
|
@@ -115,8 +115,8 @@ dependencies:
|
|
115
115
|
- !ruby/object:Gem::Version
|
116
116
|
version: '3.10'
|
117
117
|
name: rspec
|
118
|
-
prerelease: false
|
119
118
|
type: :development
|
119
|
+
prerelease: false
|
120
120
|
version_requirements: !ruby/object:Gem::Requirement
|
121
121
|
requirements:
|
122
122
|
- - "~>"
|
@@ -129,8 +129,8 @@ dependencies:
|
|
129
129
|
- !ruby/object:Gem::Version
|
130
130
|
version: 1.28.2
|
131
131
|
name: rubocop
|
132
|
-
prerelease: false
|
133
132
|
type: :development
|
133
|
+
prerelease: false
|
134
134
|
version_requirements: !ruby/object:Gem::Requirement
|
135
135
|
requirements:
|
136
136
|
- - '='
|
@@ -143,8 +143,8 @@ dependencies:
|
|
143
143
|
- !ruby/object:Gem::Version
|
144
144
|
version: '0.20'
|
145
145
|
name: simplecov
|
146
|
-
prerelease: false
|
147
146
|
type: :development
|
147
|
+
prerelease: false
|
148
148
|
version_requirements: !ruby/object:Gem::Requirement
|
149
149
|
requirements:
|
150
150
|
- - "~>"
|
@@ -157,8 +157,8 @@ dependencies:
|
|
157
157
|
- !ruby/object:Gem::Version
|
158
158
|
version: '0.2'
|
159
159
|
name: simplecov-json
|
160
|
-
prerelease: false
|
161
160
|
type: :development
|
161
|
+
prerelease: false
|
162
162
|
version_requirements: !ruby/object:Gem::Requirement
|
163
163
|
requirements:
|
164
164
|
- - "~>"
|
@@ -171,8 +171,8 @@ dependencies:
|
|
171
171
|
- !ruby/object:Gem::Version
|
172
172
|
version: '0.9'
|
173
173
|
name: timecop
|
174
|
-
prerelease: false
|
175
174
|
type: :development
|
175
|
+
prerelease: false
|
176
176
|
version_requirements: !ruby/object:Gem::Requirement
|
177
177
|
requirements:
|
178
178
|
- - "~>"
|
@@ -185,8 +185,8 @@ dependencies:
|
|
185
185
|
- !ruby/object:Gem::Version
|
186
186
|
version: '3.14'
|
187
187
|
name: webmock
|
188
|
-
prerelease: false
|
189
188
|
type: :development
|
189
|
+
prerelease: false
|
190
190
|
version_requirements: !ruby/object:Gem::Requirement
|
191
191
|
requirements:
|
192
192
|
- - "~>"
|
@@ -199,8 +199,8 @@ dependencies:
|
|
199
199
|
- !ruby/object:Gem::Version
|
200
200
|
version: '1.7'
|
201
201
|
name: webrick
|
202
|
-
prerelease: false
|
203
202
|
type: :development
|
203
|
+
prerelease: false
|
204
204
|
version_requirements: !ruby/object:Gem::Requirement
|
205
205
|
requirements:
|
206
206
|
- - "~>"
|
@@ -213,8 +213,8 @@ dependencies:
|
|
213
213
|
- !ruby/object:Gem::Version
|
214
214
|
version: '1.3'
|
215
215
|
name: bitarray
|
216
|
-
prerelease: false
|
217
216
|
type: :runtime
|
217
|
+
prerelease: false
|
218
218
|
version_requirements: !ruby/object:Gem::Requirement
|
219
219
|
requirements:
|
220
220
|
- - "~>"
|
@@ -227,8 +227,8 @@ dependencies:
|
|
227
227
|
- !ruby/object:Gem::Version
|
228
228
|
version: '1.0'
|
229
229
|
name: concurrent-ruby
|
230
|
-
prerelease: false
|
231
230
|
type: :runtime
|
231
|
+
prerelease: false
|
232
232
|
version_requirements: !ruby/object:Gem::Requirement
|
233
233
|
requirements:
|
234
234
|
- - "~>"
|
@@ -244,8 +244,8 @@ dependencies:
|
|
244
244
|
- !ruby/object:Gem::Version
|
245
245
|
version: '3.0'
|
246
246
|
name: faraday
|
247
|
-
prerelease: false
|
248
247
|
type: :runtime
|
248
|
+
prerelease: false
|
249
249
|
version_requirements: !ruby/object:Gem::Requirement
|
250
250
|
requirements:
|
251
251
|
- - ">="
|
@@ -264,8 +264,8 @@ dependencies:
|
|
264
264
|
- !ruby/object:Gem::Version
|
265
265
|
version: '3.0'
|
266
266
|
name: faraday-net_http_persistent
|
267
|
-
prerelease: false
|
268
267
|
type: :runtime
|
268
|
+
prerelease: false
|
269
269
|
version_requirements: !ruby/object:Gem::Requirement
|
270
270
|
requirements:
|
271
271
|
- - ">="
|
@@ -284,8 +284,8 @@ dependencies:
|
|
284
284
|
- !ruby/object:Gem::Version
|
285
285
|
version: '3.0'
|
286
286
|
name: json
|
287
|
-
prerelease: false
|
288
287
|
type: :runtime
|
288
|
+
prerelease: false
|
289
289
|
version_requirements: !ruby/object:Gem::Requirement
|
290
290
|
requirements:
|
291
291
|
- - ">="
|
@@ -304,8 +304,8 @@ dependencies:
|
|
304
304
|
- !ruby/object:Gem::Version
|
305
305
|
version: '3.0'
|
306
306
|
name: jwt
|
307
|
-
prerelease: false
|
308
307
|
type: :runtime
|
308
|
+
prerelease: false
|
309
309
|
version_requirements: !ruby/object:Gem::Requirement
|
310
310
|
requirements:
|
311
311
|
- - ">="
|
@@ -321,8 +321,8 @@ dependencies:
|
|
321
321
|
- !ruby/object:Gem::Version
|
322
322
|
version: '1.1'
|
323
323
|
name: lru_redux
|
324
|
-
prerelease: false
|
325
324
|
type: :runtime
|
325
|
+
prerelease: false
|
326
326
|
version_requirements: !ruby/object:Gem::Requirement
|
327
327
|
requirements:
|
328
328
|
- - "~>"
|
@@ -338,8 +338,8 @@ dependencies:
|
|
338
338
|
- !ruby/object:Gem::Version
|
339
339
|
version: '5.0'
|
340
340
|
name: net-http-persistent
|
341
|
-
prerelease: false
|
342
341
|
type: :runtime
|
342
|
+
prerelease: false
|
343
343
|
version_requirements: !ruby/object:Gem::Requirement
|
344
344
|
requirements:
|
345
345
|
- - ">="
|
@@ -358,8 +358,8 @@ dependencies:
|
|
358
358
|
- !ruby/object:Gem::Version
|
359
359
|
version: '6.0'
|
360
360
|
name: redis
|
361
|
-
prerelease: false
|
362
361
|
type: :runtime
|
362
|
+
prerelease: false
|
363
363
|
version_requirements: !ruby/object:Gem::Requirement
|
364
364
|
requirements:
|
365
365
|
- - ">="
|
@@ -378,8 +378,8 @@ dependencies:
|
|
378
378
|
- !ruby/object:Gem::Version
|
379
379
|
version: '1.0'
|
380
380
|
name: socketry
|
381
|
-
prerelease: false
|
382
381
|
type: :runtime
|
382
|
+
prerelease: false
|
383
383
|
version_requirements: !ruby/object:Gem::Requirement
|
384
384
|
requirements:
|
385
385
|
- - ">="
|
@@ -395,8 +395,8 @@ dependencies:
|
|
395
395
|
- !ruby/object:Gem::Version
|
396
396
|
version: '0.3'
|
397
397
|
name: thread_safe
|
398
|
-
prerelease: false
|
399
398
|
type: :runtime
|
399
|
+
prerelease: false
|
400
400
|
version_requirements: !ruby/object:Gem::Requirement
|
401
401
|
requirements:
|
402
402
|
- - "~>"
|
@@ -589,8 +589,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
589
589
|
- !ruby/object:Gem::Version
|
590
590
|
version: 1.3.1
|
591
591
|
requirements: []
|
592
|
-
|
593
|
-
rubygems_version: 2.6.14
|
592
|
+
rubygems_version: 3.3.26
|
594
593
|
signing_key:
|
595
594
|
specification_version: 4
|
596
595
|
summary: Ruby client for split SDK.
|