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 +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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e5daeec48636b151d045e56802a5f9a13f7f260c
|
4
|
+
data.tar.gz: 5129f877e3bef50cdb447f9bb5d3faa3e53ae381
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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: java
|
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
|
requirement: !ruby/object:Gem::Requirement
|