splitclient-rb 8.1.0.pre.rc1 → 8.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGES.txt +1 -1
- data/lib/splitclient-rb/split_config.rb +8 -22
- data/lib/splitclient-rb/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e304e437ef6cbdc7601d4ac6cd5742703c1baf015a86b3d7ef5b6958d3a3e867
|
4
|
+
data.tar.gz: 13f206da6a357e65c6cbaefca0b90fb6a23fe813a80c64a6c4eef17f5cd1591b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8864034ff26d345e5d0714a4d105ecd85c08d177d0d0c6bd44ecf888676aa392e760790e7d4ec6d2e88d41090c42ff30655263d75f32325923a77256e7e9dc46
|
7
|
+
data.tar.gz: 1656f587c406c3828712e0eebc56a80892e57ba26ded821e0184ee532246c44e494af600d0234d2ecfb209e8517a24f2a73eb4c8c2be0f94425fd2420a18b7ff
|
data/CHANGES.txt
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
CHANGES
|
2
2
|
|
3
|
-
8.1.0 (Oct
|
3
|
+
8.1.0 (Oct 5, 2022)
|
4
4
|
- Added a new impressions mode for the SDK called NONE , to be used in factory when there is no desire to capture impressions on an SDK factory to feed Split's analytics engine. Running NONE mode, the SDK will only capture unique keys evaluated for a particular feature flag instead of full blown impressions.
|
5
5
|
|
6
6
|
8.0.1 (Jul 20, 2022)
|
@@ -311,31 +311,17 @@ module SplitIoClient
|
|
311
311
|
end
|
312
312
|
|
313
313
|
def init_impressions_mode(impressions_mode, adapter)
|
314
|
-
if adapter == :redis
|
315
|
-
impressions_mode ||= :debug
|
316
|
-
|
317
|
-
case impressions_mode
|
318
|
-
when :optimized
|
319
|
-
return :optimized
|
320
|
-
when :none
|
321
|
-
return :none
|
322
|
-
else
|
323
|
-
@logger.error('You passed an invalid impressions_mode, impressions_mode should be one of the following values: :debug or :optimized. Defaulting to :optimized mode') unless impressions_mode == :optimized
|
324
|
-
return :debug
|
325
|
-
end
|
326
|
-
end
|
327
|
-
|
328
|
-
return :debug if adapter == :redis
|
329
|
-
|
330
|
-
impressions_mode ||= :optimized
|
331
314
|
case impressions_mode
|
332
|
-
when :
|
333
|
-
return :
|
315
|
+
when :optimized
|
316
|
+
return :optimized
|
334
317
|
when :none
|
335
318
|
return :none
|
319
|
+
when :debug
|
320
|
+
return :debug
|
336
321
|
else
|
337
|
-
|
338
|
-
|
322
|
+
default = adapter == :redis ? :debug : :optimized
|
323
|
+
@logger.error("You passed an invalid impressions_mode, impressions_mode should be one of the following values: :debug, :optimized or :none. Defaulting to #{default} mode")
|
324
|
+
return default
|
339
325
|
end
|
340
326
|
end
|
341
327
|
|
@@ -464,7 +450,7 @@ module SplitIoClient
|
|
464
450
|
end
|
465
451
|
|
466
452
|
def self.default_features_refresh_rate
|
467
|
-
|
453
|
+
60
|
468
454
|
end
|
469
455
|
|
470
456
|
def self.default_segments_refresh_rate
|
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.1.0
|
4
|
+
version: 8.1.0
|
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-10-
|
11
|
+
date: 2022-10-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: allocation_stats
|
@@ -561,9 +561,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
561
561
|
version: 2.5.0
|
562
562
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
563
563
|
requirements:
|
564
|
-
- - "
|
564
|
+
- - ">="
|
565
565
|
- !ruby/object:Gem::Version
|
566
|
-
version:
|
566
|
+
version: '0'
|
567
567
|
requirements: []
|
568
568
|
rubygems_version: 3.2.3
|
569
569
|
signing_key:
|