banana_split 0.0.4 → 0.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -10,6 +10,7 @@ module BananaSplit
|
|
10
10
|
|
11
11
|
def ab_goal(test_name, value = 1)
|
12
12
|
test = AbTest.find_by_name(test_name)
|
13
|
+
return if test.blank?
|
13
14
|
test_run = AbTestRun.find_by_session_id_and_ab_test_id(session_id, test.id)
|
14
15
|
if test_run && test_run.value == 0
|
15
16
|
test_run.update_attribute(:value, value)
|
data/lib/banana_split/version.rb
CHANGED
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: banana_split
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.0.
|
5
|
+
version: 0.0.5
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Dennis Plougman Buus
|
@@ -11,7 +11,7 @@ autorequire:
|
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
13
|
|
14
|
-
date: 2011-03-
|
14
|
+
date: 2011-03-03 00:00:00 +01:00
|
15
15
|
default_executable:
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|