gitlab-experiment 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/gitlab/experiment.rb +1 -1
- data/lib/gitlab/experiment/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 740552e72dc8655bde106bbca76a2b5be2776196ad957c780cf06d2bc3324a11
|
4
|
+
data.tar.gz: 19f8fbc4588b8efcff729464b5f3480a9d41a0429f8ea8153d097a0c9c948aae
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b4f4b3f0a7c56087a0bccaf916d568a82ad02cd7784ba94e86254f3c11fabc106cf5da171d889d95818fb4229b34ab9712ddddf597c2dc6075d724c3c08af80b
|
7
|
+
data.tar.gz: aa6c559ca3e62e810ffa8efd7b1846da0beefd6ad91c10e425d7ed1477eb3073cb792b909d39199cb5847ce1b25d9bf19189793190f6e5a519c43468a341fe02
|
data/lib/gitlab/experiment.rb
CHANGED
@@ -79,7 +79,7 @@ module Gitlab
|
|
79
79
|
return @variant_name = value unless value.nil?
|
80
80
|
|
81
81
|
result = instance_exec(@variant_name, &Configuration.variant_resolver)
|
82
|
-
result.respond_to?(:name) ? result : Variant.new(name: result.to_s)
|
82
|
+
result.respond_to?(:name) ? result : Variant.new(name: (result.presence || :control).to_s)
|
83
83
|
end
|
84
84
|
|
85
85
|
def exclude(&block)
|