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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3ae100dfd91abeb836a9e243f121814dbf88a50f
4
- data.tar.gz: 50441d229531cd30df0044da02ffd816a975084d
3
+ metadata.gz: 9aaf489771d341a47c96724219258e961bedd454
4
+ data.tar.gz: d61f4d1191cabe123d89b3647a36684a86e11f48
5
5
  SHA512:
6
- metadata.gz: 8361270292aa091ab2ba65c0c9fc67ddc28a106c0bedbc52790930ff4ca9cc33134135e44ceb12342d238912a9099e2a4fc338f847751918f88fe0614b2db25c
7
- data.tar.gz: d522edd22913964f74d34b5099410476110561182c5baa3a83c78be651b1980afb600eb099051bf568610478654c67287d98d48ceb423c3e882c9e9c1c835882
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
 
@@ -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
@@ -1,3 +1,3 @@
1
1
  module EasyAb
2
- VERSION = '0.4.1'
2
+ VERSION = '0.4.2'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: easy_ab
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gary Chu