routemaster-drain 3.6.4 → 3.6.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 8751ba11d3ecc6376887aca2600adf850839d0ab
4
- data.tar.gz: 3bcbd8c7cdeefdbe07deb264f196a987e7adeda1
2
+ SHA256:
3
+ metadata.gz: 574a92a97a0ae12a367d2aa0021852c9d721f8a542754eb6d038441cf411c38a
4
+ data.tar.gz: 74fc0e9be7b142971eb6d800e4e77faf88a9a00303490dfb0f2405cd0174f1c6
5
5
  SHA512:
6
- metadata.gz: d30f96275f9ed9785088da2e7d231e7a9f79073bca0f427f796e7a8cc0c42905bd5e1e1d4ef6e97a00f9f665d9433e59d2ee7e04c7e3577a693fb13c4a994cde
7
- data.tar.gz: e82794bf28ddfc30c60a489020a3d14f652bbbc6e6c476015863cd3a067a6282e9e541dee123e39b159d72296e1d4642a3ef53a74f9cded123d5461676eb9eb0
6
+ metadata.gz: 599155767c3d938d91c68e81e773b5940a35960fbf9c42ce802a8700c1a049391960afacbe1e4b22945ef199df19569a2627fd68e9bd899fa35d3ddaac78b5d6
7
+ data.tar.gz: aabdfac82f389474c62856923bbcc87633a44aca389f3bb1ac8e120225f77946c36972d25b46e1ed7b8b40891d8c28f8fddffbfac7e26d72ea4e5a71ce0a9612
@@ -4,51 +4,6 @@
4
4
  version: 2
5
5
  jobs:
6
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
7
  build_2.3.4_rails_3:
53
8
  docker:
54
9
  - image: deliveroo/multiruby
@@ -60,7 +15,7 @@ jobs:
60
15
  name: Select build variant (Ruby 2.3.4, rails_3)
61
16
  command: |
62
17
  rbenv local 2.3.4 ;
63
- gem install bundler ;
18
+ gem install bundler -v '~> 1.17' ;
64
19
  bundle config --local gemfile $PWD/gemfiles/rails_3.gemfile
65
20
 
66
21
  - restore_cache:
@@ -94,51 +49,6 @@ jobs:
94
49
  paths:
95
50
  - ~/project/vendor/bundle
96
51
 
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
52
  build_2.3.4_rails_4:
143
53
  docker:
144
54
  - image: deliveroo/multiruby
@@ -150,7 +60,7 @@ jobs:
150
60
  name: Select build variant (Ruby 2.3.4, rails_4)
151
61
  command: |
152
62
  rbenv local 2.3.4 ;
153
- gem install bundler ;
63
+ gem install bundler -v '~> 1.17' ;
154
64
  bundle config --local gemfile $PWD/gemfiles/rails_4.gemfile
155
65
 
156
66
  - restore_cache:
@@ -195,7 +105,7 @@ jobs:
195
105
  name: Select build variant (Ruby 2.4.1, rails_4)
196
106
  command: |
197
107
  rbenv local 2.4.1 ;
198
- gem install bundler ;
108
+ gem install bundler -v '~> 1.17' ;
199
109
  bundle config --local gemfile $PWD/gemfiles/rails_4.gemfile
200
110
 
201
111
  - restore_cache:
@@ -229,51 +139,6 @@ jobs:
229
139
  paths:
230
140
  - ~/project/vendor/bundle
231
141
 
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
142
  build_2.3.4_rails_5:
278
143
  docker:
279
144
  - image: deliveroo/multiruby
@@ -285,7 +150,7 @@ jobs:
285
150
  name: Select build variant (Ruby 2.3.4, rails_5)
286
151
  command: |
287
152
  rbenv local 2.3.4 ;
288
- gem install bundler ;
153
+ gem install bundler -v '~> 1.17' ;
289
154
  bundle config --local gemfile $PWD/gemfiles/rails_5.gemfile
290
155
 
291
156
  - restore_cache:
@@ -330,7 +195,7 @@ jobs:
330
195
  name: Select build variant (Ruby 2.4.1, rails_5)
331
196
  command: |
332
197
  rbenv local 2.4.1 ;
333
- gem install bundler ;
198
+ gem install bundler -v '~> 1.17' ;
334
199
  bundle config --local gemfile $PWD/gemfiles/rails_5.gemfile
335
200
 
336
201
  - restore_cache:
@@ -370,18 +235,12 @@ workflows:
370
235
  test:
371
236
  jobs:
372
237
 
373
- - build_2.2.7_rails_3
374
-
375
238
  - build_2.3.4_rails_3
376
239
 
377
- - build_2.2.7_rails_4
378
-
379
240
  - build_2.3.4_rails_4
380
241
 
381
242
  - build_2.4.1_rails_4
382
243
 
383
- - build_2.2.7_rails_5
384
-
385
244
  - build_2.3.4_rails_5
386
245
 
387
246
  - build_2.4.1_rails_5
@@ -2,14 +2,11 @@
2
2
  # erb .circleci/config.yml.erb > .circleci/config.yml
3
3
  <%
4
4
  builds = [
5
- ['2.2.7', 'rails_3'],
6
5
  ['2.3.4', 'rails_3'],
7
- ['2.2.7', 'rails_4'],
8
6
  ['2.3.4', 'rails_4'],
9
7
  ['2.4.1', 'rails_4'],
10
- ['2.2.7', 'rails_5'],
11
8
  ['2.3.4', 'rails_5'],
12
- ['2.4.1', 'rails_5'],
9
+ ['2.4.1', 'rails_5']
13
10
  ]
14
11
  %>
15
12
  version: 2
@@ -26,7 +23,7 @@ jobs:
26
23
  name: Select build variant (Ruby <%= ruby %>, <%= variant %>)
27
24
  command: |
28
25
  rbenv local <%= ruby %> ;
29
- gem install bundler ;
26
+ gem install bundler -v '~> 1.17' ;
30
27
  bundle config --local gemfile $PWD/gemfiles/<%= variant %>.gemfile
31
28
 
32
29
  - restore_cache:
@@ -2,6 +2,16 @@
2
2
 
3
3
  _A description of your awesome changes here!_
4
4
 
5
+ ### 3.6.5 (2019-02-08)
6
+
7
+ Bug fix:
8
+
9
+ - Make sure Faraday adapter is loaded after all middleware for ApiClient
10
+
11
+ Drop:
12
+
13
+ - Builds for Ruby 2.2
14
+
5
15
  ### 3.6.4 (2018-10-23)
6
16
 
7
17
  Features:
data/README.md CHANGED
@@ -139,6 +139,13 @@ map '/events' do
139
139
  end
140
140
  ```
141
141
 
142
+ You can use the `.subscribe` method multiple times to have your event batches
143
+ go through multiple listeners. But bear in the mind any performance cost of
144
+ multiple places of processing the event batches. For example, instead of having
145
+ multiple listener classes that iterate over the events in a batch, you can have
146
+ a single listener class that iterates over the batch only once and reacts to the
147
+ batch's events accordingly.
148
+
142
149
  This relies on the excellent event bus from the [wisper
143
150
  gem](https://github.com/krisleech/wisper#wisper).
144
151
 
@@ -140,12 +140,13 @@ module Routemaster
140
140
  f.use Routemaster::Middleware::ResponseCaching, listener: @listener
141
141
  f.use Routemaster::Middleware::Metrics, client: @metrics_client, source_peer: @source_peer
142
142
  f.use Routemaster::Middleware::ErrorHandling
143
- f.adapter :typhoeus
144
143
 
145
144
  @middlewares.each do |middleware|
146
145
  f.use(*middleware)
147
146
  end
148
147
 
148
+ f.adapter :typhoeus
149
+
149
150
  f.options.timeout = ENV.fetch('ROUTEMASTER_CACHE_TIMEOUT', 1).to_f
150
151
  f.options.open_timeout = ENV.fetch('ROUTEMASTER_CACHE_TIMEOUT', 1).to_f
151
152
  f.ssl.verify = ENV.fetch('ROUTEMASTER_CACHE_VERIFY_SSL', 'false') == 'true'
@@ -1,5 +1,5 @@
1
1
  module Routemaster
2
2
  module Drain
3
- VERSION = '3.6.4'.freeze
3
+ VERSION = '3.6.5'.freeze
4
4
  end
5
5
  end
@@ -53,7 +53,7 @@ describe Routemaster::APIClient do
53
53
  subject.status
54
54
  assert_requested(:get, /example/) do |req|
55
55
  expect(req.headers.keys).to include('X-Custom-Header')
56
- expect(req.headers['User-Agent']).to eql "RoutemasterDrain - Faraday v0.15.3"
56
+ expect(req.headers['User-Agent']).to eql "RoutemasterDrain - Faraday v#{Faraday::VERSION}"
57
57
  end
58
58
  end
59
59
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: routemaster-drain
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.6.4
4
+ version: 3.6.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Julien Letessier
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-10-23 00:00:00.000000000 Z
11
+ date: 2019-02-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable
@@ -286,8 +286,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
286
286
  - !ruby/object:Gem::Version
287
287
  version: '0'
288
288
  requirements: []
289
- rubyforge_project:
290
- rubygems_version: 2.6.11
289
+ rubygems_version: 3.0.1
291
290
  signing_key:
292
291
  specification_version: 4
293
292
  summary: Event receiver for the Routemaster bus