configcat 1.2.3 → 2.0.2

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: 7b1a942248d64106cb8d048e1b036bb0d9533ddec927e6c40de53792c7cb50a2
4
- data.tar.gz: 1fc92424f560cb36f8fc272fca29c7fbeba155f734cd9269bcba75614d632e78
3
+ metadata.gz: 216277c9c25debbe5d07c33f6c73c850f774c5115b0dd324ee4973514f83d6b9
4
+ data.tar.gz: 5e94aca770e2888ccc887befd5681950bf4dc6d6dc1819e57e731cf8e02e5793
5
5
  SHA512:
6
- metadata.gz: dfcb859602316a2c538230088fd3b49739173ed2edaf927886b000a497d18a4c9c2857c06fdb40280a22715f6cf2c9d5390a5697c3aedbc95e0e697aff3f3fbf
7
- data.tar.gz: 2d9dc0884143badeee4a246037abb80c09bd2cae1247241ca7d750647f67951bb45b23d3be17768468968ac9ea81f1e66156b5e2b152a678dbaf943274aade27
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
 
@@ -1,3 +1,3 @@
1
1
  module ConfigCat
2
- VERSION = "1.2.3"
2
+ VERSION = "2.0.2"
3
3
  end
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: 1.2.3
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-01-15 00:00:00.000000000 Z
11
+ date: 2020-02-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: concurrent-ruby