splitclient-rb 7.2.1 → 7.2.2.pre.rc1

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: 6142435102d1855e1b431662d0dbb9269f6ccb4ffd7cf60fc53f39d98ba8256d
4
- data.tar.gz: 9d69fb98d3151b0f91a584fc7c407aaa267cf900da9e7d3522b72bdc35336740
3
+ metadata.gz: 81877bec1b1e46031afd6857b40762023148f8c068a9bbf94f089d477dbe8ee3
4
+ data.tar.gz: 307ada2bc1aa8ebeac5e2f328c9169359e252e634e25f8873073c8202495c9a0
5
5
  SHA512:
6
- metadata.gz: ce3bd7b9fdd7d76f6b1c7786244ac713d309245def6f54ec6adef0ce0ac4c88d79f462b269b38dcc83b62fe949aea07fba0cd3c9262140edb57e4f791540ace6
7
- data.tar.gz: '0997b2225c9dad34c6052d9cede637d8a4dbbd17e17b1c8ea93df02c6fc905d8bfcda343386c059bd499ae1520b2f6ea02881bf9c845721194a1892e30382e53'
6
+ metadata.gz: 9c4d7b28d10044bb81f299a904a2468391adba5c1cc2b658ce3b5e2a8aeae7690a9f742909a4995eef56c86918f5922dc06f4c0fb65f636faa3f8c1f5990f593
7
+ data.tar.gz: 29402faab00d6bd7e2b3928e55b3af3b8d6e262662216b371e9b2cc9f1002036b8435dc52ac2f4421d5f0134603551b8154d555dc2291a4f0583e96468f63b79
@@ -1,5 +1,8 @@
1
1
  CHANGES
2
2
 
3
+ 7.2.2 (Dec 18, 2020)
4
+ - Fixed issue: undefined local variable or method post_impressions_count
5
+
3
6
  7.2.1 (Oct 23, 2020)
4
7
  - Updated redis dependency to >= 4.2.2.
5
8
  - Updated ably error handling.
@@ -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.1'
2
+ VERSION = '7.2.2.pre.rc1'
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.1
4
+ version: 7.2.2.pre.rc1
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-23 00:00:00.000000000 Z
11
+ date: 2020-12-16 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: '0'
460
+ version: 1.3.1
461
461
  requirements: []
462
462
  rubygems_version: 3.0.6
463
463
  signing_key: