splitclient-rb 7.0.3.pre.rc3-java → 7.0.3.pre.rc4-java

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ccfac0873669baba494bff8c35d7e40cdb2319cc
4
- data.tar.gz: 866a4c44c299ae8b9b7163e8995da60ce36d553b
3
+ metadata.gz: 90e975f500529d27871ed3020aab8520b9119628
4
+ data.tar.gz: 92c15cd1113b7946c5fed25e4ab48d8bb8f1e24f
5
5
  SHA512:
6
- metadata.gz: 6a0df5bacf364af634e9717e25621b46e98b7dbf5efff93dd857b9d5d0e17051d83535c63cfbd730e8e38e050b1859764f419d3ba51de952193d210ea0709c8c
7
- data.tar.gz: 6ec0c342f08fd052953aa19c0614512e0d61ba805e7f60d065e27c52168992baa0f70b59b1cf990a6692270569c3418b78898b0db12bd052f20f215fffb86a3f
6
+ metadata.gz: 258a7086cda2a5bd3b2676f3c48b069e44ea64c4c4e556a9679da85eea10cfd8b03e224e46fcd276dfaf7502d949b534e502cfec1e372e635c59730fc797125b
7
+ data.tar.gz: 5fc80b608e28e95a7bfc6c887d503db59fec0bbaa4a51adda64820ca0c1088988fac7a494f56a1284b6e094abaca9b41cdaa74e36ff09a98d88085fa7a160c46
@@ -1,3 +1,5 @@
1
+ require 'concurrent'
2
+
1
3
  module SplitIoClient
2
4
  module Cache
3
5
  module Repositories
@@ -6,9 +8,9 @@ module SplitIoClient
6
8
  OPERATIONS = %w(sdk.get_treatment sdk.get_treatments sdk.get_treatment_with_config sdk.get_treatments_with_config)
7
9
 
8
10
  def initialize(_ = nil, config)
9
- @counts = []
10
- @latencies = []
11
- @gauges = []
11
+ @counts = Concurrent::Array.new
12
+ @latencies = Concurrent::Array.new
13
+ @gauges = Concurrent::Array.new
12
14
  @config = config
13
15
  end
14
16
 
@@ -64,15 +66,15 @@ module SplitIoClient
64
66
  end
65
67
 
66
68
  def clear_counts
67
- @counts = []
69
+ @counts = Concurrent::Array.new
68
70
  end
69
71
 
70
72
  def clear_latencies
71
- @latencies = []
73
+ @latencies = Concurrent::Array.new
72
74
  end
73
75
 
74
76
  def clear_gauges
75
- @gauges = []
77
+ @gauges = Concurrent::Array.new
76
78
  end
77
79
 
78
80
  def clear
@@ -1,3 +1,3 @@
1
1
  module SplitIoClient
2
- VERSION = '7.0.3.pre.rc3'
2
+ VERSION = '7.0.3.pre.rc4'
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.0.3.pre.rc3
4
+ version: 7.0.3.pre.rc4
5
5
  platform: java
6
6
  authors:
7
7
  - Split Software
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-12-05 00:00:00.000000000 Z
11
+ date: 2019-12-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement