configcat 1.2.3 → 2.0.2
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 +4 -4
- data/lib/configcat/rolloutevaluator.rb +12 -1
- data/lib/configcat/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: 216277c9c25debbe5d07c33f6c73c850f774c5115b0dd324ee4973514f83d6b9
|
4
|
+
data.tar.gz: 5e94aca770e2888ccc887befd5681950bf4dc6d6dc1819e57e731cf8e02e5793
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 308f9b0d6fcebebded88f6945aaf4ae025329e9ab21711f587f8fee366024788da514c2e30d1b875b025de12b692783a26ab163732a6c333e6513789a04ca496
|
7
|
+
data.tar.gz: 8f73ab03c23e10d961564663078574839a91758108b02c8511c449e1d3fd12347186857871e3cd048d7d526fbffd204adbe0d950f55a589cd2d9f501854edd04
|
@@ -129,8 +129,19 @@ module ConfigCat
|
|
129
129
|
ConfigCat.logger.warn(format_validation_error_rule(comparison_attribute, user_value, comparator, comparison_value, e.to_s))
|
130
130
|
next
|
131
131
|
end
|
132
|
+
# IS ONE OF (Sensitive)
|
133
|
+
elsif comparator == 16
|
134
|
+
if comparison_value.to_s.split(",").map { |x| x.strip() }.include?(Digest::SHA1.hexdigest(user_value).to_s)
|
135
|
+
ConfigCat.logger.info(format_match_rule(comparison_attribute, user_value, comparator, comparison_value, value))
|
136
|
+
return value
|
137
|
+
end
|
138
|
+
# IS NOT ONE OF (Sensitive)
|
139
|
+
elsif comparator == 17
|
140
|
+
if !comparison_value.to_s.split(",").map { |x| x.strip() }.include?(Digest::SHA1.hexdigest(user_value).to_s)
|
141
|
+
ConfigCat.logger.info(format_match_rule(comparison_attribute, user_value, comparator, comparison_value, value))
|
142
|
+
return value
|
143
|
+
end
|
132
144
|
end
|
133
|
-
|
134
145
|
ConfigCat.logger.info(format_no_match_rule(comparison_attribute, user_value, comparator, comparison_value))
|
135
146
|
end
|
136
147
|
|
data/lib/configcat/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: configcat
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 2.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ConfigCat
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-02-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: concurrent-ruby
|