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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 58cff247108a6b989b2a1b480223be0daf64fc6886fbc2a1b59268ab7442eba2
4
- data.tar.gz: 18f3b5ecd93a6bfe6434364227a8ef0133d3a3ca45f1b4c996ddc3f528a40a25
3
+ metadata.gz: e304e437ef6cbdc7601d4ac6cd5742703c1baf015a86b3d7ef5b6958d3a3e867
4
+ data.tar.gz: 13f206da6a357e65c6cbaefca0b90fb6a23fe813a80c64a6c4eef17f5cd1591b
5
5
  SHA512:
6
- metadata.gz: f8021b8b3b2198e19f2d42844ee7b562db985875847d6c9cc50f31d10f19492f445c47b8ead7adfaf670897ec35cc1dbc9c2eb2529f896d4cdecd448de84f23a
7
- data.tar.gz: 46544185b5e88d767f2683087e37002ca431544ab04e4fa93caac3b877f92f401fa594ae2609da94f00c725c2c8bb100ba795fe793538c1504eff50cc56d58b4
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, 2022)
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 :debug
333
- return :debug
315
+ when :optimized
316
+ return :optimized
334
317
  when :none
335
318
  return :none
319
+ when :debug
320
+ return :debug
336
321
  else
337
- @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
338
- return :optimized
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
- 5
453
+ 60
468
454
  end
469
455
 
470
456
  def self.default_segments_refresh_rate
@@ -1,3 +1,3 @@
1
1
  module SplitIoClient
2
- VERSION = '8.1.0.pre.rc1'
2
+ VERSION = '8.1.0'
3
3
  end
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.pre.rc1
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-04 00:00:00.000000000 Z
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: 1.3.1
566
+ version: '0'
567
567
  requirements: []
568
568
  rubygems_version: 3.2.3
569
569
  signing_key: