field_test 0.2.1 → 0.2.2
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 +4 -4
- data/CHANGELOG.md +4 -0
- data/README.md +8 -4
- data/lib/field_test/version.rb +1 -1
- data/lib/generators/field_test/events_generator.rb +7 -1
- data/lib/generators/field_test/install_generator.rb +7 -1
- data/lib/generators/field_test/templates/events.rb +1 -1
- data/lib/generators/field_test/templates/memberships.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 06ab764fe1f5e67b9d7d55d8f6430880ef28ec5f
|
|
4
|
+
data.tar.gz: 5b235abc63dff62f21097828464a3e7305964bd4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 960737b908c81e0566b902afd82c8b5a83a1e3e5baae36a86e258caec5ab0b4afb383448926ca99e902a02156a448b8e4d782a9b40fcbfacf6746521e635decf
|
|
7
|
+
data.tar.gz: e9f4ae1bbfaa5761fcda9293752f3f312d357bbea342da27fe649f0f85e1f6446ccc524ce34f219f5cb6cd324268a7cdd38c0d6e3c86c1b80a5263bcd3c9a455
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
|
@@ -13,7 +13,7 @@ Uses [Bayesian statistics](http://www.evanmiller.org/bayesian-ab-testing.html) t
|
|
|
13
13
|
Add this line to your application’s Gemfile:
|
|
14
14
|
|
|
15
15
|
```ruby
|
|
16
|
-
gem
|
|
16
|
+
gem "field_test"
|
|
17
17
|
```
|
|
18
18
|
|
|
19
19
|
Run:
|
|
@@ -160,15 +160,15 @@ field_test_converted(:button_color, goal: "ordered")
|
|
|
160
160
|
|
|
161
161
|
The results for all goals will appear on the dashboard.
|
|
162
162
|
|
|
163
|
-
|
|
163
|
+
## Analytics Platforms
|
|
164
164
|
|
|
165
|
-
|
|
165
|
+
You can also send experiment data to analytics platforms like [Google Analytics](https://www.google.com/analytics/), [Mixpanel](https://mixpanel.com/), and [Ahoy](https://github.com/ankane/ahoy). Use:
|
|
166
166
|
|
|
167
167
|
```ruby
|
|
168
168
|
field_test_experiments
|
|
169
169
|
```
|
|
170
170
|
|
|
171
|
-
to get all experiments and variants for a participant
|
|
171
|
+
to get all experiments and variants for a participant and pass them as properties.
|
|
172
172
|
|
|
173
173
|
## Security
|
|
174
174
|
|
|
@@ -193,6 +193,10 @@ ENV["FIELD_TEST_PASSWORD"] = "kingdom"
|
|
|
193
193
|
|
|
194
194
|
A huge thanks to [Evan Miller](http://www.evanmiller.org/) for deriving the Bayesian formulas.
|
|
195
195
|
|
|
196
|
+
## TODO
|
|
197
|
+
|
|
198
|
+
- Code samples for analytics platforms
|
|
199
|
+
|
|
196
200
|
## History
|
|
197
201
|
|
|
198
202
|
View the [changelog](https://github.com/ankane/field_test/blob/master/CHANGELOG.md)
|
data/lib/field_test/version.rb
CHANGED
|
@@ -20,7 +20,13 @@ module FieldTest
|
|
|
20
20
|
end
|
|
21
21
|
|
|
22
22
|
def copy_migration
|
|
23
|
-
migration_template "events.rb", "db/migrate/create_field_test_events.rb"
|
|
23
|
+
migration_template "events.rb", "db/migrate/create_field_test_events.rb", migration_version: migration_version
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
def migration_version
|
|
27
|
+
if ActiveRecord::VERSION::MAJOR >= 5
|
|
28
|
+
"[#{ActiveRecord::VERSION::MAJOR}.#{ActiveRecord::VERSION::MINOR}]"
|
|
29
|
+
end
|
|
24
30
|
end
|
|
25
31
|
end
|
|
26
32
|
end
|
|
@@ -20,12 +20,18 @@ module FieldTest
|
|
|
20
20
|
end
|
|
21
21
|
|
|
22
22
|
def copy_migration
|
|
23
|
-
migration_template "memberships.rb", "db/migrate/create_field_test_memberships.rb"
|
|
23
|
+
migration_template "memberships.rb", "db/migrate/create_field_test_memberships.rb", migration_version: migration_version
|
|
24
24
|
end
|
|
25
25
|
|
|
26
26
|
def copy_config
|
|
27
27
|
template "config.yml", "config/field_test.yml"
|
|
28
28
|
end
|
|
29
|
+
|
|
30
|
+
def migration_version
|
|
31
|
+
if ActiveRecord::VERSION::MAJOR >= 5
|
|
32
|
+
"[#{ActiveRecord::VERSION::MAJOR}.#{ActiveRecord::VERSION::MINOR}]"
|
|
33
|
+
end
|
|
34
|
+
end
|
|
29
35
|
end
|
|
30
36
|
end
|
|
31
37
|
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.2.
|
|
4
|
+
version: 0.2.2
|
|
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: 2017-05-01 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: railties
|