splut 0.0.5 → 0.0.6

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
  SHA256:
3
- metadata.gz: 706ff3dd533b04eaaace97b17b7fe5cd685af1138dd90d265f2cab7ad0f648b3
4
- data.tar.gz: 4a974825c08af904911ac09d34c4d24b4f866574cd7202a36de7545fef70b0fd
3
+ metadata.gz: 84217c2fbd8e785797576ba6a3779ef6f8e158e2fc2fb07b6e0810a92a82ecd4
4
+ data.tar.gz: 99c99f86a54694c46530deeb1a8026d7c3d58f83b0ee2ed0650f8e4f993e7065
5
5
  SHA512:
6
- metadata.gz: 8f057b5fc8a9053529504342c0fbd33d7aa28deedeb9b9f5c37eeaddb35a5ff5ac9141370c0a4db9d70572b90c33176b53ade812d68eb57b74994816162d86c2
7
- data.tar.gz: 40433e84830f1ae1a71045a6caa18a4ba9cbf84603cb009221515372bcddca65388b6250eefd84489d62f6cf92be08afcc6b77c9facc4968103bb7b00ae9dfeb
6
+ metadata.gz: 8022bad57b8e730f004925f6a177949f13cd3fada9a7e0b74892bb1a4c561dc0fad8c4df993e5441947e366575d770d146075741c0128398a23ee3f1c853cbb1
7
+ data.tar.gz: 62c4cc21202f07a8425c7db2cfd57ef2a2689e2dfe95e5d95565531a13692fb6a700b831849c1a78e9cf7ba9ce7405f3e8955fe9b9bb135cc2576e4bc65021d1
@@ -33,7 +33,6 @@ module Splut
33
33
 
34
34
  this_variation = self.variations[random]
35
35
 
36
- puts "Putting #{splutable_thing} into variation #{this_variation}"
37
36
 
38
37
  segment_participant = this_variation.segment_participants.create!(splutable: splutable_thing)
39
38
 
@@ -10,13 +10,8 @@ module Splut
10
10
  belongs_to :splutable, polymorphic: true
11
11
  belongs_to :segment_participant
12
12
 
13
- # counter_culture :variation, column_name: '_impression_total'
14
-
15
- counter_culture :variation, column_name: proc {|model| model.success ? '_impression_success' : nil },
16
- column_names: {
17
- ["impressions.id IS NOT NULL"] => '_impression_total',
18
- ["impressions.success IS TRUE"] => '_impression_success'
19
- }
13
+ counter_culture :variation, column_name: '_impression_total'
14
+ counter_culture :variation, column_name: proc {|model| model.success ? '_impression_success' : nil }
20
15
 
21
16
 
22
17
  def success!
@@ -10,12 +10,7 @@ module Splut
10
10
  has_many :impressions
11
11
 
12
12
  counter_culture :variation, column_name: :_segment_total
13
- counter_culture :variation, column_name: proc {|model| model.success ? '_segment_success' : nil },
14
- column_names: {
15
- ["segment_participants.id IS NOT NULL"] => '_segment_total',
16
- ["segment_participants.success IS TRUE"] => '_segment_success'
17
- }
18
-
13
+ counter_culture :variation, column_name: proc {|model| model.success ? '_segment_success' : nil }
19
14
 
20
15
  def success!
21
16
 
data/lib/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Splut
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: splut
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jason Fleetwood-Boldt
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-01-14 00:00:00.000000000 Z
11
+ date: 2022-12-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: counter_culture
@@ -88,7 +88,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
88
88
  - !ruby/object:Gem::Version
89
89
  version: '0'
90
90
  requirements: []
91
- rubygems_version: 3.1.6
91
+ rubygems_version: 3.2.33
92
92
  signing_key:
93
93
  specification_version: 4
94
94
  summary: A/B split testing Rails engine