alephant-broker 3.16.0 → 3.16.1

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
2
  SHA1:
3
- metadata.gz: 439cfba9dae34a1931b2bb86e829c3f6da30f268
4
- data.tar.gz: a025262a57c2ad7d236456002f629aa0d64e0533
3
+ metadata.gz: 3b9c750117d7356f694147f9234391b4393923f0
4
+ data.tar.gz: d2ca2aacaeb5b4d28ab832a81259d68f8e31e426
5
5
  SHA512:
6
- metadata.gz: 5d0de2d1a911fda4e049e8f4a160ae3be58707b5edc9d9aecda62ccd4bd020287528b0065b2990e899cf6ee88467f88688f4a03567b577a40af3cc3b77fc615c
7
- data.tar.gz: 9a0b598a6a517e7f2f4dc9146c7b197de5daa8d8c55238c54ffdaf650adf293152592bfe963d83a74d4857d1ff8591ef91339979d04e5d782884cdb304ca0030
6
+ metadata.gz: 84f3c2d18854098a683de14c2f13c17ce9c4b04a1806bdf5fd9333b37a0ec10ab288efa53eccc6d2facd8fb89b5486cdb4e5d4af67134db9dd81373681172ee1
7
+ data.tar.gz: 46cc25d4a68bd2567c23d1f81b1f42baeee5c3b5bcf0295fce8a6ed1663a0f9996798360e0b98ace04c1617217e5be8337ee966776d47c6b8460a499208d9144
@@ -63,6 +63,7 @@ module Alephant
63
63
 
64
64
  def add_revalidating_headers(data)
65
65
  data[:headers] ||= {}
66
+ data[:headers]['Access-Control-Expose-Headers'] = 'broker-cache'
66
67
  data[:headers]['broker-cache'] = 'revalidating'
67
68
  end
68
69
 
@@ -1,5 +1,5 @@
1
1
  module Alephant
2
2
  module Broker
3
- VERSION = "3.16.0".freeze
3
+ VERSION = "3.16.1".freeze
4
4
  end
5
5
  end
@@ -31,6 +31,7 @@ RSpec.describe Alephant::Broker::LoadStrategy::Revalidate::Strategy do
31
31
  let(:expected_revalidating_content) do
32
32
  revalidating_content = expected_content.clone
33
33
  revalidating_content[:headers] = {
34
+ 'Access-Control-Expose-Headers' => 'broker-cache',
34
35
  'broker-cache' => 'revalidating'
35
36
  }
36
37
  revalidating_content
@@ -106,6 +107,10 @@ RSpec.describe Alephant::Broker::LoadStrategy::Revalidate::Strategy do
106
107
  expect(subject.load(component_meta)).to eq(expected_revalidating_content)
107
108
  end
108
109
 
110
+ it 'should expose the broker-cache header to AJAX clients' do
111
+ expect(subject.load(component_meta)[:headers]['Access-Control-Expose-Headers']).to eq('broker-cache')
112
+ end
113
+
109
114
  it 'should contain a revalidating reponse header' do
110
115
  expect(subject.load(component_meta)[:headers]['broker-cache']).to eq('revalidating')
111
116
  end
metadata CHANGED
@@ -1,323 +1,323 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: alephant-broker
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.16.0
4
+ version: 3.16.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - BBC News
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-09-13 00:00:00.000000000 Z
11
+ date: 2016-09-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: rspec
15
- version_requirements: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - '>='
18
- - !ruby/object:Gem::Version
19
- version: '0'
20
14
  requirement: !ruby/object:Gem::Requirement
21
15
  requirements:
22
16
  - - '>='
23
17
  - !ruby/object:Gem::Version
24
18
  version: '0'
19
+ name: rspec
25
20
  prerelease: false
26
21
  type: :development
27
- - !ruby/object:Gem::Dependency
28
- name: rspec-nc
29
22
  version_requirements: !ruby/object:Gem::Requirement
30
23
  requirements:
31
24
  - - '>='
32
25
  - !ruby/object:Gem::Version
33
26
  version: '0'
27
+ - !ruby/object:Gem::Dependency
34
28
  requirement: !ruby/object:Gem::Requirement
35
29
  requirements:
36
30
  - - '>='
37
31
  - !ruby/object:Gem::Version
38
32
  version: '0'
33
+ name: rspec-nc
39
34
  prerelease: false
40
35
  type: :development
41
- - !ruby/object:Gem::Dependency
42
- name: guard
43
36
  version_requirements: !ruby/object:Gem::Requirement
44
37
  requirements:
45
38
  - - '>='
46
39
  - !ruby/object:Gem::Version
47
40
  version: '0'
41
+ - !ruby/object:Gem::Dependency
48
42
  requirement: !ruby/object:Gem::Requirement
49
43
  requirements:
50
44
  - - '>='
51
45
  - !ruby/object:Gem::Version
52
46
  version: '0'
47
+ name: guard
53
48
  prerelease: false
54
49
  type: :development
55
- - !ruby/object:Gem::Dependency
56
- name: guard-rspec
57
50
  version_requirements: !ruby/object:Gem::Requirement
58
51
  requirements:
59
52
  - - '>='
60
53
  - !ruby/object:Gem::Version
61
54
  version: '0'
55
+ - !ruby/object:Gem::Dependency
62
56
  requirement: !ruby/object:Gem::Requirement
63
57
  requirements:
64
58
  - - '>='
65
59
  - !ruby/object:Gem::Version
66
60
  version: '0'
61
+ name: guard-rspec
67
62
  prerelease: false
68
63
  type: :development
69
- - !ruby/object:Gem::Dependency
70
- name: pry
71
64
  version_requirements: !ruby/object:Gem::Requirement
72
65
  requirements:
73
66
  - - '>='
74
67
  - !ruby/object:Gem::Version
75
68
  version: '0'
69
+ - !ruby/object:Gem::Dependency
76
70
  requirement: !ruby/object:Gem::Requirement
77
71
  requirements:
78
72
  - - '>='
79
73
  - !ruby/object:Gem::Version
80
74
  version: '0'
75
+ name: pry
81
76
  prerelease: false
82
77
  type: :development
83
- - !ruby/object:Gem::Dependency
84
- name: pry-remote
85
78
  version_requirements: !ruby/object:Gem::Requirement
86
79
  requirements:
87
80
  - - '>='
88
81
  - !ruby/object:Gem::Version
89
82
  version: '0'
83
+ - !ruby/object:Gem::Dependency
90
84
  requirement: !ruby/object:Gem::Requirement
91
85
  requirements:
92
86
  - - '>='
93
87
  - !ruby/object:Gem::Version
94
88
  version: '0'
89
+ name: pry-remote
95
90
  prerelease: false
96
91
  type: :development
97
- - !ruby/object:Gem::Dependency
98
- name: pry-nav
99
92
  version_requirements: !ruby/object:Gem::Requirement
100
93
  requirements:
101
94
  - - '>='
102
95
  - !ruby/object:Gem::Version
103
96
  version: '0'
97
+ - !ruby/object:Gem::Dependency
104
98
  requirement: !ruby/object:Gem::Requirement
105
99
  requirements:
106
100
  - - '>='
107
101
  - !ruby/object:Gem::Version
108
102
  version: '0'
103
+ name: pry-nav
109
104
  prerelease: false
110
105
  type: :development
111
- - !ruby/object:Gem::Dependency
112
- name: rake-rspec
113
106
  version_requirements: !ruby/object:Gem::Requirement
114
107
  requirements:
115
108
  - - '>='
116
109
  - !ruby/object:Gem::Version
117
- version: 0.0.2
110
+ version: '0'
111
+ - !ruby/object:Gem::Dependency
118
112
  requirement: !ruby/object:Gem::Requirement
119
113
  requirements:
120
114
  - - '>='
121
115
  - !ruby/object:Gem::Version
122
116
  version: 0.0.2
117
+ name: rake-rspec
123
118
  prerelease: false
124
119
  type: :development
125
- - !ruby/object:Gem::Dependency
126
- name: bundler
127
120
  version_requirements: !ruby/object:Gem::Requirement
128
121
  requirements:
129
- - - ~>
122
+ - - '>='
130
123
  - !ruby/object:Gem::Version
131
- version: '1.5'
124
+ version: 0.0.2
125
+ - !ruby/object:Gem::Dependency
132
126
  requirement: !ruby/object:Gem::Requirement
133
127
  requirements:
134
128
  - - ~>
135
129
  - !ruby/object:Gem::Version
136
130
  version: '1.5'
131
+ name: bundler
137
132
  prerelease: false
138
133
  type: :development
139
- - !ruby/object:Gem::Dependency
140
- name: rake
141
134
  version_requirements: !ruby/object:Gem::Requirement
142
135
  requirements:
143
- - - '>='
136
+ - - ~>
144
137
  - !ruby/object:Gem::Version
145
- version: '0'
138
+ version: '1.5'
139
+ - !ruby/object:Gem::Dependency
146
140
  requirement: !ruby/object:Gem::Requirement
147
141
  requirements:
148
142
  - - '>='
149
143
  - !ruby/object:Gem::Version
150
144
  version: '0'
145
+ name: rake
151
146
  prerelease: false
152
147
  type: :development
153
- - !ruby/object:Gem::Dependency
154
- name: rack
155
148
  version_requirements: !ruby/object:Gem::Requirement
156
149
  requirements:
157
- - - <
150
+ - - '>='
158
151
  - !ruby/object:Gem::Version
159
- version: 2.0.0
152
+ version: '0'
153
+ - !ruby/object:Gem::Dependency
160
154
  requirement: !ruby/object:Gem::Requirement
161
155
  requirements:
162
156
  - - <
163
157
  - !ruby/object:Gem::Version
164
158
  version: 2.0.0
159
+ name: rack
165
160
  prerelease: false
166
161
  type: :development
167
- - !ruby/object:Gem::Dependency
168
- name: rack-test
169
162
  version_requirements: !ruby/object:Gem::Requirement
170
163
  requirements:
171
- - - '>='
164
+ - - <
172
165
  - !ruby/object:Gem::Version
173
- version: '0'
166
+ version: 2.0.0
167
+ - !ruby/object:Gem::Dependency
174
168
  requirement: !ruby/object:Gem::Requirement
175
169
  requirements:
176
170
  - - '>='
177
171
  - !ruby/object:Gem::Version
178
172
  version: '0'
173
+ name: rack-test
179
174
  prerelease: false
180
175
  type: :development
181
- - !ruby/object:Gem::Dependency
182
- name: simplecov
183
176
  version_requirements: !ruby/object:Gem::Requirement
184
177
  requirements:
185
178
  - - '>='
186
179
  - !ruby/object:Gem::Version
187
180
  version: '0'
181
+ - !ruby/object:Gem::Dependency
188
182
  requirement: !ruby/object:Gem::Requirement
189
183
  requirements:
190
184
  - - '>='
191
185
  - !ruby/object:Gem::Version
192
186
  version: '0'
187
+ name: simplecov
193
188
  prerelease: false
194
189
  type: :development
195
- - !ruby/object:Gem::Dependency
196
- name: timecop
197
190
  version_requirements: !ruby/object:Gem::Requirement
198
191
  requirements:
199
192
  - - '>='
200
193
  - !ruby/object:Gem::Version
201
194
  version: '0'
195
+ - !ruby/object:Gem::Dependency
202
196
  requirement: !ruby/object:Gem::Requirement
203
197
  requirements:
204
198
  - - '>='
205
199
  - !ruby/object:Gem::Version
206
200
  version: '0'
201
+ name: timecop
207
202
  prerelease: false
208
203
  type: :development
209
- - !ruby/object:Gem::Dependency
210
- name: alephant-lookup
211
204
  version_requirements: !ruby/object:Gem::Requirement
212
205
  requirements:
213
206
  - - '>='
214
207
  - !ruby/object:Gem::Version
215
- version: 2.0.2
208
+ version: '0'
209
+ - !ruby/object:Gem::Dependency
216
210
  requirement: !ruby/object:Gem::Requirement
217
211
  requirements:
218
212
  - - '>='
219
213
  - !ruby/object:Gem::Version
220
214
  version: 2.0.2
215
+ name: alephant-lookup
221
216
  prerelease: false
222
217
  type: :runtime
223
- - !ruby/object:Gem::Dependency
224
- name: alephant-storage
225
218
  version_requirements: !ruby/object:Gem::Requirement
226
219
  requirements:
227
220
  - - '>='
228
221
  - !ruby/object:Gem::Version
229
- version: 1.1.1
222
+ version: 2.0.2
223
+ - !ruby/object:Gem::Dependency
230
224
  requirement: !ruby/object:Gem::Requirement
231
225
  requirements:
232
226
  - - '>='
