routemaster-drain 3.0.2 → 3.0.3
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/.circleci/config.yml +388 -0
- data/.circleci/config.yml.erb +70 -0
- data/.codeclimate.yml +1 -2
- data/.gitignore +2 -0
- data/.ruby-version +1 -1
- data/CHANGELOG.md +6 -0
- data/README.md +1 -1
- data/lib/routemaster/config.rb +1 -1
- data/lib/routemaster/drain.rb +1 -1
- data/spec/core_ext/forwardable_spec.rb +17 -0
- data/spec/routemaster/integration/api_client_spec.rb +25 -25
- data/spec/support/server.rb +2 -1
- metadata +8 -8
- data/.travis.yml +0 -20
- data/Gemfile.lock +0 -171
- data/gemfiles/rails_3.gemfile.lock +0 -240
- data/gemfiles/rails_4.gemfile.lock +0 -257
- data/gemfiles/rails_5.gemfile.lock +0 -260
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 20836569e8aa8a67a439df2f2704bf04fa68c49e
|
4
|
+
data.tar.gz: e016b966b80009d099b3064d0365c81dfad16c92
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1d760e39869afb8b337ba935a405efb724b939fffaec97ce584d43de38bba2e551c5bfce3620d06f51fd714505e15e34d53c4df012d29076e7db8e0d3b7d8e48
|
7
|
+
data.tar.gz: 86c704f1e0d04e23a854cb2025ca3a687d54eb30c0dcd40c816c57ebc3b506ad880ef37f9ed918226fe1c1afc9717e2dcc1621fea44034af3531010cddd7da31
|
@@ -0,0 +1,388 @@
|
|
1
|
+
# To update the build configuration, edit the "builds" array below and run:
|
2
|
+
# erb .circleci/config.yml.erb > .circleci/config.yml
|
3
|
+
|
4
|
+
version: 2
|
5
|
+
jobs:
|
6
|
+
|
7
|
+
build_2.2.7_rails_3:
|
8
|
+
docker:
|
9
|
+
- image: deliveroo/multiruby
|
10
|
+
- image: redis:3-alpine
|
11
|
+
steps:
|
12
|
+
- checkout
|
13
|
+
|
14
|
+
- run:
|
15
|
+
name: Select build variant (Ruby 2.2.7, rails_3)
|
16
|
+
command: |
|
17
|
+
rbenv local 2.2.7 ;
|
18
|
+
gem install bundler ;
|
19
|
+
bundle config --local gemfile $PWD/gemfiles/rails_3.gemfile
|
20
|
+
|
21
|
+
- restore_cache:
|
22
|
+
keys:
|
23
|
+
- v2-bundle-2.2.7-rails_3-{{ .Branch }}
|
24
|
+
- v2-bundle-2.2.7-rails_3
|
25
|
+
- v2-bundle-2.2.7
|
26
|
+
|
27
|
+
- run:
|
28
|
+
name: Install dependencies
|
29
|
+
command: |
|
30
|
+
bundle install --jobs=3 --retry=3 --path=$PWD/vendor/bundle
|
31
|
+
|
32
|
+
- run:
|
33
|
+
name: Run test suite
|
34
|
+
command: |
|
35
|
+
unset RACK_ENV &&
|
36
|
+
unset RAILS_ENV &&
|
37
|
+
bundle exec rspec
|
38
|
+
|
39
|
+
- save_cache:
|
40
|
+
key: v2-bundle-2.2.7-rails_3-{{ .Branch }}
|
41
|
+
paths:
|
42
|
+
- ~/project/vendor/bundle
|
43
|
+
- save_cache:
|
44
|
+
key: v2-bundle-2.2.7-rails_3
|
45
|
+
paths:
|
46
|
+
- ~/project/vendor/bundle
|
47
|
+
- save_cache:
|
48
|
+
key: v2-bundle-2.2.7
|
49
|
+
paths:
|
50
|
+
- ~/project/vendor/bundle
|
51
|
+
|
52
|
+
build_2.3.4_rails_3:
|
53
|
+
docker:
|
54
|
+
- image: deliveroo/multiruby
|
55
|
+
- image: redis:3-alpine
|
56
|
+
steps:
|
57
|
+
- checkout
|
58
|
+
|
59
|
+
- run:
|
60
|
+
name: Select build variant (Ruby 2.3.4, rails_3)
|
61
|
+
command: |
|
62
|
+
rbenv local 2.3.4 ;
|
63
|
+
gem install bundler ;
|
64
|
+
bundle config --local gemfile $PWD/gemfiles/rails_3.gemfile
|
65
|
+
|
66
|
+
- restore_cache:
|
67
|
+
keys:
|
68
|
+
- v2-bundle-2.3.4-rails_3-{{ .Branch }}
|
69
|
+
- v2-bundle-2.3.4-rails_3
|
70
|
+
- v2-bundle-2.3.4
|
71
|
+
|
72
|
+
- run:
|
73
|
+
name: Install dependencies
|
74
|
+
command: |
|
75
|
+
bundle install --jobs=3 --retry=3 --path=$PWD/vendor/bundle
|
76
|
+
|
77
|
+
- run:
|
78
|
+
name: Run test suite
|
79
|
+
command: |
|
80
|
+
unset RACK_ENV &&
|
81
|
+
unset RAILS_ENV &&
|
82
|
+
bundle exec rspec
|
83
|
+
|
84
|
+
- save_cache:
|
85
|
+
key: v2-bundle-2.3.4-rails_3-{{ .Branch }}
|
86
|
+
paths:
|
87
|
+
- ~/project/vendor/bundle
|
88
|
+
- save_cache:
|
89
|
+
key: v2-bundle-2.3.4-rails_3
|
90
|
+
paths:
|
91
|
+
- ~/project/vendor/bundle
|
92
|
+
- save_cache:
|
93
|
+
key: v2-bundle-2.3.4
|
94
|
+
paths:
|
95
|
+
- ~/project/vendor/bundle
|
96
|
+
|
97
|
+
build_2.2.7_rails_4:
|
98
|
+
docker:
|
99
|
+
- image: deliveroo/multiruby
|
100
|
+
- image: redis:3-alpine
|
101
|
+
steps:
|
102
|
+
- checkout
|
103
|
+
|
104
|
+
- run:
|
105
|
+
name: Select build variant (Ruby 2.2.7, rails_4)
|
106
|
+
command: |
|
107
|
+
rbenv local 2.2.7 ;
|
108
|
+
gem install bundler ;
|
109
|
+
bundle config --local gemfile $PWD/gemfiles/rails_4.gemfile
|
110
|
+
|
111
|
+
- restore_cache:
|
112
|
+
keys:
|
113
|
+
- v2-bundle-2.2.7-rails_4-{{ .Branch }}
|
114
|
+
- v2-bundle-2.2.7-rails_4
|
115
|
+
- v2-bundle-2.2.7
|
116
|
+
|
117
|
+
- run:
|
118
|
+
name: Install dependencies
|
119
|
+
command: |
|
120
|
+
bundle install --jobs=3 --retry=3 --path=$PWD/vendor/bundle
|
121
|
+
|
122
|
+
- run:
|
123
|
+
name: Run test suite
|
124
|
+
command: |
|
125
|
+
unset RACK_ENV &&
|
126
|
+
unset RAILS_ENV &&
|
127
|
+
bundle exec rspec
|
128
|
+
|
129
|
+
- save_cache:
|
130
|
+
key: v2-bundle-2.2.7-rails_4-{{ .Branch }}
|
131
|
+
paths:
|
132
|
+
- ~/project/vendor/bundle
|
133
|
+
- save_cache:
|
134
|
+
key: v2-bundle-2.2.7-rails_4
|
135
|
+
paths:
|
136
|
+
- ~/project/vendor/bundle
|
137
|
+
- save_cache:
|
138
|
+
key: v2-bundle-2.2.7
|
139
|
+
paths:
|
140
|
+
- ~/project/vendor/bundle
|
141
|
+
|
142
|
+
build_2.3.4_rails_4:
|
143
|
+
docker:
|
144
|
+
- image: deliveroo/multiruby
|
145
|
+
- image: redis:3-alpine
|
146
|
+
steps:
|
147
|
+
- checkout
|
148
|
+
|
149
|
+
- run:
|
150
|
+
name: Select build variant (Ruby 2.3.4, rails_4)
|
151
|
+
command: |
|
152
|
+
rbenv local 2.3.4 ;
|
153
|
+
gem install bundler ;
|
154
|
+
bundle config --local gemfile $PWD/gemfiles/rails_4.gemfile
|
155
|
+
|
156
|
+
- restore_cache:
|
157
|
+
keys:
|
158
|
+
- v2-bundle-2.3.4-rails_4-{{ .Branch }}
|
159
|
+
- v2-bundle-2.3.4-rails_4
|
160
|
+
- v2-bundle-2.3.4
|
161
|
+
|
162
|
+
- run:
|
163
|
+
name: Install dependencies
|
164
|
+
command: |
|
165
|
+
bundle install --jobs=3 --retry=3 --path=$PWD/vendor/bundle
|
166
|
+
|
167
|
+
- run:
|
168
|
+
name: Run test suite
|
169
|
+
command: |
|
170
|
+
unset RACK_ENV &&
|
171
|
+
unset RAILS_ENV &&
|
172
|
+
bundle exec rspec
|
173
|
+
|
174
|
+
- save_cache:
|
175
|
+
key: v2-bundle-2.3.4-rails_4-{{ .Branch }}
|
176
|
+
paths:
|
177
|
+
- ~/project/vendor/bundle
|
178
|
+
- save_cache:
|
179
|
+
key: v2-bundle-2.3.4-rails_4
|
180
|
+
paths:
|
181
|
+
- ~/project/vendor/bundle
|
182
|
+
- save_cache:
|
183
|
+
key: v2-bundle-2.3.4
|
184
|
+
paths:
|
185
|
+
- ~/project/vendor/bundle
|
186
|
+
|
187
|
+
build_2.4.1_rails_4:
|
188
|
+
docker:
|
189
|
+
- image: deliveroo/multiruby
|
190
|
+
- image: redis:3-alpine
|
191
|
+
steps:
|
192
|
+
- checkout
|
193
|
+
|
194
|
+
- run:
|
195
|
+
name: Select build variant (Ruby 2.4.1, rails_4)
|
196
|
+
command: |
|
197
|
+
rbenv local 2.4.1 ;
|
198
|
+
gem install bundler ;
|
199
|
+
bundle config --local gemfile $PWD/gemfiles/rails_4.gemfile
|
200
|
+
|
201
|
+
- restore_cache:
|
202
|
+
keys:
|
203
|
+
- v2-bundle-2.4.1-rails_4-{{ .Branch }}
|
204
|
+
- v2-bundle-2.4.1-rails_4
|
205
|
+
- v2-bundle-2.4.1
|
206
|
+
|
207
|
+
- run:
|
208
|
+
name: Install dependencies
|
209
|
+
command: |
|
210
|
+
bundle install --jobs=3 --retry=3 --path=$PWD/vendor/bundle
|
211
|
+
|
212
|
+
- run:
|
213
|
+
name: Run test suite
|
214
|
+
command: |
|
215
|
+
unset RACK_ENV &&
|
216
|
+
unset RAILS_ENV &&
|
217
|
+
bundle exec rspec
|
218
|
+
|
219
|
+
- save_cache:
|
220
|
+
key: v2-bundle-2.4.1-rails_4-{{ .Branch }}
|
221
|
+
paths:
|
222
|
+
- ~/project/vendor/bundle
|
223
|
+
- save_cache:
|
224
|
+
key: v2-bundle-2.4.1-rails_4
|
225
|
+
paths:
|
226
|
+
- ~/project/vendor/bundle
|
227
|
+
- save_cache:
|
228
|
+
key: v2-bundle-2.4.1
|
229
|
+
paths:
|
230
|
+
- ~/project/vendor/bundle
|
231
|
+
|
232
|
+
build_2.2.7_rails_5:
|
233
|
+
docker:
|
234
|
+
- image: deliveroo/multiruby
|
235
|
+
- image: redis:3-alpine
|
236
|
+
steps:
|
237
|
+
- checkout
|
238
|
+
|
239
|
+
- run:
|
240
|
+
name: Select build variant (Ruby 2.2.7, rails_5)
|
241
|
+
command: |
|
242
|
+
rbenv local 2.2.7 ;
|
243
|
+
gem install bundler ;
|
244
|
+
bundle config --local gemfile $PWD/gemfiles/rails_5.gemfile
|
245
|
+
|
246
|
+
- restore_cache:
|
247
|
+
keys:
|
248
|
+
- v2-bundle-2.2.7-rails_5-{{ .Branch }}
|
249
|
+
- v2-bundle-2.2.7-rails_5
|
250
|
+
- v2-bundle-2.2.7
|
251
|
+
|
252
|
+
- run:
|
253
|
+
name: Install dependencies
|
254
|
+
command: |
|
255
|
+
bundle install --jobs=3 --retry=3 --path=$PWD/vendor/bundle
|
256
|
+
|
257
|
+
- run:
|
258
|
+
name: Run test suite
|
259
|
+
command: |
|
260
|
+
unset RACK_ENV &&
|
261
|
+
unset RAILS_ENV &&
|
262
|
+
bundle exec rspec
|
263
|
+
|
264
|
+
- save_cache:
|
265
|
+
key: v2-bundle-2.2.7-rails_5-{{ .Branch }}
|
266
|
+
paths:
|
267
|
+
- ~/project/vendor/bundle
|
268
|
+
- save_cache:
|
269
|
+
key: v2-bundle-2.2.7-rails_5
|
270
|
+
paths:
|
271
|
+
- ~/project/vendor/bundle
|
272
|
+
- save_cache:
|
273
|
+
key: v2-bundle-2.2.7
|
274
|
+
paths:
|
275
|
+
- ~/project/vendor/bundle
|
276
|
+
|
277
|
+
build_2.3.4_rails_5:
|
278
|
+
docker:
|
279
|
+
- image: deliveroo/multiruby
|
280
|
+
- image: redis:3-alpine
|
281
|
+
steps:
|
282
|
+
- checkout
|
283
|
+
|
284
|
+
- run:
|
285
|
+
name: Select build variant (Ruby 2.3.4, rails_5)
|
286
|
+
command: |
|
287
|
+
rbenv local 2.3.4 ;
|
288
|
+
gem install bundler ;
|
289
|
+
bundle config --local gemfile $PWD/gemfiles/rails_5.gemfile
|
290
|
+
|
291
|
+
- restore_cache:
|
292
|
+
keys:
|
293
|
+
- v2-bundle-2.3.4-rails_5-{{ .Branch }}
|
294
|
+
- v2-bundle-2.3.4-rails_5
|
295
|
+
- v2-bundle-2.3.4
|
296
|
+
|
297
|
+
- run:
|
298
|
+
name: Install dependencies
|
299
|
+
command: |
|
300
|
+
bundle install --jobs=3 --retry=3 --path=$PWD/vendor/bundle
|
301
|
+
|
302
|
+
- run:
|
303
|
+
name: Run test suite
|
304
|
+
command: |
|
305
|
+
unset RACK_ENV &&
|
306
|
+
unset RAILS_ENV &&
|
307
|
+
bundle exec rspec
|
308
|
+
|
309
|
+
- save_cache:
|
310
|
+
key: v2-bundle-2.3.4-rails_5-{{ .Branch }}
|
311
|
+
paths:
|
312
|
+
- ~/project/vendor/bundle
|
313
|
+
- save_cache:
|
314
|
+
key: v2-bundle-2.3.4-rails_5
|
315
|
+
paths:
|
316
|
+
- ~/project/vendor/bundle
|
317
|
+
- save_cache:
|
318
|
+
key: v2-bundle-2.3.4
|
319
|
+
paths:
|
320
|
+
- ~/project/vendor/bundle
|
321
|
+
|
322
|
+
build_2.4.1_rails_5:
|
323
|
+
docker:
|
324
|
+
- image: deliveroo/multiruby
|
325
|
+
- image: redis:3-alpine
|
326
|
+
steps:
|
327
|
+
- checkout
|
328
|
+
|
329
|
+
- run:
|
330
|
+
name: Select build variant (Ruby 2.4.1, rails_5)
|
331
|
+
command: |
|
332
|
+
rbenv local 2.4.1 ;
|
333
|
+
gem install bundler ;
|
334
|
+
bundle config --local gemfile $PWD/gemfiles/rails_5.gemfile
|
335
|
+
|
336
|
+
- restore_cache:
|
337
|
+
keys:
|
338
|
+
- v2-bundle-2.4.1-rails_5-{{ .Branch }}
|
339
|
+
- v2-bundle-2.4.1-rails_5
|
340
|
+
- v2-bundle-2.4.1
|
341
|
+
|
342
|
+
- run:
|
343
|
+
name: Install dependencies
|
344
|
+
command: |
|
345
|
+
bundle install --jobs=3 --retry=3 --path=$PWD/vendor/bundle
|
346
|
+
|
347
|
+
- run:
|
348
|
+
name: Run test suite
|
349
|
+
command: |
|
350
|
+
unset RACK_ENV &&
|
351
|
+
unset RAILS_ENV &&
|
352
|
+
bundle exec rspec
|
353
|
+
|
354
|
+
- save_cache:
|
355
|
+
key: v2-bundle-2.4.1-rails_5-{{ .Branch }}
|
356
|
+
paths:
|
357
|
+
- ~/project/vendor/bundle
|
358
|
+
- save_cache:
|
359
|
+
key: v2-bundle-2.4.1-rails_5
|
360
|
+
paths:
|
361
|
+
- ~/project/vendor/bundle
|
362
|
+
- save_cache:
|
363
|
+
key: v2-bundle-2.4.1
|
364
|
+
paths:
|
365
|
+
- ~/project/vendor/bundle
|
366
|
+
|
367
|
+
|
368
|
+
workflows:
|
369
|
+
version: 2
|
370
|
+
test:
|
371
|
+
jobs:
|
372
|
+
|
373
|
+
- build_2.2.7_rails_3
|
374
|
+
|
375
|
+
- build_2.3.4_rails_3
|
376
|
+
|
377
|
+
- build_2.2.7_rails_4
|
378
|
+
|
379
|
+
- build_2.3.4_rails_4
|
380
|
+
|
381
|
+
- build_2.4.1_rails_4
|
382
|
+
|
383
|
+
- build_2.2.7_rails_5
|
384
|
+
|
385
|
+
- build_2.3.4_rails_5
|
386
|
+
|
387
|
+
- build_2.4.1_rails_5
|
388
|
+
|
@@ -0,0 +1,70 @@
|
|
1
|
+
# To update the build configuration, edit the "builds" array below and run:
|
2
|
+
# erb .circleci/config.yml.erb > .circleci/config.yml
|
3
|
+
<%
|
4
|
+
builds = [
|
5
|
+
['2.2.7', 'rails_3'],
|
6
|
+
['2.3.4', 'rails_3'],
|
7
|
+
['2.2.7', 'rails_4'],
|
8
|
+
['2.3.4', 'rails_4'],
|
9
|
+
['2.4.1', 'rails_4'],
|
10
|
+
['2.2.7', 'rails_5'],
|
11
|
+
['2.3.4', 'rails_5'],
|
12
|
+
['2.4.1', 'rails_5'],
|
13
|
+
]
|
14
|
+
%>
|
15
|
+
version: 2
|
16
|
+
jobs:
|
17
|
+
<% builds.each do |ruby,variant| %>
|
18
|
+
build_<%= ruby %>_<%= variant %>:
|
19
|
+
docker:
|
20
|
+
- image: deliveroo/multiruby
|
21
|
+
- image: redis:3-alpine
|
22
|
+
steps:
|
23
|
+
- checkout
|
24
|
+
|
25
|
+
- run:
|
26
|
+
name: Select build variant (Ruby <%= ruby %>, <%= variant %>)
|
27
|
+
command: |
|
28
|
+
rbenv local <%= ruby %> ;
|
29
|
+
gem install bundler ;
|
30
|
+
bundle config --local gemfile $PWD/gemfiles/<%= variant %>.gemfile
|
31
|
+
|
32
|
+
- restore_cache:
|
33
|
+
keys:
|
34
|
+
- v2-bundle-<%= ruby %>-<%= variant %>-{{ .Branch }}
|
35
|
+
- v2-bundle-<%= ruby %>-<%= variant %>
|
36
|
+
- v2-bundle-<%= ruby %>
|
37
|
+
|
38
|
+
- run:
|
39
|
+
name: Install dependencies
|
40
|
+
command: |
|
41
|
+
bundle install --jobs=3 --retry=3 --path=$PWD/vendor/bundle
|
42
|
+
|
43
|
+
- run:
|
44
|
+
name: Run test suite
|
45
|
+
command: |
|
46
|
+
unset RACK_ENV &&
|
47
|
+
unset RAILS_ENV &&
|
48
|
+
bundle exec rspec
|
49
|
+
|
50
|
+
- save_cache:
|
51
|
+
key: v2-bundle-<%= ruby %>-<%= variant %>-{{ .Branch }}
|
52
|
+
paths:
|
53
|
+
- ~/project/vendor/bundle
|
54
|
+
- save_cache:
|
55
|
+
key: v2-bundle-<%= ruby %>-<%= variant %>
|
56
|
+
paths:
|
57
|
+
- ~/project/vendor/bundle
|
58
|
+
- save_cache:
|
59
|
+
key: v2-bundle-<%= ruby %>
|
60
|
+
paths:
|
61
|
+
- ~/project/vendor/bundle
|
62
|
+
<% end %>
|
63
|
+
|
64
|
+
workflows:
|
65
|
+
version: 2
|
66
|
+
test:
|
67
|
+
jobs:
|
68
|
+
<% builds.each do |ruby,variant| %>
|
69
|
+
- build_<%= ruby %>_<%= variant %>
|
70
|
+
<% end %>
|