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 +4 -4
- data/CHANGES.txt +3 -0
- data/lib/splitclient-rb/cache/repositories/splits_repository.rb +4 -9
- data/lib/splitclient-rb/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 00c4c8e3812f68a66b533785b518bf338f931786045981235cc48662da408745
|
4
|
+
data.tar.gz: 587bc9efc9fe405d1f494d40e35d6273a33299d6947be7f5a2954652d39fa8a8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
|
-
|
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)
|
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.
|
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-
|
11
|
+
date: 2019-08-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: allocation_stats
|