split 3.3.0 → 4.0.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 +4 -4
- data/.eslintrc +1 -1
- data/.github/FUNDING.yml +1 -0
- data/.github/ISSUE_TEMPLATE/bug_report.md +24 -0
- data/.github/dependabot.yml +7 -0
- data/.github/workflows/ci.yml +71 -0
- data/.rspec +1 -0
- data/.rubocop.yml +71 -1044
- data/.rubocop_todo.yml +226 -0
- data/Appraisals +4 -0
- data/CHANGELOG.md +116 -0
- data/CODE_OF_CONDUCT.md +3 -3
- data/Gemfile +2 -0
- data/README.md +63 -26
- data/Rakefile +2 -0
- data/gemfiles/{4.2.gemfile → 6.0.gemfile} +1 -1
- data/gemfiles/6.1.gemfile +9 -0
- data/gemfiles/7.0.gemfile +9 -0
- data/lib/split/algorithms/block_randomization.rb +2 -0
- data/lib/split/algorithms/weighted_sample.rb +2 -1
- data/lib/split/algorithms/whiplash.rb +3 -2
- data/lib/split/alternative.rb +4 -3
- data/lib/split/cache.rb +28 -0
- data/lib/split/combined_experiments_helper.rb +3 -2
- data/lib/split/configuration.rb +17 -14
- data/lib/split/dashboard/helpers.rb +3 -2
- data/lib/split/dashboard/pagination_helpers.rb +4 -4
- data/lib/split/dashboard/paginator.rb +1 -0
- data/lib/split/dashboard/public/dashboard.js +10 -0
- data/lib/split/dashboard/public/style.css +5 -0
- data/lib/split/dashboard/views/_controls.erb +13 -0
- data/lib/split/dashboard/views/layout.erb +1 -1
- data/lib/split/dashboard.rb +19 -1
- data/lib/split/encapsulated_helper.rb +3 -2
- data/lib/split/engine.rb +7 -4
- data/lib/split/exceptions.rb +1 -0
- data/lib/split/experiment.rb +98 -65
- data/lib/split/experiment_catalog.rb +1 -3
- data/lib/split/extensions/string.rb +1 -0
- data/lib/split/goals_collection.rb +2 -0
- data/lib/split/helper.rb +30 -10
- data/lib/split/metric.rb +2 -1
- data/lib/split/persistence/cookie_adapter.rb +6 -1
- data/lib/split/persistence/dual_adapter.rb +54 -12
- data/lib/split/persistence/redis_adapter.rb +5 -0
- data/lib/split/persistence/session_adapter.rb +1 -0
- data/lib/split/persistence.rb +4 -2
- data/lib/split/redis_interface.rb +9 -28
- data/lib/split/trial.rb +25 -17
- data/lib/split/user.rb +20 -4
- data/lib/split/version.rb +2 -4
- data/lib/split/zscore.rb +1 -0
- data/lib/split.rb +16 -3
- data/spec/alternative_spec.rb +1 -1
- data/spec/cache_spec.rb +88 -0
- data/spec/configuration_spec.rb +17 -15
- data/spec/dashboard/pagination_helpers_spec.rb +3 -1
- data/spec/dashboard_helpers_spec.rb +2 -2
- data/spec/dashboard_spec.rb +78 -17
- data/spec/encapsulated_helper_spec.rb +2 -2
- data/spec/experiment_spec.rb +116 -12
- data/spec/goals_collection_spec.rb +1 -1
- data/spec/helper_spec.rb +191 -112
- data/spec/persistence/cookie_adapter_spec.rb +1 -1
- data/spec/persistence/dual_adapter_spec.rb +160 -68
- data/spec/persistence/redis_adapter_spec.rb +9 -0
- data/spec/redis_interface_spec.rb +0 -69
- data/spec/spec_helper.rb +5 -6
- data/spec/trial_spec.rb +65 -19
- data/spec/user_spec.rb +45 -3
- data/split.gemspec +9 -9
- metadata +38 -29
- data/.travis.yml +0 -53
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: split
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version:
|
|
4
|
+
version: 4.0.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Andrew Nesbitt
|
|
8
|
-
autorequire:
|
|
8
|
+
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2021-12-30 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: redis
|
|
@@ -16,14 +16,14 @@ dependencies:
|
|
|
16
16
|
requirements:
|
|
17
17
|
- - ">="
|
|
18
18
|
- !ruby/object:Gem::Version
|
|
19
|
-
version: '2
|
|
19
|
+
version: '4.2'
|
|
20
20
|
type: :runtime
|
|
21
21
|
prerelease: false
|
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
|
23
23
|
requirements:
|
|
24
24
|
- - ">="
|
|
25
25
|
- !ruby/object:Gem::Version
|
|
26
|
-
version: '2
|
|
26
|
+
version: '4.2'
|
|
27
27
|
- !ruby/object:Gem::Dependency
|
|
28
28
|
name: sinatra
|
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -39,33 +39,33 @@ dependencies:
|
|
|
39
39
|
- !ruby/object:Gem::Version
|
|
40
40
|
version: 1.2.6
|
|
41
41
|
- !ruby/object:Gem::Dependency
|
|
42
|
-
name:
|
|
42
|
+
name: rubystats
|
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
|
44
44
|
requirements:
|
|
45
45
|
- - ">="
|
|
46
46
|
- !ruby/object:Gem::Version
|
|
47
|
-
version: 0.
|
|
47
|
+
version: 0.3.0
|
|
48
48
|
type: :runtime
|
|
49
49
|
prerelease: false
|
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
|
51
51
|
requirements:
|
|
52
52
|
- - ">="
|
|
53
53
|
- !ruby/object:Gem::Version
|
|
54
|
-
version: 0.
|
|
54
|
+
version: 0.3.0
|
|
55
55
|
- !ruby/object:Gem::Dependency
|
|
56
56
|
name: bundler
|
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
|
58
58
|
requirements:
|
|
59
|
-
- - "
|
|
59
|
+
- - ">="
|
|
60
60
|
- !ruby/object:Gem::Version
|
|
61
|
-
version: '1.
|
|
61
|
+
version: '1.17'
|
|
62
62
|
type: :development
|
|
63
63
|
prerelease: false
|
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
|
65
65
|
requirements:
|
|
66
|
-
- - "
|
|
66
|
+
- - ">="
|
|
67
67
|
- !ruby/object:Gem::Version
|
|
68
|
-
version: '1.
|
|
68
|
+
version: '1.17'
|
|
69
69
|
- !ruby/object:Gem::Dependency
|
|
70
70
|
name: simplecov
|
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -86,28 +86,28 @@ dependencies:
|
|
|
86
86
|
requirements:
|
|
87
87
|
- - "~>"
|
|
88
88
|
- !ruby/object:Gem::Version
|
|
89
|
-
version: '
|
|
89
|
+
version: '1.1'
|
|
90
90
|
type: :development
|
|
91
91
|
prerelease: false
|
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
|
93
93
|
requirements:
|
|
94
94
|
- - "~>"
|
|
95
95
|
- !ruby/object:Gem::Version
|
|
96
|
-
version: '
|
|
96
|
+
version: '1.1'
|
|
97
97
|
- !ruby/object:Gem::Dependency
|
|
98
98
|
name: rake
|
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
|
100
100
|
requirements:
|
|
101
101
|
- - "~>"
|
|
102
102
|
- !ruby/object:Gem::Version
|
|
103
|
-
version: '
|
|
103
|
+
version: '13'
|
|
104
104
|
type: :development
|
|
105
105
|
prerelease: false
|
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
|
107
107
|
requirements:
|
|
108
108
|
- - "~>"
|
|
109
109
|
- !ruby/object:Gem::Version
|
|
110
|
-
version: '
|
|
110
|
+
version: '13'
|
|
111
111
|
- !ruby/object:Gem::Dependency
|
|
112
112
|
name: rspec
|
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -137,20 +137,20 @@ dependencies:
|
|
|
137
137
|
- !ruby/object:Gem::Version
|
|
138
138
|
version: '0.10'
|
|
139
139
|
- !ruby/object:Gem::Dependency
|
|
140
|
-
name:
|
|
140
|
+
name: rails
|
|
141
141
|
requirement: !ruby/object:Gem::Requirement
|
|
142
142
|
requirements:
|
|
143
|
-
- - "
|
|
143
|
+
- - ">="
|
|
144
144
|
- !ruby/object:Gem::Version
|
|
145
|
-
version: '0
|
|
145
|
+
version: '5.0'
|
|
146
146
|
type: :development
|
|
147
147
|
prerelease: false
|
|
148
148
|
version_requirements: !ruby/object:Gem::Requirement
|
|
149
149
|
requirements:
|
|
150
|
-
- - "
|
|
150
|
+
- - ">="
|
|
151
151
|
- !ruby/object:Gem::Version
|
|
152
|
-
version: '0
|
|
153
|
-
description:
|
|
152
|
+
version: '5.0'
|
|
153
|
+
description:
|
|
154
154
|
email:
|
|
155
155
|
- andrewnez@gmail.com
|
|
156
156
|
executables: []
|
|
@@ -161,9 +161,14 @@ files:
|
|
|
161
161
|
- ".csslintrc"
|
|
162
162
|
- ".eslintignore"
|
|
163
163
|
- ".eslintrc"
|
|
164
|
+
- ".github/FUNDING.yml"
|
|
165
|
+
- ".github/ISSUE_TEMPLATE/bug_report.md"
|
|
166
|
+
- ".github/dependabot.yml"
|
|
167
|
+
- ".github/workflows/ci.yml"
|
|
164
168
|
- ".gitignore"
|
|
169
|
+
- ".rspec"
|
|
165
170
|
- ".rubocop.yml"
|
|
166
|
-
- ".
|
|
171
|
+
- ".rubocop_todo.yml"
|
|
167
172
|
- Appraisals
|
|
168
173
|
- CHANGELOG.md
|
|
169
174
|
- CODE_OF_CONDUCT.md
|
|
@@ -172,15 +177,18 @@ files:
|
|
|
172
177
|
- LICENSE
|
|
173
178
|
- README.md
|
|
174
179
|
- Rakefile
|
|
175
|
-
- gemfiles/4.2.gemfile
|
|
176
180
|
- gemfiles/5.0.gemfile
|
|
177
181
|
- gemfiles/5.1.gemfile
|
|
178
182
|
- gemfiles/5.2.gemfile
|
|
183
|
+
- gemfiles/6.0.gemfile
|
|
184
|
+
- gemfiles/6.1.gemfile
|
|
185
|
+
- gemfiles/7.0.gemfile
|
|
179
186
|
- lib/split.rb
|
|
180
187
|
- lib/split/algorithms/block_randomization.rb
|
|
181
188
|
- lib/split/algorithms/weighted_sample.rb
|
|
182
189
|
- lib/split/algorithms/whiplash.rb
|
|
183
190
|
- lib/split/alternative.rb
|
|
191
|
+
- lib/split/cache.rb
|
|
184
192
|
- lib/split/combined_experiments_helper.rb
|
|
185
193
|
- lib/split/configuration.rb
|
|
186
194
|
- lib/split/dashboard.rb
|
|
@@ -220,6 +228,7 @@ files:
|
|
|
220
228
|
- spec/algorithms/weighted_sample_spec.rb
|
|
221
229
|
- spec/algorithms/whiplash_spec.rb
|
|
222
230
|
- spec/alternative_spec.rb
|
|
231
|
+
- spec/cache_spec.rb
|
|
223
232
|
- spec/combined_experiments_helper_spec.rb
|
|
224
233
|
- spec/configuration_spec.rb
|
|
225
234
|
- spec/dashboard/pagination_helpers_spec.rb
|
|
@@ -254,7 +263,7 @@ metadata:
|
|
|
254
263
|
bug_tracker_uri: https://github.com/splitrb/split/issues
|
|
255
264
|
wiki_uri: https://github.com/splitrb/split/wiki
|
|
256
265
|
mailing_list_uri: https://groups.google.com/d/forum/split-ruby
|
|
257
|
-
post_install_message:
|
|
266
|
+
post_install_message:
|
|
258
267
|
rdoc_options: []
|
|
259
268
|
require_paths:
|
|
260
269
|
- lib
|
|
@@ -262,16 +271,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
262
271
|
requirements:
|
|
263
272
|
- - ">="
|
|
264
273
|
- !ruby/object:Gem::Version
|
|
265
|
-
version:
|
|
274
|
+
version: 2.5.0
|
|
266
275
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
267
276
|
requirements:
|
|
268
277
|
- - ">="
|
|
269
278
|
- !ruby/object:Gem::Version
|
|
270
279
|
version: 2.0.0
|
|
271
280
|
requirements: []
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
signing_key:
|
|
281
|
+
rubygems_version: 3.2.27
|
|
282
|
+
signing_key:
|
|
275
283
|
specification_version: 4
|
|
276
284
|
summary: Rack based split testing framework
|
|
277
285
|
test_files:
|
|
@@ -279,6 +287,7 @@ test_files:
|
|
|
279
287
|
- spec/algorithms/weighted_sample_spec.rb
|
|
280
288
|
- spec/algorithms/whiplash_spec.rb
|
|
281
289
|
- spec/alternative_spec.rb
|
|
290
|
+
- spec/cache_spec.rb
|
|
282
291
|
- spec/combined_experiments_helper_spec.rb
|
|
283
292
|
- spec/configuration_spec.rb
|
|
284
293
|
- spec/dashboard/pagination_helpers_spec.rb
|
data/.travis.yml
DELETED
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
language: ruby
|
|
2
|
-
rvm:
|
|
3
|
-
- 1.9.3
|
|
4
|
-
- 2.0
|
|
5
|
-
- 2.1
|
|
6
|
-
- 2.2.0
|
|
7
|
-
- 2.2.2
|
|
8
|
-
- 2.4.3
|
|
9
|
-
- 2.5.1
|
|
10
|
-
|
|
11
|
-
gemfile:
|
|
12
|
-
- gemfiles/4.2.gemfile
|
|
13
|
-
- gemfiles/5.0.gemfile
|
|
14
|
-
- gemfiles/5.1.gemfile
|
|
15
|
-
- gemfiles/5.2.gemfile
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
matrix:
|
|
19
|
-
exclude:
|
|
20
|
-
- rvm: 1.9.3
|
|
21
|
-
gemfile: gemfiles/5.0.gemfile
|
|
22
|
-
- rvm: 1.9.3
|
|
23
|
-
gemfile: gemfiles/5.1.gemfile
|
|
24
|
-
- rvm: 2.0
|
|
25
|
-
gemfile: gemfiles/5.0.gemfile
|
|
26
|
-
- rvm: 2.0
|
|
27
|
-
gemfile: gemfiles/5.1.gemfile
|
|
28
|
-
- rvm: 2.1
|
|
29
|
-
gemfile: gemfiles/5.0.gemfile
|
|
30
|
-
- rvm: 2.1
|
|
31
|
-
gemfile: gemfiles/5.1.gemfile
|
|
32
|
-
- rvm: 2.2.0
|
|
33
|
-
gemfile: gemfiles/5.0.gemfile
|
|
34
|
-
- rvm: 2.2.0
|
|
35
|
-
gemfile: gemfiles/5.1.gemfile
|
|
36
|
-
- rvm: 1.9.3
|
|
37
|
-
gemfile: gemfiles/5.2.gemfile
|
|
38
|
-
- rvm: 2.0
|
|
39
|
-
gemfile: gemfiles/5.2.gemfile
|
|
40
|
-
- rvm: 2.1
|
|
41
|
-
gemfile: gemfiles/5.2.gemfile
|
|
42
|
-
- rvm: 2.2.0
|
|
43
|
-
gemfile: gemfiles/5.2.gemfile
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
before_install:
|
|
47
|
-
- gem update --system && gem install bundler
|
|
48
|
-
|
|
49
|
-
script:
|
|
50
|
-
- RAILS_ENV=test bundle exec rake spec && bundle exec codeclimate-test-reporter
|
|
51
|
-
|
|
52
|
-
cache: bundler
|
|
53
|
-
sudo: false
|