easy_ab 0.4.1 → 0.4.2
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/easy_ab/helpers.rb +1 -1
- data/lib/easy_ab/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9aaf489771d341a47c96724219258e961bedd454
|
4
|
+
data.tar.gz: d61f4d1191cabe123d89b3647a36684a86e11f48
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9f7c2cfd8d3b540b07f66ccd0485aace78fc8b0e3d51ff05030e0a5248d3a8a23b7b04021be325d87f759c580f5408dae71fcaa7494bed49d57c6b8057f15829
|
7
|
+
data.tar.gz: 866efef712d49f4f259be319217e8fd270e2325a6a94d1487057de89493cb29b5bea319e2aaceff4b02747f8b8db6cd7ac58667d5f1d8fbdca472914edc93af7
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,6 @@
|
|
1
|
+
# 0.4.2 (2017-08-18)
|
2
|
+
- Specify URL parameter to assign variant works for all user instead of admin only in development environment now. In production and test, admin is still required for assigning variant by URL paramenter.
|
3
|
+
|
1
4
|
# 0.4.1 (2017-08-18)
|
2
5
|
- Provide helper to assign variant in rspec
|
3
6
|
|
data/lib/easy_ab/helpers.rb
CHANGED
@@ -7,7 +7,7 @@ module EasyAb
|
|
7
7
|
|
8
8
|
if respond_to?(:request) && params[:ab_test] && params[:ab_test][experiment_name]
|
9
9
|
# Check current user is admin or not by proc defined by gem user
|
10
|
-
if easy_ab_user_is_admin?(options)
|
10
|
+
if Rails.env.development? || easy_ab_user_is_admin?(options)
|
11
11
|
options[:variant] ||= params[:ab_test][experiment_name]
|
12
12
|
end
|
13
13
|
# TODO: exclude bot
|
data/lib/easy_ab/version.rb
CHANGED