splitclient-rb 7.1.4.pre.rc11-java → 7.1.4.pre.rc16-java

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
  SHA1:
3
- metadata.gz: dd1350b88d8b1d65f0f03bd45162a8aa4dd974f7
4
- data.tar.gz: 900ddb61476b4bb9d6a2d8ae62bfcc448db7f730
3
+ metadata.gz: 9ae2af4ecd017f1fb62cfc671e0dee874b4bf615
4
+ data.tar.gz: ea715f541b293f3ba800c8c28229694b790ca9f4
5
5
  SHA512:
6
- metadata.gz: 2d996776202ce2beb6e9325004d870a8c94671acefcd1fe84db7ba0bdbc86b7d5f3d7ce2a4a9d46bf11621b87aa80677caaa97b91769e32ea8217ae409a6581d
7
- data.tar.gz: 043ce9020f3db137e84a16127d890949781e71ef396a08de2cdb55daf7db2aa72e01ec9057671521a69d660c9be23fd4f01d37a032edba8b9912ad88e2421e8a
6
+ metadata.gz: f01c9b7fc4060edec9f94c1809b16e4979d9ed15238592ff67f77524b7921c32886b0a528d54d019f1a1d62cdbb74c0551369a6541ab057c089e2a4939036712
7
+ data.tar.gz: 22ccf0edd57996f3924dcb7a8be67d297037550e5afd39100ce822c3067df6156989fd46013c767a2182c257a9ac946f758729b624d6117e98381f5bfe15af1c
@@ -191,8 +191,9 @@ public final class MurmurHash3 {
191
191
  (((long) data[index + 7] & 0xff) << 56);
192
192
  }
193
193
 
194
- public static long[] hash128x64(final byte[] data) {
195
- return hash128x64(data, 0, data.length, 0);
194
+ public static long[] hash128x64(final String data, final long seed) {
195
+ final byte[] dataBytes = data.getBytes();
196
+ return hash128x64(dataBytes, 0, dataBytes.length, seed);
196
197
  }
197
198
 
198
199
  /**
@@ -22,7 +22,7 @@ module SplitIoClient
22
22
  # Synchronizer might not be running
23
23
  @adapter.expire(key, EXPIRE_SECONDS) if impressions_json.size == impressions_list_size
24
24
  rescue StandardError => e
25
- @config.logger.error("Exception while add_bulk_v2: #{e}")
25
+ @config.logger.error("Exception while add_bulk: #{e}")
26
26
  end
27
27
 
28
28
  def get_impressions(number_of_impressions = 0)
@@ -19,7 +19,7 @@ module SplitIoClient
19
19
  end
20
20
 
21
21
  def add_bulk(impressions)
22
- return unless @listener
22
+ @config.logger.warn('ROUTER ADD_BULK')
23
23
  impressions.each do |impression|
24
24
  enqueue(
25
25
  split_name: impression[:i][:f],
@@ -35,12 +35,20 @@ module SplitIoClient
35
35
  attributes: impression[:attributes]
36
36
  ) unless impression.nil?
37
37
  end
38
+ rescue StandardError => error
39
+ @config.log_found_exception(__method__.to_s, error)
38
40
  end
39
41
 
40
42
  private
41
43
 
42
44
  def enqueue(impression)
45
+ @config.logger.warn('ENQUEUE')
46
+ @config.logger.warn(impression.to_s)
47
+ @config.logger.warn(@listener.nil?)
48
+
43
49
  @queue.push(impression) if @listener
50
+ rescue StandardError => error
51
+ @config.log_found_exception(__method__.to_s, error)
44
52
  end
45
53
 
46
54
  def router_thread
@@ -26,6 +26,8 @@ module SplitIoClient
26
26
  end
27
27
 
28
28
  def track(impressions)
29
+ return if impressions.empty?
30
+
29
31
  @impressions_repository.add_bulk(impressions)
30
32
  @impression_router.add_bulk(impressions)
31
33
  rescue StandardError => error
@@ -1,3 +1,3 @@
1
1
  module SplitIoClient
2
- VERSION = '7.1.4.pre.rc11'
2
+ VERSION = '7.1.4.pre.rc16'
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.1.4.pre.rc11
4
+ version: 7.1.4.pre.rc16
5
5
  platform: java
6
6
  authors:
7
7
  - Split Software
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-09-18 00:00:00.000000000 Z
11
+ date: 2020-09-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement