alephant-publisher 0.6.2 → 0.6.3

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: ffe970223b60e2e7d4ad5cd3a6248749fd5a8545
4
- data.tar.gz: 4a7fa0268125646611f0b8e2d3a7b5f8c8148285
3
+ metadata.gz: 1e5634f22ebe808465e7d14556d052dddc5afbd3
4
+ data.tar.gz: 265d58d561b42cc0148543761339905dfc68d2a2
5
5
  SHA512:
6
- metadata.gz: 7e80be129bb07e65a7cb717ccbf3bdb804202c2198eb79ee5e626be0650306e4b1d5e9f8e833389bfe63d322dae1c7dc53e230c90138e76ac7a074b3b0195078
7
- data.tar.gz: 30dc49da71dd43d62669fd9f218b425d76872534ed5dc767e55a465b5db00ab926b8d2c52a7536d8cc0a3724e65c11768f0f98ff1fbeeaeebad21a0e6bf3f3e7
6
+ metadata.gz: 63e08ec5e1f1f576df406a7edb02a90267dc6cd05a94e6ea4f028376b6bc90e37b04c05beee6a42c77c10213b32235107952d40a7bcb4e910a289ff2784df3f1
7
+ data.tar.gz: cc80de7fe8d6ac58674c81d7066b1d67e05f7e4b559396dbec6c784c2f03329b8703bf668df3557bde30052f6ca0fe474d0038c0a5d832d6c1306533fc702cb4
@@ -56,7 +56,7 @@ module Alephant
56
56
  end
57
57
 
58
58
  def aws_queue
59
- AWS::SQS.new.queues[opts.queue[:sqs_queue_url]]
59
+ AWS::SQS.new.queues.named(opts.queue[:sqs_queue_name])
60
60
  end
61
61
 
62
62
  end
@@ -10,7 +10,7 @@ module Alephant
10
10
 
11
11
  QUEUE_OPTS = [
12
12
  :receive_wait_time,
13
- :sqs_queue_url,
13
+ :sqs_queue_name,
14
14
  :visibility_timeout
15
15
  ]
16
16
 
@@ -1,5 +1,5 @@
1
1
  module Alephant
2
2
  module Publisher
3
- VERSION = "0.6.2"
3
+ VERSION = "0.6.3"
4
4
  end
5
5
  end
@@ -10,6 +10,10 @@ describe Alephant::Publisher do
10
10
 
11
11
  describe "#initialize(opts = {}, logger)" do
12
12
  it "sets parser, sequencer, queue and writer" do
13
+ queue_double = double('AWS::SQS::QueueCollection', :named => 'test-queue')
14
+ sqs_double = double('AWS::SQS', :queues => queue_double)
15
+
16
+ expect(AWS::SQS).to receive(:new).and_return(sqs_double)
13
17
  expect(instance.queue).to be_a Alephant::Publisher::SQSHelper::Queue
14
18
  end
15
19
  end
metadata CHANGED
@@ -1,365 +1,365 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: alephant-publisher
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.2
4
+ version: 0.6.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Integralist
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-07-09 00:00:00.000000000 Z
11
+ date: 2014-07-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
15
- requirement: !ruby/object:Gem::Requirement
15
+ version_requirements: !ruby/object:Gem::Requirement
16
16
  requirements:
17
17
  - - ~>
18
18
  - !ruby/object:Gem::Version
19
19
  version: '1.5'
20
- type: :development
21
- prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
20
+ requirement: !ruby/object:Gem::Requirement
23
21
  requirements:
24
22
  - - ~>
25
23
  - !ruby/object:Gem::Version
26
24
  version: '1.5'
25
+ prerelease: false
26
+ type: :development
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rspec
29
+ version_requirements: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - '>='
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
29
34
  requirement: !ruby/object:Gem::Requirement
30
35
  requirements:
31
36
  - - '>='
32
37
  - !ruby/object:Gem::Version
33
38
  version: '0'
34
- type: :development
35
39
  prerelease: false
