field_test 0.4.0 → 0.4.1
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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 25a516eac00c5ded25aa203d9e3feb89196c7641868e5575938bf223ee8d20d2
|
|
4
|
+
data.tar.gz: 89dc335addf645088c5251ccd7a99b0d5348857a210c520350a3d39a9244fc3f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 97c5900ff54996e5b31250b882300104c991e93ab4582b30e1a2ada4fb0c8f191ddbac9240941fce9d2160bf01a66ca1ed73cd3e4a5a734de99e487b9c0c3772
|
|
7
|
+
data.tar.gz: 765b5fbb1928889ff40b576b710b93ffe14adc38d6153715b89d806cbcfa46021fb4d0cc780754a1e794d3ad2ccbcb8f939dff72a148392ae95a0b968cb7d443
|
data/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
|
+
## 0.4.1 (2020-09-07)
|
|
2
|
+
|
|
3
|
+
- Use `datetime` type in migration
|
|
4
|
+
|
|
1
5
|
## 0.4.0 (2020-08-04)
|
|
2
6
|
|
|
3
|
-
- Fixed CSRF vulnerability with non-session based authentication
|
|
7
|
+
- Fixed CSRF vulnerability with non-session based authentication - [more info](https://github.com/ankane/field_test/issues/28)
|
|
4
8
|
- Fixed cache key for requests
|
|
5
9
|
|
|
6
10
|
## 0.3.2 (2020-04-16)
|
|
@@ -16,7 +20,7 @@
|
|
|
16
20
|
|
|
17
21
|
Security
|
|
18
22
|
|
|
19
|
-
- Fixed arbitrary variants via query parameters -
|
|
23
|
+
- Fixed arbitrary variants via query parameters - [more info](https://github.com/ankane/field_test/issues/17)
|
|
20
24
|
|
|
21
25
|
## 0.3.0 (2019-06-02)
|
|
22
26
|
|
data/README.md
CHANGED
|
@@ -160,7 +160,7 @@ experiment = FieldTest::Experiment.find(:button_color)
|
|
|
160
160
|
button_color = experiment.variant(user)
|
|
161
161
|
```
|
|
162
162
|
|
|
163
|
-
##
|
|
163
|
+
## Exclusions
|
|
164
164
|
|
|
165
165
|
By default, bots are returned the first variant and excluded from metrics. Change this with:
|
|
166
166
|
|
|
@@ -178,6 +178,14 @@ exclude:
|
|
|
178
178
|
- 10.0.0.0/8
|
|
179
179
|
```
|
|
180
180
|
|
|
181
|
+
You can also use custom logic:
|
|
182
|
+
|
|
183
|
+
```ruby
|
|
184
|
+
field_test(:button_color, exclude: request.user_agent == "Test")
|
|
185
|
+
```
|
|
186
|
+
|
|
187
|
+
## Config
|
|
188
|
+
|
|
181
189
|
Keep track of when experiments started and ended. Use any format `Time.parse` accepts. Variants assigned outside this window are not included in metrics.
|
|
182
190
|
|
|
183
191
|
```yml
|
data/lib/field_test/version.rb
CHANGED
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.4.
|
|
4
|
+
version: 0.4.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Andrew Kane
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2020-08
|
|
11
|
+
date: 2020-09-08 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: railties
|