Commit 281a4d7
committed
Make default experiment not run all
It is quite possible to follow the directions in the README.md,
create a localized experiment class with a real `enabled?` method
`publish` methods, etc., and expect folks to require your library
and use it.
But, it's also possible that someone will define an experiment,
neglectd to include your local experiment override library, still
have scientist in the require path, and when they `include Scientist`
in their experiment-running class, they will get the "default"
scientist experiment.
The default experiment runs every `try` branch.
In production environments pushing a new experiment and having it
run the `try` branch unconditionally is less than ideal.
This flips the default `enabled?` to 'false`. At least folks will
dig a bit to realize they could include their local library by
default and dodge this problem.try paths1 parent 2046359 commit 281a4d7
3 files changed
Lines changed: 9 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | | - | |
| 6 | + | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
126 | 131 | | |
127 | 132 | | |
128 | 133 | | |
| |||
0 commit comments