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 +4 -4
- data/CHANGES.txt +3 -0
- data/lib/splitclient-rb/cache/senders/impressions_count_sender.rb +21 -21
- 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: 81877bec1b1e46031afd6857b40762023148f8c068a9bbf94f089d477dbe8ee3
|
4
|
+
data.tar.gz: 307ada2bc1aa8ebeac5e2f328c9169359e252e634e25f8873073c8202495c9a0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9c4d7b28d10044bb81f299a904a2468391adba5c1cc2b658ce3b5e2a8aeae7690a9f742909a4995eef56c86918f5922dc06f4c0fb65f636faa3f8c1f5990f593
|
7
|
+
data.tar.gz: 29402faab00d6bd7e2b3928e55b3af3b8d6e262662216b371e9b2cc9f1002036b8435dc52ac2f4421d5f0134603551b8154d555dc2291a4f0583e96468f63b79
|
data/CHANGES.txt
CHANGED
@@ -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
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
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
|
-
|
51
|
+
def formatter(counts)
|
52
|
+
return if counts.empty?
|
54
53
|
|
55
|
-
|
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
|
-
|
66
|
-
|
67
|
-
|
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
|
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.
|
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-
|
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:
|
460
|
+
version: 1.3.1
|
461
461
|
requirements: []
|
462
462
|
rubygems_version: 3.0.6
|
463
463
|
signing_key:
|