field_test 0.5.2 → 0.5.3

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5dfb996b9bbcbdec8cc8b590f319469981b9703e08b7940e1e2929e109849286
4
- data.tar.gz: 2a9029f33c3a825810c664ffe7eb9faf8275c7b2f915cc8f6c4c7f698da7e2ae
3
+ metadata.gz: fdb76c20b686424fab97716c260d114977a33ca9d9b41f8ba03a25523742fb49
4
+ data.tar.gz: 1879b26b2b96ce4083a66f41d15abf07ab61eb2d264308076a65a79adb319df2
5
5
  SHA512:
6
- metadata.gz: cfe04c537b3b1b67b058a0b257d5f0abe6a26420eb227b9ccc41b068a41f5d21f585c127e5f712a5c5e79894cc4dae69de136bd929c1b38089ed93d7d7eae115
7
- data.tar.gz: ec40759e91c68791f4a39423332024964806a4fde398d9290b2b8a904b14ecdb4fce4d9585af8cf1c40d2a413611f53ca8f4841c0445cf34b6e1be49f4e7efb2
6
+ metadata.gz: 2167ced106ba8f40dc2b8eab444101b7e422722daee96f9b19cee3e596fb22ac18fd6999f8afc9f454e496fffa3fd403cdfefca4d36d32d4601148745b507832
7
+ data.tar.gz: 440498c252008895b164cb59214ef3f98cf4d31572694df985f62a5393c66abd71c8dcb56a57ddb4cff346b227cff1e4d9f8d18c79c375996de53efaa0031ba0
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 0.5.3 (2022-05-26)
2
+
3
+ - Fixed bug in results with MySQL and multiple goals
4
+
1
5
  ## 0.5.2 (2021-12-16)
2
6
 
3
7
  - Fixed error with `events` association
data/LICENSE.txt CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2016-2021 Andrew Kane
1
+ Copyright (c) 2016-2022 Andrew Kane
2
2
 
3
3
  MIT License
4
4
 
@@ -113,10 +113,9 @@ module FieldTest
113
113
  :participant
114
114
  elsif adapter_name =~ /postg/i # postgres
115
115
  "(participant_type, participant_id)"
116
- elsif adapter_name =~ /mysql/i
117
- "participant_type, participant_id"
118
116
  else
119
- # not perfect, but it'll do
117
+ # SQLite supports single column
118
+ # MySQL supports multiple columns, but none can be NULL
120
119
  "COALESCE(participant_type, '') || ':' || participant_id"
121
120
  end
122
121
 
@@ -1,3 +1,3 @@
1
1
  module FieldTest
2
- VERSION = "0.5.2"
2
+ VERSION = "0.5.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: field_test
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.2
4
+ version: 0.5.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Kane
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-12-17 00:00:00.000000000 Z
11
+ date: 2022-05-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties
@@ -124,7 +124,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
124
124
  - !ruby/object:Gem::Version
125
125
  version: '0'
126
126
  requirements: []
127
- rubygems_version: 3.2.32
127
+ rubygems_version: 3.3.7
128
128
  signing_key:
129
129
  specification_version: 4
130
130
  summary: A/B testing for Rails