splitclient-rb 7.0.0.pre.rc2-java → 7.0.0.pre.rc3-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: 784f40e3d3973b6535c2ca389ad2379a1a0bf267
4
- data.tar.gz: 9d77c254f9ee32f43f02c356458020a7a5649106
3
+ metadata.gz: e5daeec48636b151d045e56802a5f9a13f7f260c
4
+ data.tar.gz: 5129f877e3bef50cdb447f9bb5d3faa3e53ae381
5
5
  SHA512:
6
- metadata.gz: 4a577d645f7c0e669db5a9b3bead8c748b909e90befc79278e2fda13c008e3c822029f4a56f65c27ae591c2735ba9e9600f03744b1b44b06d4bfe5d510aca149
7
- data.tar.gz: 7ff818cfebb2d9d3b9a1c06cf5cf432c879513965962de27c1c8e327179556881ff270f9ba5fd08032c4257138ad054b01933d770c8b98304cb84a3fcccb69c1
6
+ metadata.gz: 4618d8cf58aec9ec933c07a3aa3af3237a0bc38bde5a120ae7d2c69810f67d86e524529ed2ec040054b97cc3afdec76b5b98430cb34f417d74e10e9e693f36b6
7
+ data.tar.gz: 156b3ca7caafef03e7ad1e1c0b9cd4b06a5d5a2b38139a446352f26f85429d6a775b0e2869e41781518c0d5511693630bdd94a88796613d37e70055669e14fe4
data/CHANGES.txt CHANGED
@@ -1,3 +1,6 @@
1
+ 7.0.0 (Aug 21, 2019)
2
+ - Changed the splits method implementation in the splits_repository to make use of get_splits, which outperforms the current implementation.
3
+
1
4
  6.4.1 (Jul 26, 2019)
2
5
  - Fixed an issue in the latency metrics format preventing the synchronizer from correctly picking them up (consumer mode only). Old keys will be deleted on SDK startup.
3
6
 
@@ -43,7 +43,7 @@ module SplitIoClient
43
43
  @adapter.delete(namespace_key(".split.#{split[:name]}"))
44
44
  end
45
45
 
46
- def get_splits(names)
46
+ def get_splits(names, symbolize_names = true)
47
47
  splits = {}
48
48
  split_names = names.map { |name| namespace_key(".split.#{name}") }
49
49
  splits.merge!(
@@ -54,7 +54,8 @@ module SplitIoClient
54
54
 
55
55
  splits.map do |name, data|
56
56
  parsed_data = data ? JSON.parse(data, symbolize_names: true) : nil
57
- [name.to_sym, parsed_data]
57
+ split_name = symbolize_names ? name.to_sym : name
58
+ [split_name, parsed_data]
58
59
  end.to_h
59
60
  end
60
61
 
@@ -65,13 +66,7 @@ module SplitIoClient
65
66
  end
66
67
 
67
68
  def splits
68
- splits_hash = {}
69
-
70
- split_names.each do |name|
71
- splits_hash[name] = get_split(name)
72
- end
73
-
74
- splits_hash
69
+ get_splits(split_names, false)
75
70
  end
76
71
 
77
72
  def traffic_type_exists(tt_name)
@@ -1,3 +1,3 @@
1
1
  module SplitIoClient
2
- VERSION = '7.0.0.pre.rc2'
2
+ VERSION = '7.0.0.pre.rc3'
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.0.pre.rc2
4
+ version: 7.0.0.pre.rc3
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-08-19 00:00:00.000000000 Z
11
+ date: 2019-08-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement