field_test 0.2.3 → 0.2.4
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of field_test might be problematic. Click here for more details.
- checksums.yaml +5 -5
- data/CHANGELOG.md +4 -0
- data/README.md +2 -2
- data/lib/field_test/calculations.rb +1 -1
- data/lib/field_test/experiment.rb +2 -2
- data/lib/field_test/version.rb +1 -1
- data/lib/generators/field_test/templates/{config.yml → config.yml.tt} +0 -0
- data/lib/generators/field_test/templates/{events.rb → events.rb.tt} +0 -0
- data/lib/generators/field_test/templates/{memberships.rb → memberships.rb.tt} +0 -0
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 91cef396b68f0ed43abcce42c80290ba216fe77105a947f0317925f7abb4d0fc
|
4
|
+
data.tar.gz: d2119a7219f278d182bf5484f959f788b03f40c129f23a58211ff8c9bfcfaeb5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fce4404e2f2c90215f14414bc9cd5e8c8cb3fb023e1adaea5a116e63e096ad52f25b1a74130cbebbd2d97e80c294b41289249172ca0c02ffb44a6d0ccaddcfe5
|
7
|
+
data.tar.gz: 8dcd8402e676d67c15552b93277007f4cc2fc5210a4c7beef72a5b0a0acd9e6c1f4c171cc65d8300e810acb5fd524d19f67eabef4da3b1cb86aa83e4d0c5c943
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
- Comes with a [handy dashboard](https://fieldtest.dokkuapp.com/)
|
7
7
|
- Seamlessly handles the transition from anonymous visitor to logged in user
|
8
8
|
|
9
|
-
Uses [Bayesian statistics](
|
9
|
+
Uses [Bayesian statistics](https://www.evanmiller.org/bayesian-ab-testing.html) to evaluate results so you don’t need to choose a sample size ahead of time.
|
10
10
|
|
11
11
|
## Installation
|
12
12
|
|
@@ -191,7 +191,7 @@ ENV["FIELD_TEST_PASSWORD"] = "kingdom"
|
|
191
191
|
|
192
192
|
## Credits
|
193
193
|
|
194
|
-
A huge thanks to [Evan Miller](
|
194
|
+
A huge thanks to [Evan Miller](https://www.evanmiller.org/) for deriving the Bayesian formulas.
|
195
195
|
|
196
196
|
## TODO
|
197
197
|
|
@@ -1,7 +1,7 @@
|
|
1
1
|
require "distribution/math_extension"
|
2
2
|
|
3
3
|
# formulas from
|
4
|
-
#
|
4
|
+
# https://www.evanmiller.org/bayesian-ab-testing.html
|
5
5
|
module FieldTest
|
6
6
|
module Calculations
|
7
7
|
def self.prob_b_beats_a(alpha_a, beta_a, alpha_b, beta_b)
|
@@ -97,8 +97,8 @@ module FieldTest
|
|
97
97
|
goal ||= goals.first
|
98
98
|
|
99
99
|
relation = memberships.group(:variant)
|
100
|
-
relation = relation.where("created_at >= ?", started_at) if started_at
|
101
|
-
relation = relation.where("created_at <= ?", ended_at) if ended_at
|
100
|
+
relation = relation.where("field_test_memberships.created_at >= ?", started_at) if started_at
|
101
|
+
relation = relation.where("field_test_memberships.created_at <= ?", ended_at) if ended_at
|
102
102
|
|
103
103
|
if use_events?
|
104
104
|
data = {}
|
data/lib/field_test/version.rb
CHANGED
File without changes
|
File without changes
|
File without changes
|
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.2.
|
4
|
+
version: 0.2.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Kane
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-01-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: railties
|
@@ -143,9 +143,9 @@ files:
|
|
143
143
|
- lib/field_test/version.rb
|
144
144
|
- lib/generators/field_test/events_generator.rb
|
145
145
|
- lib/generators/field_test/install_generator.rb
|
146
|
-
- lib/generators/field_test/templates/config.yml
|
147
|
-
- lib/generators/field_test/templates/events.rb
|
148
|
-
- lib/generators/field_test/templates/memberships.rb
|
146
|
+
- lib/generators/field_test/templates/config.yml.tt
|
147
|
+
- lib/generators/field_test/templates/events.rb.tt
|
148
|
+
- lib/generators/field_test/templates/memberships.rb.tt
|
149
149
|
homepage: https://github.com/ankane/field_test
|
150
150
|
licenses: []
|
151
151
|
metadata: {}
|
@@ -165,7 +165,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
165
165
|
version: '0'
|
166
166
|
requirements: []
|
167
167
|
rubyforge_project:
|
168
|
-
rubygems_version: 2.6
|
168
|
+
rubygems_version: 2.7.6
|
169
169
|
signing_key:
|
170
170
|
specification_version: 4
|
171
171
|
summary: A/B testing for Rails
|