field_test 0.2.1 → 0.2.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1f722991205f31c2faf4c59852d717ac229f3043
4
- data.tar.gz: 18b45c92adbcec168c41e051ea1c6613c6dadbfc
3
+ metadata.gz: 06ab764fe1f5e67b9d7d55d8f6430880ef28ec5f
4
+ data.tar.gz: 5b235abc63dff62f21097828464a3e7305964bd4
5
5
  SHA512:
6
- metadata.gz: d18d2688655ebd5a1d523b3ec8452fd96701e1a63b6cb7f93eae395fd2bfae39d7bf1c716e6617cf9a96e47e7fd129035ef31f3243e928653c52839dba499a9b
7
- data.tar.gz: 8cedb82ac15520e091e46cc82ec7fa21faa41ec7ed0fc60f0d351b82948cb6c823ecaca645423893feaa5a1a4dc828e173a1255fd39bffe2401d84a868fc7fbf
6
+ metadata.gz: 960737b908c81e0566b902afd82c8b5a83a1e3e5baae36a86e258caec5ab0b4afb383448926ca99e902a02156a448b8e4d782a9b40fcbfacf6746521e635decf
7
+ data.tar.gz: e9f4ae1bbfaa5761fcda9293752f3f312d357bbea342da27fe649f0f85e1f6446ccc524ce34f219f5cb6cd324268a7cdd38c0d6e3c86c1b80a5263bcd3c9a455
@@ -1,3 +1,7 @@
1
+ ## 0.2.2
2
+
3
+ - Added support for Rails 5.1
4
+
1
5
  ## 0.2.1
2
6
 
3
7
  - Added support for multiple goals
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 'field_test'
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
- ### Advanced
163
+ ## Analytics Platforms
164
164
 
165
- For advanced funnels, we recommend an analytics platform like [Ahoy](https://github.com/ankane/ahoy) or [Mixpanel](https://mixpanel.com/). You can use:
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, and pass them as properties.
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)
@@ -1,3 +1,3 @@
1
1
  module FieldTest
2
- VERSION = "0.2.1"
2
+ VERSION = "0.2.2"
3
3
  end
@@ -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
@@ -1,4 +1,4 @@
1
- class <%= migration_class_name %> < ActiveRecord::Migration
1
+ class <%= migration_class_name %> < ActiveRecord::Migration<%= migration_version %>
2
2
  def change
3
3
  create_table :field_test_events do |t|
4
4
  t.integer :field_test_membership_id
@@ -1,4 +1,4 @@
1
- class <%= migration_class_name %> < ActiveRecord::Migration
1
+ class <%= migration_class_name %> < ActiveRecord::Migration<%= migration_version %>
2
2
  def change
3
3
  create_table :field_test_memberships do |t|
4
4
  t.string :participant
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.1
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: 2016-12-18 00:00:00.000000000 Z
11
+ date: 2017-05-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties