splitclient-rb 7.2.0.pre.rc1 → 7.2.2

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: 26c30b8e429b82a364a8738b157f9837aa7c0063e4e928eba564ddca250a4350
4
- data.tar.gz: 709736898887b3e24169bc0728380b04bf3f321754c24f51526db4f661d331a7
3
+ metadata.gz: a040c4445c4df1853bab3fa0c2a4bd70c3d41ae0172ef085faf933a6498b59ab
4
+ data.tar.gz: 820a55037233d6f0f187cc303c86dd0169809433683f72ce8787439a6d502426
5
5
  SHA512:
6
- metadata.gz: 621a75e4a9839183d1d327a76cfb093c286345e68f87660345d1321c53050919aac7733af400ce19b575e266f38ec8ffa0109edc917712063271a3c51fbf1b32
7
- data.tar.gz: e46f618031d6f83be2f2be332a842b0424206da5cf711637190a1e8d561741cbe65380a67a07d8819a3eff7c93e1c7c7f79c98fcb40b546d158dd9af3f6f8bb6
6
+ metadata.gz: 7781b6e7695804d77eacd265312bb02a16411d88807e09079de3f34d7a4bb644de2f001522ca15769bbd3309f6acd58f0d95c40618ea0599e9138edfda1ba613
7
+ data.tar.gz: 37add439d441be62cd7c6bda54cfd9de3521cac7a23996977df9867261d01487e9fec466b9767ab7a50a128830700c2efa755d9b1829298a63dc0c8b047e0765
@@ -1,5 +1,12 @@
1
1
  CHANGES
2
2
 
3
+ 7.2.2 (Dec 18, 2020)
4
+ - Fixed issue: undefined local variable or method post_impressions_count
5
+
6
+ 7.2.1 (Oct 23, 2020)
7
+ - Updated redis dependency to >= 4.2.2.
8
+ - Updated ably error handling.
9
+
3
10
  7.2.0 (Sep 25, 2020)
4
11
  - Added deduplication logic for impressions data.
5
12
  - Now there are two modes for Impressions when the SDK is in standalone mode, OPTIMIZED (default) that only ships unique impressions and DEBUG for times where you need to send ALL impressions to debug an integration.
@@ -40,32 +40,32 @@ module SplitIoClient
40
40
  @config.logger.info('Posting impressions count due to shutdown')
41
41
  end
42
42
  end
43
+ end
43
44
 
44
- def post_impressions_count
45
- @impressions_api.post_count(formatter(@impression_counter.pop_all))
46
- rescue StandardError => error
47
- @config.log_found_exception(__method__.to_s, error)
48
- end
49
-
50
- def formatter(counts)
51
- return if counts.empty?
45
+ def post_impressions_count
46
+ @impressions_api.post_count(formatter(@impression_counter.pop_all))
47
+ rescue StandardError => error
48
+ @config.log_found_exception(__method__.to_s, error)
49
+ end
52
50
 
53
- formated_counts = {pf: []}
51
+ def formatter(counts)
52
+ return if counts.empty?
54
53
 
55
- counts.each do |key, value|
56
- key_splited = key.split('::')
57
-
58
- formated_counts[:pf] << {
59
- f: key_splited[0].to_s, # feature name
60
- m: key_splited[1].to_i, # time frame
61
- rc: value # count
62
- }
63
- end
54
+ formated_counts = {pf: []}
64
55
 
65
- formated_counts
66
- rescue StandardError => error
67
- @config.log_found_exception(__method__.to_s, error)
56
+ counts.each do |key, value|
57
+ key_splited = key.split('::')
58
+
59
+ formated_counts[:pf] << {
60
+ f: key_splited[0].to_s, # feature name
61
+ m: key_splited[1].to_i, # time frame
62
+ rc: value # count
63
+ }
68
64
  end
65
+
66
+ formated_counts
67
+ rescue StandardError => error
68
+ @config.log_found_exception(__method__.to_s, error)
69
69
  end
70
70
  end
71
71
  end
@@ -1,3 +1,3 @@
1
1
  module SplitIoClient
2
- VERSION = '7.2.0.pre.rc1'
2
+ VERSION = '7.2.2'
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: 7.2.0.pre.rc1
4
+ version: 7.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Split Software
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-10-19 00:00:00.000000000 Z
11
+ date: 2020-12-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: allocation_stats
@@ -455,9 +455,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
455
455
  version: '0'
456
456
  required_rubygems_version: !ruby/object:Gem::Requirement
457
457
  requirements:
458
- - - ">"
458
+ - - ">="
459
459
  - !ruby/object:Gem::Version
460
- version: 1.3.1
460
+ version: '0'
461
461
  requirements: []
462
462
  rubygems_version: 3.0.6
463
463
  signing_key: