splitclient-rb 7.0.0.pre.rc2 → 7.0.0.pre.rc3

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: ae980fca494aa0eeb477ee776f54907af63d99545abe9cea7db4602f7db74ae8
4
- data.tar.gz: 6da69307c770a27d40295aceaef1d9abefb95d30a78ae1447d8849fd8e97180a
3
+ metadata.gz: 00c4c8e3812f68a66b533785b518bf338f931786045981235cc48662da408745
4
+ data.tar.gz: 587bc9efc9fe405d1f494d40e35d6273a33299d6947be7f5a2954652d39fa8a8
5
5
  SHA512:
6
- metadata.gz: 464d51832d877b634233e440ac7fa5d3f2f18affc9cb52f9f82b6d2f254e6e6546be9518a9deb4bc39e868e9b27c68c85965e1449c364022d50f6317c83dfd31
7
- data.tar.gz: 575faf88f83e7099870f421b74cfaccbb74b92d8953b7c9f308d8d35e35ed674fd2ad01343dad19d0d6b01de70dd8121c70638d66a50866a5c627147bc653fee
6
+ metadata.gz: a58f417aa40807971c558c6b722d2d6dabe069f350995cd611a0a657a6e5dd310ee8b62f7caa2a7bb4c97ef311b69502f79b444324040b08dc0ab97fe0680f4a
7
+ data.tar.gz: b885783cb5e20fa8c46a06e510ab9902f6ba4bf91e2102c9c2b00014e9a16445c8d993446f1e1b039592dedcd91f91e94c9b94680620018c67f99e03f3262726
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: ruby
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
  name: allocation_stats