233
227
  - !ruby/object:Gem::Version
234
228
  version: 1.1.1
229
+ name: alephant-storage
235
230
  prerelease: false
236
231
  type: :runtime
237
- - !ruby/object:Gem::Dependency
238
- name: alephant-logger
239
232
  version_requirements: !ruby/object:Gem::Requirement
240
233
  requirements:
241
- - - '='
234
+ - - '>='
242
235
  - !ruby/object:Gem::Version
243
- version: 1.2.0
236
+ version: 1.1.1
237
+ - !ruby/object:Gem::Dependency
244
238
  requirement: !ruby/object:Gem::Requirement
245
239
  requirements:
246
240
  - - '='
247
241
  - !ruby/object:Gem::Version
248
242
  version: 1.2.0
243
+ name: alephant-logger
249
244
  prerelease: false
250
245
  type: :runtime
251
- - !ruby/object:Gem::Dependency
252
- name: alephant-sequencer
253
246
  version_requirements: !ruby/object:Gem::Requirement
254
247
  requirements:
255
- - - '>='
248
+ - - '='
256
249
  - !ruby/object:Gem::Version
257
- version: '0'
250
+ version: 1.2.0
251
+ - !ruby/object:Gem::Dependency
258
252
  requirement: !ruby/object:Gem::Requirement
259
253
  requirements:
260
254
  - - '>='
261
255
  - !ruby/object:Gem::Version
262
256
  version: '0'
257
+ name: alephant-sequencer
263
258
  prerelease: false
264
259
  type: :runtime
265
- - !ruby/object:Gem::Dependency
266
- name: dalli-elasticache
267
260
  version_requirements: !ruby/object:Gem::Requirement
268
261
  requirements:
269
262
  - - '>='
270
263
  - !ruby/object:Gem::Version
271
264
  version: '0'
265
+ - !ruby/object:Gem::Dependency
272
266
  requirement: !ruby/object:Gem::Requirement
273
267
  requirements:
274
268
  - - '>='
275
269
  - !ruby/object:Gem::Version
276
270
  version: '0'
271
+ name: dalli-elasticache
277
272
  prerelease: false
278
273
  type: :runtime
279
- - !ruby/object:Gem::Dependency
280
- name: faraday
281
274
  version_requirements: !ruby/object:Gem::Requirement
282
275
  requirements:
283
276
  - - '>='
284
277
  - !ruby/object:Gem::Version
285
278
  version: '0'
279
+ - !ruby/object:Gem::Dependency
286
280
  requirement: !ruby/object:Gem::Requirement
287
281
  requirements:
288
282
  - - '>='
289
283
  - !ruby/object:Gem::Version
290
284
  version: '0'
285
+ name: faraday
291
286
  prerelease: false
292
287
  type: :runtime
293
- - !ruby/object:Gem::Dependency
294
- name: crimp
295
288
  version_requirements: !ruby/object:Gem::Requirement
296
289
  requirements:
297
290
  - - '>='
298
291
  - !ruby/object:Gem::Version
299
292
  version: '0'
293
+ - !ruby/object:Gem::Dependency
300
294
  requirement: !ruby/object:Gem::Requirement
301
295
  requirements:
302
296
  - - '>='
303
297
  - !ruby/object:Gem::Version
304
298
  version: '0'
299
+ name: crimp
305
300
  prerelease: false
306
301
  type: :runtime
307
- - !ruby/object:Gem::Dependency
308
- name: listen
309
302
  version_requirements: !ruby/object:Gem::Requirement
310
303
  requirements:
311
- - - ~>
304
+ - - '>='
312
305
  - !ruby/object:Gem::Version
313
- version: 3.0.0
306
+ version: '0'
307
+ - !ruby/object:Gem::Dependency
314
308
  requirement: !ruby/object:Gem::Requirement
315
309
  requirements:
316
310
  - - ~>
317
311
  - !ruby/object:Gem::Version
318
312
  version: 3.0.0
313
+ name: listen
319
314
  prerelease: false
320
315
  type: :runtime
316
+ version_requirements: !ruby/object:Gem::Requirement
317
+ requirements:
318
+ - - ~>
319
+ - !ruby/object:Gem::Version
320
+ version: 3.0.0
321
321
  description: Brokers requests for alephant components
322
322
  email:
323
323
  - FutureMediaNewsRubyGems@bbc.co.uk