verdict 0.15.0 → 0.15.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/lib/verdict/experiment.rb +1 -1
- data/lib/verdict/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: 27eea30b628bf29627fe68762f18dea365ebc77d0ac34e8b1b63f24e29814276
|
4
|
+
data.tar.gz: 65a0cb4ae9247c75bdcff094a7546e673cda0d05f8a922c48ed7f448deb931b7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 813097404fecc5c3f44121d68b5da2cb0213fcbadfa4b5b20c451286577b6d7e35900e636582fe3d4b1d6b95c6df3916da9e89ded291d042f11f963a8a58e895
|
7
|
+
data.tar.gz: ea1e6b44880d6a6dd085173abf4155f5e8605272d6d679c8dea8a71259d5b7b8f86b62adc39afb49e40126ef8cd547efda8904214a3d51f5881f96030498e028
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,6 @@
|
|
1
|
+
## v0.15.1
|
2
|
+
* Make the `dynamic_qualifies` parameter in `Verdict::Experiment#subject_qualifies?` optional. This fixes a bug where users that were previously calling this method directly experienced issues after v0.15.0
|
3
|
+
|
1
4
|
## v0.15.0
|
2
5
|
* Add optional `qualifiers` parameter to the `Verdict::Experiment#switch` method. This parameter accepts an array of procs and is used as additional qualifiers. The purpose of this parameter is to allow users to define qualification logic outside of the experiment definition.
|
3
6
|
|
data/lib/verdict/experiment.rb
CHANGED
@@ -243,7 +243,7 @@ class Verdict::Experiment
|
|
243
243
|
@disqualify_empty_identifier
|
244
244
|
end
|
245
245
|
|
246
|
-
def subject_qualifies?(subject, dynamic_qualifiers, context = nil)
|
246
|
+
def subject_qualifies?(subject, dynamic_qualifiers = [], context = nil)
|
247
247
|
ensure_experiment_has_started
|
248
248
|
return false unless dynamic_qualifiers.all? { |qualifier| qualifier.call(subject) }
|
249
249
|
everybody_qualifies? || @qualifiers.all? { |qualifier| qualifier.call(subject, context) }
|
data/lib/verdict/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: verdict
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.15.
|
4
|
+
version: 0.15.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Shopify
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-07-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: minitest
|