splitclient-rb 3.0.3.pre.rc1 → 3.0.3.pre.rc2
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8739ea8c67d0e01c38f753ee6ff0e94e562676f6
|
4
|
+
data.tar.gz: dfd7ab40498659471e191acdb95ef2fd32daae6a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2ff42f265a6057fb5e57c4a99f733c60dc5bf64afd75964b3d65ca562e897fbf2bd5070047f4dab556dd7965b9d7922ba81b6cb481233ec29b9af576dcb51fbb
|
7
|
+
data.tar.gz: cb3cd71147a2310f38711881f8a209c62acc19506d73da98e9b0ee8020a0554a9677b131f3eb71713f3ae00cf382e7af069bade8d19808e487acb17510dbbec8
|
@@ -10,7 +10,7 @@ module SplitIoClient
|
|
10
10
|
def call(keys, split_name, default_treatment, attributes = nil)
|
11
11
|
split = @splits_repository.get_split(split_name)
|
12
12
|
|
13
|
-
return Treatments::CONTROL if archived?(split)
|
13
|
+
return Treatments::CONTROL if self.class.archived?(split)
|
14
14
|
|
15
15
|
matchable?(split) ? match(split, keys, attributes, default_treatment) : default_treatment
|
16
16
|
end
|
@@ -56,7 +56,7 @@ module SplitIoClient
|
|
56
56
|
!split.nil? && split[:status] == 'ACTIVE' && split[:killed] == false
|
57
57
|
end
|
58
58
|
|
59
|
-
def archived?(split)
|
59
|
+
def self.archived?(split)
|
60
60
|
!split.nil? && split[:status] == 'ARCHIVED'
|
61
61
|
end
|
62
62
|
end
|
@@ -1,4 +1,5 @@
|
|
1
1
|
require 'logger'
|
2
|
+
|
2
3
|
module SplitIoClient
|
3
4
|
#
|
4
5
|
# main class for split client sdk
|
@@ -57,7 +58,7 @@ module SplitIoClient
|
|
57
58
|
splits.keys.each do |key|
|
58
59
|
|
59
60
|
split = splits.get(key)
|
60
|
-
ret << build_split_view(key, split)
|
61
|
+
ret << build_split_view(key, split) if !Engine::Parser::SplitTreatment.archived?(split)
|
61
62
|
end
|
62
63
|
|
63
64
|
ret
|
@@ -77,7 +78,7 @@ module SplitIoClient
|
|
77
78
|
|
78
79
|
split = @splits_repository.get_split(split_name)
|
79
80
|
|
80
|
-
build_split_view(split_name, split) if split
|
81
|
+
build_split_view(split_name, split) if split and !Engine::Parser::SplitTreatment.archived?(split)
|
81
82
|
end
|
82
83
|
end
|
83
84
|
|
@@ -197,6 +198,7 @@ module SplitIoClient
|
|
197
198
|
#
|
198
199
|
# @return [Treatment] tretment constant value
|
199
200
|
def get_treatment_without_exception_handling(key, feature, attributes = nil)
|
201
|
+
|
200
202
|
split = @splits_repository.get_split(feature)
|
201
203
|
|
202
204
|
if split.nil?
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: splitclient-rb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.3.pre.
|
4
|
+
version: 3.0.3.pre.rc2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Split Software
|
@@ -298,7 +298,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
298
298
|
version: 1.3.1
|
299
299
|
requirements: []
|
300
300
|
rubyforge_project:
|
301
|
-
rubygems_version: 2.
|
301
|
+
rubygems_version: 2.5.1
|
302
302
|
signing_key:
|
303
303
|
specification_version: 4
|
304
304
|
summary: Ruby client for split SDK.
|