ab_panel 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7ab8ac9d946978fcbccd263665138478ec313ffa
4
- data.tar.gz: e1b49731529c1cfc1479b7016e134ea9283f0394
3
+ metadata.gz: 9cd40ac48f8a81ab3c3e25191df7fd8456f2b361
4
+ data.tar.gz: fafb1c9fd106b2c04f32879eeb93ecc3f2ad96cf
5
5
  SHA512:
6
- metadata.gz: 65e75cf20b2ec836532920e46bafd64357f59c4fa6ea7e9422a096804ea73fab7232cec0a0a80279a5081a4abf021f7db1b545fffd1e3eba0c3578d515cfe890
7
- data.tar.gz: 19d6c9284f032990bde35b91915b5b82e5c6063112124b674cb70dd620cb8f38ff570b185115dc0f8a0215736a703465255666a69a40643aeac9f529ec2c3727
6
+ metadata.gz: 9f0088ff50569782f0a3b275b21ea484b4362323e420ca2e1dbb0ab438e59e04cbdb3bddd7eb87b6e7223fbf84bd671275eebf3f921b27b38554f9322df0d8ec
7
+ data.tar.gz: 9fdfbab96cbfc532e34d72c42078302e94f00642433ceb29355625721a6fabba8ceb94b40476fcd8a6bbd4a847526ff8c83ab1e396b362757020ebaa32222dce
@@ -49,7 +49,13 @@ module AbPanel
49
49
  def initialize_ab_panel!(options = {})
50
50
  AbPanel.reset!
51
51
 
52
- AbPanel.conditions = JSON.parse(cookies.signed[:ab_panel_conditions])
52
+
53
+ AbPanel.conditions =
54
+ if cookies.signed[:ab_panel_conditions]
55
+ JSON.parse(cookies.signed[:ab_panel_conditions])
56
+ else
57
+ nil
58
+ end
53
59
 
54
60
  cookies.signed[:ab_panel_conditions] = AbPanel.serialized_conditions
55
61
  AbPanel.funnels = Set.new(cookies.signed[:ab_panel_funnels])
@@ -1,3 +1,3 @@
1
1
  module AbPanel
2
- VERSION = "0.4.0"
2
+ VERSION = "0.4.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ab_panel
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Wouter de Vos