40
+ type: :development
41
+ - !ruby/object:Gem::Dependency
42
+ name: rspec-nc
36
43
  version_requirements: !ruby/object:Gem::Requirement
37
44
  requirements:
38
45
  - - '>='
39
46
  - !ruby/object:Gem::Version
40
47
  version: '0'
41
- - !ruby/object:Gem::Dependency
42
- name: rspec-nc
43
48
  requirement: !ruby/object:Gem::Requirement
44
49
  requirements:
45
50
  - - '>='
46
51
  - !ruby/object:Gem::Version
47
52
  version: '0'
48
- type: :development
49
53
  prerelease: false
54
+ type: :development
55
+ - !ruby/object:Gem::Dependency
56
+ name: guard
50
57
  version_requirements: !ruby/object:Gem::Requirement
51
58
  requirements:
52
59
  - - '>='
53
60
  - !ruby/object:Gem::Version
54
61
  version: '0'
55
- - !ruby/object:Gem::Dependency
56
- name: guard
57
62
  requirement: !ruby/object:Gem::Requirement
58
63
  requirements:
59
64
  - - '>='
60
65
  - !ruby/object:Gem::Version
61
66
  version: '0'
62
- type: :development
63
67
  prerelease: false
68
+ type: :development
69
+ - !ruby/object:Gem::Dependency
70
+ name: guard-rspec
64
71
  version_requirements: !ruby/object:Gem::Requirement
65
72
  requirements:
66
73
  - - '>='
67
74
  - !ruby/object:Gem::Version
68
75
  version: '0'
69
- - !ruby/object:Gem::Dependency
70
- name: guard-rspec
71
76
  requirement: !ruby/object:Gem::Requirement
72
77
  requirements:
73
78
  - - '>='
74
79
  - !ruby/object:Gem::Version
75
80
  version: '0'
76
- type: :development
77
81
  prerelease: false
82
+ type: :development
83
+ - !ruby/object:Gem::Dependency
84
+ name: pry
78
85
  version_requirements: !ruby/object:Gem::Requirement
79
86
  requirements:
80
87
  - - '>='
81
88
  - !ruby/object:Gem::Version
82
89
  version: '0'
83
- - !ruby/object:Gem::Dependency
84
- name: pry
85
90
  requirement: !ruby/object:Gem::Requirement
86
91
  requirements:
87
92
  - - '>='
88
93
  - !ruby/object:Gem::Version
89
94
  version: '0'
90
- type: :development
91
95
  prerelease: false
96
+ type: :development
97
+ - !ruby/object:Gem::Dependency
98
+ name: pry-remote
92
99
  version_requirements: !ruby/object:Gem::Requirement
93
100
  requirements:
94
101
  - - '>='
95
102
  - !ruby/object:Gem::Version
96
103
  version: '0'
97
- - !ruby/object:Gem::Dependency
98
- name: pry-remote
99
104
  requirement: !ruby/object:Gem::Requirement
100
105
  requirements:
101
106
  - - '>='
102
107
  - !ruby/object:Gem::Version
103
108
  version: '0'
104
- type: :development
105
109
  prerelease: false
110
+ type: :development
111
+ - !ruby/object:Gem::Dependency
112
+ name: pry-nav
106
113
  version_requirements: !ruby/object:Gem::Requirement
107
114
  requirements:
108
115
  - - '>='
109
116
  - !ruby/object:Gem::Version
110
117
  version: '0'
111
- - !ruby/object:Gem::Dependency
112
- name: pry-nav
113
118
  requirement: !ruby/object:Gem::Requirement
114
119
  requirements:
115
120
  - - '>='
116
121
  - !ruby/object:Gem::Version
117
122
  version: '0'
118
- type: :development
119
123
  prerelease: false
124
+ type: :development
125
+ - !ruby/object:Gem::Dependency
126
+ name: sinatra
120
127
  version_requirements: !ruby/object:Gem::Requirement
121
128
  requirements:
122
129
  - - '>='
123
130
  - !ruby/object:Gem::Version
124
131
  version: '0'
125
- - !ruby/object:Gem::Dependency
126
- name: sinatra
127
132
  requirement: !ruby/object:Gem::Requirement
128
133
  requirements:
129
134
  - - '>='
130
135
  - !ruby/object:Gem::Version
131
136
  version: '0'
132
- type: :runtime
133
137
  prerelease: false
138
+ type: :runtime
139
+ - !ruby/object:Gem::Dependency
140
+ name: faraday
134
141
  version_requirements: !ruby/object:Gem::Requirement
135
142
  requirements:
136
143
  - - '>='
137
144
  - !ruby/object:Gem::Version
138
145
  version: '0'
139
- - !ruby/object:Gem::Dependency
140
- name: faraday
141
146
  requirement: !ruby/object:Gem::Requirement
142
147
  requirements:
143
148
  - - '>='
144
149
  - !ruby/object:Gem::Version
145
150
  version: '0'
146
- type: :runtime
147
151
  prerelease: false
152
+ type: :runtime
153
+ - !ruby/object:Gem::Dependency
154
+ name: trollop
148
155
  version_requirements: !ruby/object:Gem::Requirement
149
156
  requirements:
150
157
  - - '>='
151
158
  - !ruby/object:Gem::Version
152
159
  version: '0'
153
- - !ruby/object:Gem::Dependency
154
- name: trollop
155
160
  requirement: !ruby/object:Gem::Requirement
156
161
  requirements:
157
162
  - - '>='
158
163
  - !ruby/object:Gem::Version
159
164
  version: '0'
160
- type: :runtime
161
165
  prerelease: false
166
+ type: :runtime
167
+ - !ruby/object:Gem::Dependency
168
+ name: rake
162
169
  version_requirements: !ruby/object:Gem::Requirement
163
170
  requirements:
164
171
  - - '>='
165
172
  - !ruby/object:Gem::Version
166
173
  version: '0'
167
- - !ruby/object:Gem::Dependency
168
- name: rake
169
174
  requirement: !ruby/object:Gem::Requirement
170
175
  requirements:
171
176
  - - '>='
172
177
  - !ruby/object:Gem::Version
173
178
  version: '0'
174
- type: :runtime
175
179
  prerelease: false
176
- version_requirements: !ruby/object:Gem::Requirement
177
- requirements:
178
- - - '>='
179
- - !ruby/object:Gem::Version
180
- version: '0'
180
+ type: :runtime
181
181
  - !ruby/object:Gem::Dependency
182
182
  name: aws-sdk
183
- requirement: !ruby/object:Gem::Requirement
183
+ version_requirements: !ruby/object:Gem::Requirement
184
184
  requirements:
185
185
  - - ~>
186
186
  - !ruby/object:Gem::Version
187
187
  version: '1.0'
188
- type: :runtime
189
- prerelease: false
190
- version_requirements: !ruby/object:Gem::Requirement
188
+ requirement: !ruby/object:Gem::Requirement
191
189
  requirements:
192
190
  - - ~>
193
191
  - !ruby/object:Gem::Version
194
192
  version: '1.0'
193
+ prerelease: false
194
+ type: :runtime
195
195
  - !ruby/object:Gem::Dependency
196
196
  name: mustache
197
- requirement: !ruby/object:Gem::Requirement
197
+ version_requirements: !ruby/object:Gem::Requirement
198
198
  requirements:
199
199
  - - '>='
200
200
  - !ruby/object:Gem::Version
201
201
  version: 0.99.5
202
- type: :runtime
203
- prerelease: false
204
- version_requirements: !ruby/object:Gem::Requirement
202
+ requirement: !ruby/object:Gem::Requirement
205
203
  requirements:
206
204
  - - '>='
207
205
  - !ruby/object:Gem::Version
208
206
  version: 0.99.5
207
+ prerelease: false
208
+ type: :runtime
209
209
  - !ruby/object:Gem::Dependency
210
210
  name: jsonpath
211
+ version_requirements: !ruby/object:Gem::Requirement
212
+ requirements:
213
+ - - '>='
214
+ - !ruby/object:Gem::Version
215
+ version: '0'
211
216
  requirement: !ruby/object:Gem::Requirement
212
217
  requirements:
213
218
  - - '>='
214
219
  - !ruby/object:Gem::Version
215
220
  version: '0'
216
- type: :runtime
217
221
  prerelease: false
222
+ type: :runtime
223
+ - !ruby/object:Gem::Dependency
224
+ name: crimp
218
225
  version_requirements: !ruby/object:Gem::Requirement
219
226
  requirements:
220
227
  - - '>='
221
228
  - !ruby/object:Gem::Version
222
229
  version: '0'
223
- - !ruby/object:Gem::Dependency
224
- name: crimp
225
230
  requirement: !ruby/object:Gem::Requirement
226
231
  requirements:
227
232
  - - '>='
228
233
  - !ruby/object:Gem::Version
229
234
  version: '0'
230
- type: :runtime
231
235
  prerelease: false
236
+ type: :runtime
237
+ - !ruby/object:Gem::Dependency
238
+ name: peach
232
239
  version_requirements: !ruby/object:Gem::Requirement
233
240
  requirements:
234
241
  - - '>='
235
242
  - !ruby/object:Gem::Version
236
243
  version: '0'
237
- - !ruby/object:Gem::Dependency
238
- name: peach
239
244
  requirement: !ruby/object:Gem::Requirement
240
245
  requirements:
241
246
  - - '>='
242
247
  - !ruby/object:Gem::Version
243
248
  version: '0'
244
- type: :runtime
245
249
  prerelease: false
250
+ type: :runtime
251
+ - !ruby/object:Gem::Dependency
252
+ name: i18n
246
253
  version_requirements: !ruby/object:Gem::Requirement
247
254
  requirements:
248
255
  - - '>='
249
256
  - !ruby/object:Gem::Version
250
257
  version: '0'
251
- - !ruby/object:Gem::Dependency
252
- name: i18n
253
258
  requirement: !ruby/object:Gem::Requirement
254
259
  requirements:
255
260
  - - '>='
256
261
  - !ruby/object:Gem::Version
257
262
  version: '0'
258
- type: :runtime
259
263
  prerelease: false
264
+ type: :runtime
265
+ - !ruby/object:Gem::Dependency
266
+ name: hashie
260
267
  version_requirements: !ruby/object:Gem::Requirement
261
268
  requirements:
262
269
  - - '>='
263
270
  - !ruby/object:Gem::Version
264
271
  version: '0'
265
- - !ruby/object:Gem::Dependency
266
- name: hashie
267
272
  requirement: !ruby/object:Gem::Requirement
268
273
  requirements:
269
274
  - - '>='
270
275
  - !ruby/object:Gem::Version
271
276
  version: '0'
272
- type: :runtime
273
277
  prerelease: false
278
+ type: :runtime
279
+ - !ruby/object:Gem::Dependency
280
+ name: alephant-support
274
281
  version_requirements: !ruby/object:Gem::Requirement
275
282
  requirements:
276
283
  - - '>='
277
284
  - !ruby/object:Gem::Version
278
285
  version: '0'
279
- - !ruby/object:Gem::Dependency
280
- name: alephant-support
281
286
  requirement: !ruby/object:Gem::Requirement
282
287
  requirements:
283
288
  - - '>='
284
289
  - !ruby/object:Gem::Version
285
290
  version: '0'
286
- type: :runtime
287
291
  prerelease: false
292
+ type: :runtime
293
+ - !ruby/object:Gem::Dependency
294
+ name: alephant-sequencer
288
295
  version_requirements: !ruby/object:Gem::Requirement
289
296
  requirements:
290
297
  - - '>='
291
298
  - !ruby/object:Gem::Version
292
299
  version: '0'
293
- - !ruby/object:Gem::Dependency
294
- name: alephant-sequencer
295
300
  requirement: !ruby/object:Gem::Requirement
296
301
  requirements:
297
302
  - - '>='
298
303
  - !ruby/object:Gem::Version
299
304
  version: '0'
300
- type: :runtime
301
305
  prerelease: false
306
+ type: :runtime
307
+ - !ruby/object:Gem::Dependency
308
+ name: alephant-cache
302
309
  version_requirements: !ruby/object:Gem::Requirement
303
310
  requirements:
304
311
  - - '>='
305
312
  - !ruby/object:Gem::Version
306
313
  version: '0'
307
- - !ruby/object:Gem::Dependency
308
- name: alephant-cache
309
314
  requirement: !ruby/object:Gem::Requirement
310
315
  requirements:
311
316
  - - '>='
312
317
  - !ruby/object:Gem::Version
313
318
  version: '0'
314
- type: :runtime
315
319
  prerelease: false
320
+ type: :runtime
321
+ - !ruby/object:Gem::Dependency
322
+ name: alephant-logger
316
323
  version_requirements: !ruby/object:Gem::Requirement
317
324
  requirements:
318
325
  - - '>='
319
326
  - !ruby/object:Gem::Version
320
327
  version: '0'
321
- - !ruby/object:Gem::Dependency
322
- name: alephant-logger
323
328
  requirement: !ruby/object:Gem::Requirement
324
329
  requirements:
325
330
  - - '>='
326
331
  - !ruby/object:Gem::Version
327
332
  version: '0'
328
- type: :runtime
329
333
  prerelease: false
334
+ type: :runtime
335
+ - !ruby/object:Gem::Dependency
336
+ name: alephant-lookup
330
337
  version_requirements: !ruby/object:Gem::Requirement
331
338
  requirements:
332
339
  - - '>='
333
340
  - !ruby/object:Gem::Version
334
341
  version: '0'
335
- - !ruby/object:Gem::Dependency
336
- name: alephant-lookup
337
342
  requirement: !ruby/object:Gem::Requirement
338
343
  requirements:
339
344
  - - '>='
340
345
  - !ruby/object:Gem::Version
341
346
  version: '0'
342
- type: :runtime
343
347
  prerelease: false
348
+ type: :runtime
349
+ - !ruby/object:Gem::Dependency
350
+ name: alephant-preview
344
351
  version_requirements: !ruby/object:Gem::Requirement
345
352
  requirements:
346
353
  - - '>='
347
354
  - !ruby/object:Gem::Version
348
355
  version: '0'
349
- - !ruby/object:Gem::Dependency
350
- name: alephant-preview
351
356
  requirement: !ruby/object:Gem::Requirement
352
357
  requirements:
353
358
  - - '>='
354
359
  - !ruby/object:Gem::Version
355
360
  version: '0'
356
- type: :runtime
357
361
  prerelease: false
358
- version_requirements: !ruby/object:Gem::Requirement
359
- requirements:
360
- - - '>='
361
- - !ruby/object:Gem::Version
362
- version: '0'
362
+ type: :runtime
363
363
  description: Static publishing to S3 based on SQS messages
364
364
  email:
365
365
  - mark.mcdx@gmail.com
@@ -406,7 +406,7 @@ homepage: https://github.com/BBC-News/alephant-publisher
406
406
  licenses:
407
407
  - MIT
408
408
  metadata: {}
409
- post_install_message:
409
+ post_install_message:
410
410
  rdoc_options: []
411
411
  require_paths:
412
412
  - lib
@@ -421,9 +421,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
421
421
  - !ruby/object:Gem::Version
422
422
  version: '0'
423
423
  requirements: []
424
- rubyforge_project:
425
- rubygems_version: 2.2.2
426
- signing_key:
424
+ rubyforge_project:
425
+ rubygems_version: 2.1.9
426
+ signing_key:
427
427
  specification_version: 4
428
428
  summary: Static publishing to S3 based on SQS messages
429
429
  test_files: