banana_split 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -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)
@@ -2,7 +2,7 @@ module BananaSplit
2
2
  module VERSION
3
3
  MAJOR = 0
4
4
  MINOR = 0
5
- TINY = 4
5
+ TINY = 5
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
@@ -1,3 +1,4 @@
1
1
  class AbTestVariation < ActiveRecord::Base
2
2
  belongs_to :ab_test
3
+ has_many :ab_test_runs
3
4
  end
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.4
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-02 00:00:00 +01:00
14
+ date: 2011-03-03 00:00:00 +01:00
15
15
  default_executable:
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency