reviewed 0.8.0 → 0.9.0

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: bf38625358e68de2ee624c7c170301c74ddfb97c
4
- data.tar.gz: ecca4a7cf4c99639b520b5f6a9a582a77c87dce9
3
+ metadata.gz: 58217355d3b7a2794201386a1ecc80a4834afb70
4
+ data.tar.gz: 6652fe39fa92662e178d802c991161eed465cdcb
5
5
  SHA512:
6
- metadata.gz: 8092e4c14f8251322010b90da07ee2042f0d00560f298862682dc82073b0a60d35691ae6514c39b616bf92742222faecf4305d79f465dab0f699ee037877e9fa
7
- data.tar.gz: e334ce6c786bd38fbe55104a56e28911d4ce4fdcedca011606b86f9d6cc801d63f0f172c8daedbf7d5c67d1933864b5fd0c24640fd3aab58a499e20aa810204f
6
+ metadata.gz: 8eaff18df51c8dde20eefe6c14a879e51a75e9074b8e3d8bf715ba19cbc0e8eeb79f399143c70f85c9d03aa662de8821c3a140b3245bdc95f0340a552d819e7e
7
+ data.tar.gz: 4f2d885fac82e767e0267c85046cfb0cfb1ba66491c97ab7a519e6936b30f5a87339aa2e92ca2e78a36a3ee92f71804b1fe3b800c590bd6c58ab6a8bdfaf32c7
@@ -1,12 +1,28 @@
1
1
  module Reviewed
2
2
  module Attachable
3
3
 
4
- def attachments tag=nil, opts={}
5
- if default_attachments.include?(tag.to_s)
6
- return attributes['attachments'].select { |x| x.tags.include?(tag.to_s) }
4
+ def attachments opts={}
5
+ tags = opts.has_key?(:tags) ? [opts[:tags]].flatten : []
6
+ attachments = []
7
+
8
+ if tags.present?
9
+ defaults = default_attachments & tags # attachments that already exist
10
+ fetch = tags - defaults # attachments we need to fetch
11
+
12
+ if defaults.present?
13
+ tags.each do |tag|
14
+ attachments << attributes['attachments'].select { |x| x.tags.include?(tag.to_s) }
15
+ end
16
+ end
17
+
18
+ if fetch.present?
19
+ attachments << fetch_attachments(opts.merge!(tags: fetch))
20
+ end
7
21
  else
8
- fetch_attachments(opts.merge!(tags: tag)).to_a
22
+ attachments = fetch_attachments(opts).to_a
9
23
  end
24
+
25
+ return attachments.flatten.uniq.compact
10
26
  end
11
27
 
12
28
  def gallery tags=nil, num=8, page=1
@@ -1,4 +1,4 @@
1
1
  module Reviewed
2
- VERSION = "0.8.0"
2
+ VERSION = "0.9.0"
3
3
  API_VERSION = 'v1'
4
4
  end
data/spec/article_spec.rb CHANGED
@@ -58,18 +58,18 @@ describe Reviewed::Article, vcr: true do
58
58
  end
59
59
 
60
60
  it 'assigns attachments to the correct class' do
61
- @article.attachments(:gallery).each do |attachment|
61
+ @article.attachments(tags: 'gallery').each do |attachment|
62
62
  attachment.should be_an_instance_of(Reviewed::Attachment)
63
63
  end
64
64
  end
65
65
 
66
66
  it 'finds attachments by tag' do
67
- attachments = @article.attachments('hero')
67
+ attachments = @article.attachments(tags: 'hero')
68
68
  attachments.map(&:tags).flatten.should == ['hero']
69
69
  end
70
70
 
71
71
  it 'does not have any matching attachments' do
72
- attachments = @article.attachments('doesnotcompute')
72
+ attachments = @article.attachments(tags: 'doesnotcompute')
73
73
  attachments.length.should == 0
74
74
  end
75
75
 
@@ -12,12 +12,26 @@ describe Reviewed::Article, vcr: true do
12
12
 
13
13
  it 'returns local attachments when available' do
14
14
  Reviewed::Request.should_not_receive(:new)
15
- @article.attachments('hero').first.tags.should eql(['hero'])
15
+ @article.attachments(tags: 'hero').first.tags.should eql(['hero'])
16
16
  end
17
17
 
18
18
  it 'fetches when a tag is not in pre-loaded set' do
19
- @article.should_receive(:fetch_attachments).with({tags: 'foobar'})
20
- @article.attachments('foobar').should eql([])
19
+ @article.should_receive(:fetch_attachments).with({tags: ['foobar']})
20
+ @article.attachments(tags: 'foobar').should eql([])
21
+ end
22
+
23
+ it 'merges local and fetched tags' do
24
+ @article.stub(:fetch_attachments).
25
+ and_return(Reviewed::Article.new(tags: ['fetched']))
26
+ @article.should_receive(:fetch_attachments).with({tags: ['foobar']})
27
+ attachments = @article.attachments(tags: ['hero', 'foobar'])
28
+ attachments.count.should eql(2)
29
+ attachments.map(&:tags).flatten.should eql(['hero', 'fetched'])
30
+ end
31
+
32
+ it 'passes options to fetch_attachments when no tags present' do
33
+ @article.should_receive(:fetch_attachments).with({test: 'test'})
34
+ @article.attachments(test: 'test')
21
35
  end
22
36
 
23
37
  it 'uses the client to fetch scoped attachments' do
@@ -308,4 +308,124 @@ http_interactions:
308
308
  string: '{"data":[]}'
309
309
  http_version:
310
310
  recorded_at: Mon, 29 Jul 2013 21:24:00 GMT
311
- recorded_with: VCR 2.4.0
311
+ - request:
312
+ method: get
313
+ uri: https://the-guide-staging.herokuapp.com/api/v1/articles/50fb2e6fbd0286d5550135a2/attachments?tags%5B0%5D=home-hero&tags%5B1%5D=hero
314
+ body:
315
+ encoding: US-ASCII
316
+ string: ''
317
+ headers:
318
+ User-Agent:
319
+ - Faraday v0.8.8
320
+ X-Reviewed-Authorization:
321
+ - 38e397252ec670ec441733a95204f141
322
+ Accept-Encoding:
323
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
324
+ Accept:
325
+ - '*/*'
326
+ response:
327
+ status:
328
+ code: 200
329
+ message: OK
330
+ headers:
331
+ Access-Control-Allow-Credentials:
332
+ - 'true'
333
+ Access-Control-Allow-Headers:
334
+ - x-pagination, x-requested-with, x-requested-by, x-reviewed-authorization,
335
+ x-skip-cache, Content-Type
336
+ Access-Control-Allow-Methods:
337
+ - OPTIONS, GET, POST, PUT, DELETE
338
+ Access-Control-Allow-Origin:
339
+ - '*'
340
+ Access-Control-Max-Age:
341
+ - '1000'
342
+ Cache-Control:
343
+ - no-cache, no-store
344
+ Content-Type:
345
+ - application/json; charset=utf-8
346
+ Date:
347
+ - Tue, 10 Sep 2013 15:54:57 GMT
348
+ Status:
349
+ - 200 OK
350
+ Strict-Transport-Security:
351
+ - max-age=31536000
352
+ Vary:
353
+ - Accept-Encoding
354
+ X-Rack-Cache:
355
+ - miss
356
+ X-Request-Id:
357
+ - 766455f59a1c273b5f959e5b3da350bd
358
+ X-Runtime:
359
+ - '0.829547'
360
+ X-Ua-Compatible:
361
+ - IE=Edge,chrome=1
362
+ Transfer-Encoding:
363
+ - chunked
364
+ Connection:
365
+ - keep-alive
366
+ body:
367
+ encoding: UTF-8
368
+ string: '{"data":[{"id":"515efe2d12629bec1d0004ab","created_at":"2013-04-05T16:39:09Z","updated_at":"2013-04-05T16:39:39Z","name":"medium-hero.jpg","type":"file","tags":["hero"],"versions":{"s50x50":"http://reviewed-staging.s3.amazonaws.com/attachment/e3e8492d1f4850b4c1c83880e9afbb6adc1172e6/s50x50_medium-hero.jpg","s150x150":"http://reviewed-staging.s3.amazonaws.com/attachment/e3e8492d1f4850b4c1c83880e9afbb6adc1172e6/s150x150_medium-hero.jpg","s200x75":"http://reviewed-staging.s3.amazonaws.com/attachment/e3e8492d1f4850b4c1c83880e9afbb6adc1172e6/s200x75_medium-hero.jpg","s250x250":"http://reviewed-staging.s3.amazonaws.com/attachment/e3e8492d1f4850b4c1c83880e9afbb6adc1172e6/s250x250_medium-hero.jpg","s300x150":"http://reviewed-staging.s3.amazonaws.com/attachment/e3e8492d1f4850b4c1c83880e9afbb6adc1172e6/s300x150_medium-hero.jpg","s300x112":"http://reviewed-staging.s3.amazonaws.com/attachment/e3e8492d1f4850b4c1c83880e9afbb6adc1172e6/s300x112_medium-hero.jpg","s500x500":"http://reviewed-staging.s3.amazonaws.com/attachment/e3e8492d1f4850b4c1c83880e9afbb6adc1172e6/s500x500_medium-hero.jpg","s600x400":"http://reviewed-staging.s3.amazonaws.com/attachment/e3e8492d1f4850b4c1c83880e9afbb6adc1172e6/s600x400_medium-hero.jpg","s600x600":"http://reviewed-staging.s3.amazonaws.com/attachment/e3e8492d1f4850b4c1c83880e9afbb6adc1172e6/s600x600_medium-hero.jpg","s630x235":"http://reviewed-staging.s3.amazonaws.com/attachment/e3e8492d1f4850b4c1c83880e9afbb6adc1172e6/s630x235_medium-hero.jpg","s940x400":"http://reviewed-staging.s3.amazonaws.com/attachment/e3e8492d1f4850b4c1c83880e9afbb6adc1172e6/s940x400_medium-hero.jpg","s940x350":"http://reviewed-staging.s3.amazonaws.com/attachment/e3e8492d1f4850b4c1c83880e9afbb6adc1172e6/s940x350_medium-hero.jpg","s940x110":"http://reviewed-staging.s3.amazonaws.com/attachment/e3e8492d1f4850b4c1c83880e9afbb6adc1172e6/s940x110_medium-hero.jpg","original":"http://reviewed-staging.s3.amazonaws.com/attachment/e3e8492d1f4850b4c1c83880e9afbb6adc1172e6/medium-hero.jpg"},"caption":"","alt_text":"","data":{"content_type":"image/jpeg","url":"http://reviewed-production.s3.amazonaws.com/attachment/e3e8492d1f4850b4c1c83880e9afbb6adc1172e6/medium-hero.jpg","file_size":124864},"position":0,"processing":null,"permissions":{"read":true,"create":false,"update":false,"destroy":false},"api_links":{"collection":{"rel":"/api/v1/attachments","href":"https://the-guide-staging.herokuapp.com/api/v1/attachments"},"resource":{"rel":"/api/v1/attachments/515efe2d12629bec1d0004ab","href":"https://the-guide-staging.herokuapp.com/api/v1/attachments/515efe2d12629bec1d0004ab"}}},{"id":"50fb2e74bd0286d5550135e4","created_at":"2013-01-19T23:38:28Z","updated_at":"2013-04-09T14:23:59Z","name":"BGE-medium-web2.jpg","type":"file","tags":["home-hero"],"versions":{"s50x50":"http://reviewed-staging.s3.amazonaws.com/attachment/63583c1baea391b437d54fbee74bc35234ec3ff2/s50x50_BGE-medium-web2.jpg","s150x150":"http://reviewed-staging.s3.amazonaws.com/attachment/63583c1baea391b437d54fbee74bc35234ec3ff2/s150x150_BGE-medium-web2.jpg","s200x75":"http://reviewed-staging.s3.amazonaws.com/attachment/63583c1baea391b437d54fbee74bc35234ec3ff2/s200x75_BGE-medium-web2.jpg","s250x250":"http://reviewed-staging.s3.amazonaws.com/attachment/63583c1baea391b437d54fbee74bc35234ec3ff2/s250x250_BGE-medium-web2.jpg","s300x150":"http://reviewed-staging.s3.amazonaws.com/attachment/63583c1baea391b437d54fbee74bc35234ec3ff2/s300x150_BGE-medium-web2.jpg","s300x112":"http://reviewed-staging.s3.amazonaws.com/attachment/63583c1baea391b437d54fbee74bc35234ec3ff2/s300x112_BGE-medium-web2.jpg","s500x500":"http://reviewed-staging.s3.amazonaws.com/attachment/63583c1baea391b437d54fbee74bc35234ec3ff2/s500x500_BGE-medium-web2.jpg","s600x400":"http://reviewed-staging.s3.amazonaws.com/attachment/63583c1baea391b437d54fbee74bc35234ec3ff2/s600x400_BGE-medium-web2.jpg","s600x600":"http://reviewed-staging.s3.amazonaws.com/attachment/63583c1baea391b437d54fbee74bc35234ec3ff2/s600x600_BGE-medium-web2.jpg","s630x235":"http://reviewed-staging.s3.amazonaws.com/attachment/63583c1baea391b437d54fbee74bc35234ec3ff2/s630x235_BGE-medium-web2.jpg","s940x400":"http://reviewed-staging.s3.amazonaws.com/attachment/63583c1baea391b437d54fbee74bc35234ec3ff2/s940x400_BGE-medium-web2.jpg","s940x350":"http://reviewed-staging.s3.amazonaws.com/attachment/63583c1baea391b437d54fbee74bc35234ec3ff2/s940x350_BGE-medium-web2.jpg","s940x110":"http://reviewed-staging.s3.amazonaws.com/attachment/63583c1baea391b437d54fbee74bc35234ec3ff2/s940x110_BGE-medium-web2.jpg","original":"http://reviewed-staging.s3.amazonaws.com/attachment/63583c1baea391b437d54fbee74bc35234ec3ff2/BGE-medium-web2.jpg"},"caption":"","alt_text":"","data":{"url":"http://reviewed-production.s3.amazonaws.com/attachment/63583c1baea391b437d54fbee74bc35234ec3ff2/BGE-medium-web2.jpg","file_size":81744,"content_type":"image/jpeg"},"position":0,"processing":null,"permissions":{"read":true,"create":false,"update":false,"destroy":false},"api_links":{"collection":{"rel":"/api/v1/attachments","href":"https://the-guide-staging.herokuapp.com/api/v1/attachments"},"resource":{"rel":"/api/v1/attachments/50fb2e74bd0286d5550135e4","href":"https://the-guide-staging.herokuapp.com/api/v1/attachments/50fb2e74bd0286d5550135e4"}}}]}'
369
+ http_version:
370
+ recorded_at: Tue, 10 Sep 2013 15:54:58 GMT
371
+ - request:
372
+ method: get
373
+ uri: https://the-guide-staging.herokuapp.com/api/v1/articles/50fb2e6fbd0286d5550135a2/attachments?tags%5B0%5D=gallery
374
+ body:
375
+ encoding: US-ASCII
376
+ string: ''
377
+ headers:
378
+ User-Agent:
379
+ - Faraday v0.8.8
380
+ X-Reviewed-Authorization:
381
+ - 38e397252ec670ec441733a95204f141
382
+ Accept-Encoding:
383
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
384
+ Accept:
385
+ - '*/*'
386
+ response:
387
+ status:
388
+ code: 200
389
+ message: OK
390
+ headers:
391
+ Access-Control-Allow-Credentials:
392
+ - 'true'
393
+ Access-Control-Allow-Headers:
394
+ - x-pagination, x-requested-with, x-requested-by, x-reviewed-authorization,
395
+ x-skip-cache, Content-Type
396
+ Access-Control-Allow-Methods:
397
+ - OPTIONS, GET, POST, PUT, DELETE
398
+ Access-Control-Allow-Origin:
399
+ - '*'
400
+ Access-Control-Max-Age:
401
+ - '1000'
402
+ Cache-Control:
403
+ - no-cache, no-store
404
+ Content-Type:
405
+ - application/json; charset=utf-8
406
+ Date:
407
+ - Tue, 10 Sep 2013 16:02:04 GMT
408
+ Status:
409
+ - 200 OK
410
+ Strict-Transport-Security:
411
+ - max-age=31536000
412
+ Vary:
413
+ - Accept-Encoding
414
+ X-Rack-Cache:
415
+ - miss
416
+ X-Request-Id:
417
+ - 4acaa539742390709d858f0cdc305a0b
418
+ X-Runtime:
419
+ - '0.077659'
420
+ X-Ua-Compatible:
421
+ - IE=Edge,chrome=1
422
+ Transfer-Encoding:
423
+ - chunked
424
+ Connection:
425
+ - keep-alive
426
+ body:
427
+ encoding: UTF-8
428
+ string: '{"data":[]}'
429
+ http_version:
430
+ recorded_at: Tue, 10 Sep 2013 16:02:06 GMT
431
+ recorded_with: VCR 2.5.0
@@ -308,4 +308,124 @@ http_interactions:
308
308
  string: '{"data":[]}'
309
309
  http_version:
310
310
  recorded_at: Mon, 29 Jul 2013 21:24:02 GMT
311
- recorded_with: VCR 2.4.0
311
+ - request:
312
+ method: get
313
+ uri: https://the-guide-staging.herokuapp.com/api/v1/articles/50fb2e6fbd0286d5550135a2/attachments?tags%5B0%5D=home-hero&tags%5B1%5D=hero
314
+ body:
315
+ encoding: US-ASCII
316
+ string: ''
317
+ headers:
318
+ User-Agent:
319
+ - Faraday v0.8.8
320
+ X-Reviewed-Authorization:
321
+ - 38e397252ec670ec441733a95204f141
322
+ Accept-Encoding:
323
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
324
+ Accept:
325
+ - '*/*'
326
+ response:
327
+ status:
328
+ code: 200
329
+ message: OK
330
+ headers:
331
+ Access-Control-Allow-Credentials:
332
+ - 'true'
333
+ Access-Control-Allow-Headers:
334
+ - x-pagination, x-requested-with, x-requested-by, x-reviewed-authorization,
335
+ x-skip-cache, Content-Type
336
+ Access-Control-Allow-Methods:
337
+ - OPTIONS, GET, POST, PUT, DELETE
338
+ Access-Control-Allow-Origin:
339
+ - '*'
340
+ Access-Control-Max-Age:
341
+ - '1000'
342
+ Cache-Control:
343
+ - no-cache, no-store
344
+ Content-Type:
345
+ - application/json; charset=utf-8
346
+ Date:
347
+ - Tue, 10 Sep 2013 15:55:13 GMT
348
+ Status:
349
+ - 200 OK
350
+ Strict-Transport-Security:
351
+ - max-age=31536000
352
+ Vary:
353
+ - Accept-Encoding
354
+ X-Rack-Cache:
355
+ - miss
356
+ X-Request-Id:
357
+ - 75ec1c8a1cd1ab0d43dd98a7b3fff7de
358
+ X-Runtime:
359
+ - '0.094329'
360
+ X-Ua-Compatible:
361
+ - IE=Edge,chrome=1
362
+ Transfer-Encoding:
363
+ - chunked
364
+ Connection:
365
+ - keep-alive
366
+ body:
367
+ encoding: UTF-8
368
+ string: '{"data":[{"id":"515efe2d12629bec1d0004ab","created_at":"2013-04-05T16:39:09Z","updated_at":"2013-04-05T16:39:39Z","name":"medium-hero.jpg","type":"file","tags":["hero"],"versions":{"s50x50":"http://reviewed-staging.s3.amazonaws.com/attachment/e3e8492d1f4850b4c1c83880e9afbb6adc1172e6/s50x50_medium-hero.jpg","s150x150":"http://reviewed-staging.s3.amazonaws.com/attachment/e3e8492d1f4850b4c1c83880e9afbb6adc1172e6/s150x150_medium-hero.jpg","s200x75":"http://reviewed-staging.s3.amazonaws.com/attachment/e3e8492d1f4850b4c1c83880e9afbb6adc1172e6/s200x75_medium-hero.jpg","s250x250":"http://reviewed-staging.s3.amazonaws.com/attachment/e3e8492d1f4850b4c1c83880e9afbb6adc1172e6/s250x250_medium-hero.jpg","s300x150":"http://reviewed-staging.s3.amazonaws.com/attachment/e3e8492d1f4850b4c1c83880e9afbb6adc1172e6/s300x150_medium-hero.jpg","s300x112":"http://reviewed-staging.s3.amazonaws.com/attachment/e3e8492d1f4850b4c1c83880e9afbb6adc1172e6/s300x112_medium-hero.jpg","s500x500":"http://reviewed-staging.s3.amazonaws.com/attachment/e3e8492d1f4850b4c1c83880e9afbb6adc1172e6/s500x500_medium-hero.jpg","s600x400":"http://reviewed-staging.s3.amazonaws.com/attachment/e3e8492d1f4850b4c1c83880e9afbb6adc1172e6/s600x400_medium-hero.jpg","s600x600":"http://reviewed-staging.s3.amazonaws.com/attachment/e3e8492d1f4850b4c1c83880e9afbb6adc1172e6/s600x600_medium-hero.jpg","s630x235":"http://reviewed-staging.s3.amazonaws.com/attachment/e3e8492d1f4850b4c1c83880e9afbb6adc1172e6/s630x235_medium-hero.jpg","s940x400":"http://reviewed-staging.s3.amazonaws.com/attachment/e3e8492d1f4850b4c1c83880e9afbb6adc1172e6/s940x400_medium-hero.jpg","s940x350":"http://reviewed-staging.s3.amazonaws.com/attachment/e3e8492d1f4850b4c1c83880e9afbb6adc1172e6/s940x350_medium-hero.jpg","s940x110":"http://reviewed-staging.s3.amazonaws.com/attachment/e3e8492d1f4850b4c1c83880e9afbb6adc1172e6/s940x110_medium-hero.jpg","original":"http://reviewed-staging.s3.amazonaws.com/attachment/e3e8492d1f4850b4c1c83880e9afbb6adc1172e6/medium-hero.jpg"},"caption":"","alt_text":"","data":{"content_type":"image/jpeg","url":"http://reviewed-production.s3.amazonaws.com/attachment/e3e8492d1f4850b4c1c83880e9afbb6adc1172e6/medium-hero.jpg","file_size":124864},"position":0,"processing":null,"permissions":{"read":true,"create":false,"update":false,"destroy":false},"api_links":{"collection":{"rel":"/api/v1/attachments","href":"https://the-guide-staging.herokuapp.com/api/v1/attachments"},"resource":{"rel":"/api/v1/attachments/515efe2d12629bec1d0004ab","href":"https://the-guide-staging.herokuapp.com/api/v1/attachments/515efe2d12629bec1d0004ab"}}},{"id":"50fb2e74bd0286d5550135e4","created_at":"2013-01-19T23:38:28Z","updated_at":"2013-04-09T14:23:59Z","name":"BGE-medium-web2.jpg","type":"file","tags":["home-hero"],"versions":{"s50x50":"http://reviewed-staging.s3.amazonaws.com/attachment/63583c1baea391b437d54fbee74bc35234ec3ff2/s50x50_BGE-medium-web2.jpg","s150x150":"http://reviewed-staging.s3.amazonaws.com/attachment/63583c1baea391b437d54fbee74bc35234ec3ff2/s150x150_BGE-medium-web2.jpg","s200x75":"http://reviewed-staging.s3.amazonaws.com/attachment/63583c1baea391b437d54fbee74bc35234ec3ff2/s200x75_BGE-medium-web2.jpg","s250x250":"http://reviewed-staging.s3.amazonaws.com/attachment/63583c1baea391b437d54fbee74bc35234ec3ff2/s250x250_BGE-medium-web2.jpg","s300x150":"http://reviewed-staging.s3.amazonaws.com/attachment/63583c1baea391b437d54fbee74bc35234ec3ff2/s300x150_BGE-medium-web2.jpg","s300x112":"http://reviewed-staging.s3.amazonaws.com/attachment/63583c1baea391b437d54fbee74bc35234ec3ff2/s300x112_BGE-medium-web2.jpg","s500x500":"http://reviewed-staging.s3.amazonaws.com/attachment/63583c1baea391b437d54fbee74bc35234ec3ff2/s500x500_BGE-medium-web2.jpg","s600x400":"http://reviewed-staging.s3.amazonaws.com/attachment/63583c1baea391b437d54fbee74bc35234ec3ff2/s600x400_BGE-medium-web2.jpg","s600x600":"http://reviewed-staging.s3.amazonaws.com/attachment/63583c1baea391b437d54fbee74bc35234ec3ff2/s600x600_BGE-medium-web2.jpg","s630x235":"http://reviewed-staging.s3.amazonaws.com/attachment/63583c1baea391b437d54fbee74bc35234ec3ff2/s630x235_BGE-medium-web2.jpg","s940x400":"http://reviewed-staging.s3.amazonaws.com/attachment/63583c1baea391b437d54fbee74bc35234ec3ff2/s940x400_BGE-medium-web2.jpg","s940x350":"http://reviewed-staging.s3.amazonaws.com/attachment/63583c1baea391b437d54fbee74bc35234ec3ff2/s940x350_BGE-medium-web2.jpg","s940x110":"http://reviewed-staging.s3.amazonaws.com/attachment/63583c1baea391b437d54fbee74bc35234ec3ff2/s940x110_BGE-medium-web2.jpg","original":"http://reviewed-staging.s3.amazonaws.com/attachment/63583c1baea391b437d54fbee74bc35234ec3ff2/BGE-medium-web2.jpg"},"caption":"","alt_text":"","data":{"url":"http://reviewed-production.s3.amazonaws.com/attachment/63583c1baea391b437d54fbee74bc35234ec3ff2/BGE-medium-web2.jpg","file_size":81744,"content_type":"image/jpeg"},"position":0,"processing":null,"permissions":{"read":true,"create":false,"update":false,"destroy":false},"api_links":{"collection":{"rel":"/api/v1/attachments","href":"https://the-guide-staging.herokuapp.com/api/v1/attachments"},"resource":{"rel":"/api/v1/attachments/50fb2e74bd0286d5550135e4","href":"https://the-guide-staging.herokuapp.com/api/v1/attachments/50fb2e74bd0286d5550135e4"}}}]}'
369
+ http_version:
370
+ recorded_at: Tue, 10 Sep 2013 15:55:14 GMT
371
+ - request:
372
+ method: get
373
+ uri: https://the-guide-staging.herokuapp.com/api/v1/articles/50fb2e6fbd0286d5550135a2/attachments?tags%5B0%5D=doesnotcompute
374
+ body:
375
+ encoding: US-ASCII
376
+ string: ''
377
+ headers:
378
+ User-Agent:
379
+ - Faraday v0.8.8
380
+ X-Reviewed-Authorization:
381
+ - 38e397252ec670ec441733a95204f141
382
+ Accept-Encoding:
383
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
384
+ Accept:
385
+ - '*/*'
386
+ response:
387
+ status:
388
+ code: 200
389
+ message: OK
390
+ headers:
391
+ Access-Control-Allow-Credentials:
392
+ - 'true'
393
+ Access-Control-Allow-Headers:
394
+ - x-pagination, x-requested-with, x-requested-by, x-reviewed-authorization,
395
+ x-skip-cache, Content-Type
396
+ Access-Control-Allow-Methods:
397
+ - OPTIONS, GET, POST, PUT, DELETE
398
+ Access-Control-Allow-Origin:
399
+ - '*'
400
+ Access-Control-Max-Age:
401
+ - '1000'
402
+ Cache-Control:
403
+ - no-cache, no-store
404
+ Content-Type:
405
+ - application/json; charset=utf-8
406
+ Date:
407
+ - Tue, 10 Sep 2013 16:02:05 GMT
408
+ Status:
409
+ - 200 OK
410
+ Strict-Transport-Security:
411
+ - max-age=31536000
412
+ Vary:
413
+ - Accept-Encoding
414
+ X-Rack-Cache:
415
+ - miss
416
+ X-Request-Id:
417
+ - 35b8905c0b5e3d5c41c5877ca5c89583
418
+ X-Runtime:
419
+ - '0.036075'
420
+ X-Ua-Compatible:
421
+ - IE=Edge,chrome=1
422
+ Transfer-Encoding:
423
+ - chunked
424
+ Connection:
425
+ - keep-alive
426
+ body:
427
+ encoding: UTF-8
428
+ string: '{"data":[]}'
429
+ http_version:
430
+ recorded_at: Tue, 10 Sep 2013 16:02:06 GMT
431
+ recorded_with: VCR 2.5.0
@@ -248,4 +248,124 @@ http_interactions:
248
248
  contributor to the Reviewed.com family of sites.","slug":"richard-baguley","social":{"email":"","facebook":"","twitter":""},"resource_uri":"/authors/richard-baguley","avatars":{"small":"http://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?s=48&d=mm","medium":"http://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?s=128&d=mm","normal":"http://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=mm"},"permissions":{"read":true,"create":false,"update":false,"destroy":false},"api_links":{"collection":{"rel":"/api/v1/authors","href":"https://the-guide-staging.herokuapp.com/api/v1/authors"},"resource":{"rel":"/api/v1/authors/50fc4e94bd0286d5550b4bf8","href":"https://the-guide-staging.herokuapp.com/api/v1/authors/50fc4e94bd0286d5550b4bf8"}}}],"attachments":[{"id":"50fb2e71bd0286d5550135b3","created_at":"2013-01-19T23:38:25Z","updated_at":"2013-01-19T23:38:25Z","name":"table-b297567d41f58254691baba562ae65d34cb1c3f0.csv","type":"file","tags":[],"versions":{"s50x50":"http://reviewed-staging.s3.amazonaws.com/attachment/b297567d41f58254691baba562ae65d34cb1c3f0/s50x50_table-b297567d41f58254691baba562ae65d34cb1c3f0.csv","s150x150":"http://reviewed-staging.s3.amazonaws.com/attachment/b297567d41f58254691baba562ae65d34cb1c3f0/s150x150_table-b297567d41f58254691baba562ae65d34cb1c3f0.csv","s200x75":"http://reviewed-staging.s3.amazonaws.com/attachment/b297567d41f58254691baba562ae65d34cb1c3f0/s200x75_table-b297567d41f58254691baba562ae65d34cb1c3f0.csv","s250x250":"http://reviewed-staging.s3.amazonaws.com/attachment/b297567d41f58254691baba562ae65d34cb1c3f0/s250x250_table-b297567d41f58254691baba562ae65d34cb1c3f0.csv","s300x150":"http://reviewed-staging.s3.amazonaws.com/attachment/b297567d41f58254691baba562ae65d34cb1c3f0/s300x150_table-b297567d41f58254691baba562ae65d34cb1c3f0.csv","s300x112":"http://reviewed-staging.s3.amazonaws.com/attachment/b297567d41f58254691baba562ae65d34cb1c3f0/s300x112_table-b297567d41f58254691baba562ae65d34cb1c3f0.csv","s500x500":"http://reviewed-staging.s3.amazonaws.com/attachment/b297567d41f58254691baba562ae65d34cb1c3f0/s500x500_table-b297567d41f58254691baba562ae65d34cb1c3f0.csv","s600x400":"http://reviewed-staging.s3.amazonaws.com/attachment/b297567d41f58254691baba562ae65d34cb1c3f0/s600x400_table-b297567d41f58254691baba562ae65d34cb1c3f0.csv","s600x600":"http://reviewed-staging.s3.amazonaws.com/attachment/b297567d41f58254691baba562ae65d34cb1c3f0/s600x600_table-b297567d41f58254691baba562ae65d34cb1c3f0.csv","s630x235":"http://reviewed-staging.s3.amazonaws.com/attachment/b297567d41f58254691baba562ae65d34cb1c3f0/s630x235_table-b297567d41f58254691baba562ae65d34cb1c3f0.csv","s940x400":"http://reviewed-staging.s3.amazonaws.com/attachment/b297567d41f58254691baba562ae65d34cb1c3f0/s940x400_table-b297567d41f58254691baba562ae65d34cb1c3f0.csv","s940x350":"http://reviewed-staging.s3.amazonaws.com/attachment/b297567d41f58254691baba562ae65d34cb1c3f0/s940x350_table-b297567d41f58254691baba562ae65d34cb1c3f0.csv","s940x110":"http://reviewed-staging.s3.amazonaws.com/attachment/b297567d41f58254691baba562ae65d34cb1c3f0/s940x110_table-b297567d41f58254691baba562ae65d34cb1c3f0.csv","original":"http://reviewed-staging.s3.amazonaws.com/attachment/b297567d41f58254691baba562ae65d34cb1c3f0/table-b297567d41f58254691baba562ae65d34cb1c3f0.csv"},"caption":null,"alt_text":null,"data":{"content_type":"text/csv","url":"http://reviewed-production.s3.amazonaws.com/attachment/b297567d41f58254691baba562ae65d34cb1c3f0/table-b297567d41f58254691baba562ae65d34cb1c3f0.csv","file_size":152},"position":0,"processing":null,"permissions":{"read":true,"create":false,"update":false,"destroy":false},"api_links":{"collection":{"rel":"/api/v1/attachments","href":"https://the-guide-staging.herokuapp.com/api/v1/attachments"},"resource":{"rel":"/api/v1/attachments/50fb2e71bd0286d5550135b3","href":"https://the-guide-staging.herokuapp.com/api/v1/attachments/50fb2e71bd0286d5550135b3"}}},{"id":"50fb2e71bd0286d5550135cb","created_at":"2013-01-19T23:38:25Z","updated_at":"2013-01-19T23:38:25Z","name":"table-ac64d870e0ee8793ddf47a4b39eb8eb28d14ee77.csv","type":"file","tags":[],"versions":{"s50x50":"http://reviewed-staging.s3.amazonaws.com/attachment/ac64d870e0ee8793ddf47a4b39eb8eb28d14ee77/s50x50_table-ac64d870e0ee8793ddf47a4b39eb8eb28d14ee77.csv","s150x150":"http://reviewed-staging.s3.amazonaws.com/attachment/ac64d870e0ee8793ddf47a4b39eb8eb28d14ee77/s150x150_table-ac64d870e0ee8793ddf47a4b39eb8eb28d14ee77.csv","s200x75":"http://reviewed-staging.s3.amazonaws.com/attachment/ac64d870e0ee8793ddf47a4b39eb8eb28d14ee77/s200x75_table-ac64d870e0ee8793ddf47a4b39eb8eb28d14ee77.csv","s250x250":"http://reviewed-staging.s3.amazonaws.com/attachment/ac64d870e0ee8793ddf47a4b39eb8eb28d14ee77/s250x250_table-ac64d870e0ee8793ddf47a4b39eb8eb28d14ee77.csv","s300x150":"http://reviewed-staging.s3.amazonaws.com/attachment/ac64d870e0ee8793ddf47a4b39eb8eb28d14ee77/s300x150_table-ac64d870e0ee8793ddf47a4b39eb8eb28d14ee77.csv","s300x112":"http://reviewed-staging.s3.amazonaws.com/attachment/ac64d870e0ee8793ddf47a4b39eb8eb28d14ee77/s300x112_table-ac64d870e0ee8793ddf47a4b39eb8eb28d14ee77.csv","s500x500":"http://reviewed-staging.s3.amazonaws.com/attachment/ac64d870e0ee8793ddf47a4b39eb8eb28d14ee77/s500x500_table-ac64d870e0ee8793ddf47a4b39eb8eb28d14ee77.csv","s600x400":"http://reviewed-staging.s3.amazonaws.com/attachment/ac64d870e0ee8793ddf47a4b39eb8eb28d14ee77/s600x400_table-ac64d870e0ee8793ddf47a4b39eb8eb28d14ee77.csv","s600x600":"http://reviewed-staging.s3.amazonaws.com/attachment/ac64d870e0ee8793ddf47a4b39eb8eb28d14ee77/s600x600_table-ac64d870e0ee8793ddf47a4b39eb8eb28d14ee77.csv","s630x235":"http://reviewed-staging.s3.amazonaws.com/attachment/ac64d870e0ee8793ddf47a4b39eb8eb28d14ee77/s630x235_table-ac64d870e0ee8793ddf47a4b39eb8eb28d14ee77.csv","s940x400":"http://reviewed-staging.s3.amazonaws.com/attachment/ac64d870e0ee8793ddf47a4b39eb8eb28d14ee77/s940x400_table-ac64d870e0ee8793ddf47a4b39eb8eb28d14ee77.csv","s940x350":"http://reviewed-staging.s3.amazonaws.com/attachment/ac64d870e0ee8793ddf47a4b39eb8eb28d14ee77/s940x350_table-ac64d870e0ee8793ddf47a4b39eb8eb28d14ee77.csv","s940x110":"http://reviewed-staging.s3.amazonaws.com/attachment/ac64d870e0ee8793ddf47a4b39eb8eb28d14ee77/s940x110_table-ac64d870e0ee8793ddf47a4b39eb8eb28d14ee77.csv","original":"http://reviewed-staging.s3.amazonaws.com/attachment/ac64d870e0ee8793ddf47a4b39eb8eb28d14ee77/table-ac64d870e0ee8793ddf47a4b39eb8eb28d14ee77.csv"},"caption":null,"alt_text":null,"data":{"content_type":"text/csv","url":"http://reviewed-production.s3.amazonaws.com/attachment/ac64d870e0ee8793ddf47a4b39eb8eb28d14ee77/table-ac64d870e0ee8793ddf47a4b39eb8eb28d14ee77.csv","file_size":152},"position":0,"processing":null,"permissions":{"read":true,"create":false,"update":false,"destroy":false},"api_links":{"collection":{"rel":"/api/v1/attachments","href":"https://the-guide-staging.herokuapp.com/api/v1/attachments"},"resource":{"rel":"/api/v1/attachments/50fb2e71bd0286d5550135cb","href":"https://the-guide-staging.herokuapp.com/api/v1/attachments/50fb2e71bd0286d5550135cb"}}},{"id":"50fb2e71bd0286d5550135cc","created_at":"2013-01-19T23:38:25Z","updated_at":"2013-01-19T23:38:25Z","name":"table-ac1a1a47f44276831e4f1dcb8e6d134fc537b0ea.csv","type":"file","tags":[],"versions":{"s50x50":"http://reviewed-staging.s3.amazonaws.com/attachment/ac1a1a47f44276831e4f1dcb8e6d134fc537b0ea/s50x50_table-ac1a1a47f44276831e4f1dcb8e6d134fc537b0ea.csv","s150x150":"http://reviewed-staging.s3.amazonaws.com/attachment/ac1a1a47f44276831e4f1dcb8e6d134fc537b0ea/s150x150_table-ac1a1a47f44276831e4f1dcb8e6d134fc537b0ea.csv","s200x75":"http://reviewed-staging.s3.amazonaws.com/attachment/ac1a1a47f44276831e4f1dcb8e6d134fc537b0ea/s200x75_table-ac1a1a47f44276831e4f1dcb8e6d134fc537b0ea.csv","s250x250":"http://reviewed-staging.s3.amazonaws.com/attachment/ac1a1a47f44276831e4f1dcb8e6d134fc537b0ea/s250x250_table-ac1a1a47f44276831e4f1dcb8e6d134fc537b0ea.csv","s300x150":"http://reviewed-staging.s3.amazonaws.com/attachment/ac1a1a47f44276831e4f1dcb8e6d134fc537b0ea/s300x150_table-ac1a1a47f44276831e4f1dcb8e6d134fc537b0ea.csv","s300x112":"http://reviewed-staging.s3.amazonaws.com/attachment/ac1a1a47f44276831e4f1dcb8e6d134fc537b0ea/s300x112_table-ac1a1a47f44276831e4f1dcb8e6d134fc537b0ea.csv","s500x500":"http://reviewed-staging.s3.amazonaws.com/attachment/ac1a1a47f44276831e4f1dcb8e6d134fc537b0ea/s500x500_table-ac1a1a47f44276831e4f1dcb8e6d134fc537b0ea.csv","s600x400":"http://reviewed-staging.s3.amazonaws.com/attachment/ac1a1a47f44276831e4f1dcb8e6d134fc537b0ea/s600x400_table-ac1a1a47f44276831e4f1dcb8e6d134fc537b0ea.csv","s600x600":"http://reviewed-staging.s3.amazonaws.com/attachment/ac1a1a47f44276831e4f1dcb8e6d134fc537b0ea/s600x600_table-ac1a1a47f44276831e4f1dcb8e6d134fc537b0ea.csv","s630x235":"http://reviewed-staging.s3.amazonaws.com/attachment/ac1a1a47f44276831e4f1dcb8e6d134fc537b0ea/s630x235_table-ac1a1a47f44276831e4f1dcb8e6d134fc537b0ea.csv","s940x400":"http://reviewed-staging.s3.amazonaws.com/attachment/ac1a1a47f44276831e4f1dcb8e6d134fc537b0ea/s940x400_table-ac1a1a47f44276831e4f1dcb8e6d134fc537b0ea.csv","s940x350":"http://reviewed-staging.s3.amazonaws.com/attachment/ac1a1a47f44276831e4f1dcb8e6d134fc537b0ea/s940x350_table-ac1a1a47f44276831e4f1dcb8e6d134fc537b0ea.csv","s940x110":"http://reviewed-staging.s3.amazonaws.com/attachment/ac1a1a47f44276831e4f1dcb8e6d134fc537b0ea/s940x110_table-ac1a1a47f44276831e4f1dcb8e6d134fc537b0ea.csv","original":"http://reviewed-staging.s3.amazonaws.com/attachment/ac1a1a47f44276831e4f1dcb8e6d134fc537b0ea/table-ac1a1a47f44276831e4f1dcb8e6d134fc537b0ea.csv"},"caption":null,"alt_text":null,"data":{"content_type":"text/csv","url":"http://reviewed-production.s3.amazonaws.com/attachment/ac1a1a47f44276831e4f1dcb8e6d134fc537b0ea/table-ac1a1a47f44276831e4f1dcb8e6d134fc537b0ea.csv","file_size":2564},"position":0,"processing":null,"permissions":{"read":true,"create":false,"update":false,"destroy":false},"api_links":{"collection":{"rel":"/api/v1/attachments","href":"https://the-guide-staging.herokuapp.com/api/v1/attachments"},"resource":{"rel":"/api/v1/attachments/50fb2e71bd0286d5550135cc","href":"https://the-guide-staging.herokuapp.com/api/v1/attachments/50fb2e71bd0286d5550135cc"}}},{"id":"50fb2e72bd0286d5550135d0","created_at":"2013-01-19T23:38:26Z","updated_at":"2013-01-19T23:38:26Z","name":"table-ac64d870e0ee8793ddf47a4b39eb8eb28d14ee77.csv","type":"file","tags":[],"versions":{"s50x50":"http://reviewed-staging.s3.amazonaws.com/attachment/ac64d870e0ee8793ddf47a4b39eb8eb28d14ee77/s50x50_table-ac64d870e0ee8793ddf47a4b39eb8eb28d14ee77.csv","s150x150":"http://reviewed-staging.s3.amazonaws.com/attachment/ac64d870e0ee8793ddf47a4b39eb8eb28d14ee77/s150x150_table-ac64d870e0ee8793ddf47a4b39eb8eb28d14ee77.csv","s200x75":"http://reviewed-staging.s3.amazonaws.com/attachment/ac64d870e0ee8793ddf47a4b39eb8eb28d14ee77/s200x75_table-ac64d870e0ee8793ddf47a4b39eb8eb28d14ee77.csv","s250x250":"http://reviewed-staging.s3.amazonaws.com/attachment/ac64d870e0ee8793ddf47a4b39eb8eb28d14ee77/s250x250_table-ac64d870e0ee8793ddf47a4b39eb8eb28d14ee77.csv","s300x150":"http://reviewed-staging.s3.amazonaws.com/attachment/ac64d870e0ee8793ddf47a4b39eb8eb28d14ee77/s300x150_table-ac64d870e0ee8793ddf47a4b39eb8eb28d14ee77.csv","s300x112":"http://reviewed-staging.s3.amazonaws.com/attachment/ac64d870e0ee8793ddf47a4b39eb8eb28d14ee77/s300x112_table-ac64d870e0ee8793ddf47a4b39eb8eb28d14ee77.csv","s500x500":"http://reviewed-staging.s3.amazonaws.com/attachment/ac64d870e0ee8793ddf47a4b39eb8eb28d14ee77/s500x500_table-ac64d870e0ee8793ddf47a4b39eb8eb28d14ee77.csv","s600x400":"http://reviewed-staging.s3.amazonaws.com/attachment/ac64d870e0ee8793ddf47a4b39eb8eb28d14ee77/s600x400_table-ac64d870e0ee8793ddf47a4b39eb8eb28d14ee77.csv","s600x600":"http://reviewed-staging.s3.amazonaws.com/attachment/ac64d870e0ee8793ddf47a4b39eb8eb28d14ee77/s600x600_table-ac64d870e0ee8793ddf47a4b39eb8eb28d14ee77.csv","s630x235":"http://reviewed-staging.s3.amazonaws.com/attachment/ac64d870e0ee8793ddf47a4b39eb8eb28d14ee77/s630x235_table-ac64d870e0ee8793ddf47a4b39eb8eb28d14ee77.csv","s940x400":"http://reviewed-staging.s3.amazonaws.com/attachment/ac64d870e0ee8793ddf47a4b39eb8eb28d14ee77/s940x400_table-ac64d870e0ee8793ddf47a4b39eb8eb28d14ee77.csv","s940x350":"http://reviewed-staging.s3.amazonaws.com/attachment/ac64d870e0ee8793ddf47a4b39eb8eb28d14ee77/s940x350_table-ac64d870e0ee8793ddf47a4b39eb8eb28d14ee77.csv","s940x110":"http://reviewed-staging.s3.amazonaws.com/attachment/ac64d870e0ee8793ddf47a4b39eb8eb28d14ee77/s940x110_table-ac64d870e0ee8793ddf47a4b39eb8eb28d14ee77.csv","original":"http://reviewed-staging.s3.amazonaws.com/attachment/ac64d870e0ee8793ddf47a4b39eb8eb28d14ee77/table-ac64d870e0ee8793ddf47a4b39eb8eb28d14ee77.csv"},"caption":null,"alt_text":null,"data":{"content_type":"text/csv","url":"http://reviewed-production.s3.amazonaws.com/attachment/ac64d870e0ee8793ddf47a4b39eb8eb28d14ee77/table-ac64d870e0ee8793ddf47a4b39eb8eb28d14ee77.csv","file_size":152},"position":0,"processing":null,"permissions":{"read":true,"create":false,"update":false,"destroy":false},"api_links":{"collection":{"rel":"/api/v1/attachments","href":"https://the-guide-staging.herokuapp.com/api/v1/attachments"},"resource":{"rel":"/api/v1/attachments/50fb2e72bd0286d5550135d0","href":"https://the-guide-staging.herokuapp.com/api/v1/attachments/50fb2e72bd0286d5550135d0"}}},{"id":"50fb2e72bd0286d5550135d1","created_at":"2013-01-19T23:38:26Z","updated_at":"2013-01-19T23:38:26Z","name":"table-ac1a1a47f44276831e4f1dcb8e6d134fc537b0ea.csv","type":"file","tags":[],"versions":{"s50x50":"http://reviewed-staging.s3.amazonaws.com/attachment/ac1a1a47f44276831e4f1dcb8e6d134fc537b0ea/s50x50_table-ac1a1a47f44276831e4f1dcb8e6d134fc537b0ea.csv","s150x150":"http://reviewed-staging.s3.amazonaws.com/attachment/ac1a1a47f44276831e4f1dcb8e6d134fc537b0ea/s150x150_table-ac1a1a47f44276831e4f1dcb8e6d134fc537b0ea.csv","s200x75":"http://reviewed-staging.s3.amazonaws.com/attachment/ac1a1a47f44276831e4f1dcb8e6d134fc537b0ea/s200x75_table-ac1a1a47f44276831e4f1dcb8e6d134fc537b0ea.csv","s250x250":"http://reviewed-staging.s3.amazonaws.com/attachment/ac1a1a47f44276831e4f1dcb8e6d134fc537b0ea/s250x250_table-ac1a1a47f44276831e4f1dcb8e6d134fc537b0ea.csv","s300x150":"http://reviewed-staging.s3.amazonaws.com/attachment/ac1a1a47f44276831e4f1dcb8e6d134fc537b0ea/s300x150_table-ac1a1a47f44276831e4f1dcb8e6d134fc537b0ea.csv","s300x112":"http://reviewed-staging.s3.amazonaws.com/attachment/ac1a1a47f44276831e4f1dcb8e6d134fc537b0ea/s300x112_table-ac1a1a47f44276831e4f1dcb8e6d134fc537b0ea.csv","s500x500":"http://reviewed-staging.s3.amazonaws.com/attachment/ac1a1a47f44276831e4f1dcb8e6d134fc537b0ea/s500x500_table-ac1a1a47f44276831e4f1dcb8e6d134fc537b0ea.csv","s600x400":"http://reviewed-staging.s3.amazonaws.com/attachment/ac1a1a47f44276831e4f1dcb8e6d134fc537b0ea/s600x400_table-ac1a1a47f44276831e4f1dcb8e6d134fc537b0ea.csv","s600x600":"http://reviewed-staging.s3.amazonaws.com/attachment/ac1a1a47f44276831e4f1dcb8e6d134fc537b0ea/s600x600_table-ac1a1a47f44276831e4f1dcb8e6d134fc537b0ea.csv","s630x235":"http://reviewed-staging.s3.amazonaws.com/attachment/ac1a1a47f44276831e4f1dcb8e6d134fc537b0ea/s630x235_table-ac1a1a47f44276831e4f1dcb8e6d134fc537b0ea.csv","s940x400":"http://reviewed-staging.s3.amazonaws.com/attachment/ac1a1a47f44276831e4f1dcb8e6d134fc537b0ea/s940x400_table-ac1a1a47f44276831e4f1dcb8e6d134fc537b0ea.csv","s940x350":"http://reviewed-staging.s3.amazonaws.com/attachment/ac1a1a47f44276831e4f1dcb8e6d134fc537b0ea/s940x350_table-ac1a1a47f44276831e4f1dcb8e6d134fc537b0ea.csv","s940x110":"http://reviewed-staging.s3.amazonaws.com/attachment/ac1a1a47f44276831e4f1dcb8e6d134fc537b0ea/s940x110_table-ac1a1a47f44276831e4f1dcb8e6d134fc537b0ea.csv","original":"http://reviewed-staging.s3.amazonaws.com/attachment/ac1a1a47f44276831e4f1dcb8e6d134fc537b0ea/table-ac1a1a47f44276831e4f1dcb8e6d134fc537b0ea.csv"},"caption":null,"alt_text":null,"data":{"content_type":"text/csv","url":"http://reviewed-production.s3.amazonaws.com/attachment/ac1a1a47f44276831e4f1dcb8e6d134fc537b0ea/table-ac1a1a47f44276831e4f1dcb8e6d134fc537b0ea.csv","file_size":2564},"position":0,"processing":null,"permissions":{"read":true,"create":false,"update":false,"destroy":false},"api_links":{"collection":{"rel":"/api/v1/attachments","href":"https://the-guide-staging.herokuapp.com/api/v1/attachments"},"resource":{"rel":"/api/v1/attachments/50fb2e72bd0286d5550135d1","href":"https://the-guide-staging.herokuapp.com/api/v1/attachments/50fb2e72bd0286d5550135d1"}}},{"id":"50fb2e72bd0286d5550135d5","created_at":"2013-01-19T23:38:26Z","updated_at":"2013-01-19T23:38:26Z","name":"table-ac64d870e0ee8793ddf47a4b39eb8eb28d14ee77.csv","type":"file","tags":[],"versions":{"s50x50":"http://reviewed-staging.s3.amazonaws.com/attachment/ac64d870e0ee8793ddf47a4b39eb8eb28d14ee77/s50x50_table-ac64d870e0ee8793ddf47a4b39eb8eb28d14ee77.csv","s150x150":"http://reviewed-staging.s3.amazonaws.com/attachment/ac64d870e0ee8793ddf47a4b39eb8eb28d14ee77/s150x150_table-ac64d870e0ee8793ddf47a4b39eb8eb28d14ee77.csv","s200x75":"http://reviewed-staging.s3.amazonaws.com/attachment/ac64d870e0ee8793ddf47a4b39eb8eb28d14ee77/s200x75_table-ac64d870e0ee8793ddf47a4b39eb8eb28d14ee77.csv","s250x250":"http://reviewed-staging.s3.amazonaws.com/attachment/ac64d870e0ee8793ddf47a4b39eb8eb28d14ee77/s250x250_table-ac64d870e0ee8793ddf47a4b39eb8eb28d14ee77.csv","s300x150":"http://reviewed-staging.s3.amazonaws.com/attachment/ac64d870e0ee8793ddf47a4b39eb8eb28d14ee77/s300x150_table-ac64d870e0ee8793ddf47a4b39eb8eb28d14ee77.csv","s300x112":"http://reviewed-staging.s3.amazonaws.com/attachment/ac64d870e0ee8793ddf47a4b39eb8eb28d14ee77/s300x112_table-ac64d870e0ee8793ddf47a4b39eb8eb28d14ee77.csv","s500x500":"http://reviewed-staging.s3.amazonaws.com/attachment/ac64d870e0ee8793ddf47a4b39eb8eb28d14ee77/s500x500_table-ac64d870e0ee8793ddf47a4b39eb8eb28d14ee77.csv","s600x400":"http://reviewed-staging.s3.amazonaws.com/attachment/ac64d870e0ee8793ddf47a4b39eb8eb28d14ee77/s600x400_table-ac64d870e0ee8793ddf47a4b39eb8eb28d14ee77.csv","s600x600":"http://reviewed-staging.s3.amazonaws.com/attachment/ac64d870e0ee8793ddf47a4b39eb8eb28d14ee77/s600x600_table-ac64d870e0ee8793ddf47a4b39eb8eb28d14ee77.csv","s630x235":"http://reviewed-staging.s3.amazonaws.com/attachment/ac64d870e0ee8793ddf47a4b39eb8eb28d14ee77/s630x235_table-ac64d870e0ee8793ddf47a4b39eb8eb28d14ee77.csv","s940x400":"http://reviewed-staging.s3.amazonaws.com/attachment/ac64d870e0ee8793ddf47a4b39eb8eb28d14ee77/s940x400_table-ac64d870e0ee8793ddf47a4b39eb8eb28d14ee77.csv","s940x350":"http://reviewed-staging.s3.amazonaws.com/attachment/ac64d870e0ee8793ddf47a4b39eb8eb28d14ee77/s940x350_table-ac64d870e0ee8793ddf47a4b39eb8eb28d14ee77.csv","s940x110":"http://reviewed-staging.s3.amazonaws.com/attachment/ac64d870e0ee8793ddf47a4b39eb8eb28d14ee77/s940x110_table-ac64d870e0ee8793ddf47a4b39eb8eb28d14ee77.csv","original":"http://reviewed-staging.s3.amazonaws.com/attachment/ac64d870e0ee8793ddf47a4b39eb8eb28d14ee77/table-ac64d870e0ee8793ddf47a4b39eb8eb28d14ee77.csv"},"caption":null,"alt_text":null,"data":{"content_type":"text/csv","url":"http://reviewed-production.s3.amazonaws.com/attachment/ac64d870e0ee8793ddf47a4b39eb8eb28d14ee77/table-ac64d870e0ee8793ddf47a4b39eb8eb28d14ee77.csv","file_size":152},"position":0,"processing":null,"permissions":{"read":true,"create":false,"update":false,"destroy":false},"api_links":{"collection":{"rel":"/api/v1/attachments","href":"https://the-guide-staging.herokuapp.com/api/v1/attachments"},"resource":{"rel":"/api/v1/attachments/50fb2e72bd0286d5550135d5","href":"https://the-guide-staging.herokuapp.com/api/v1/attachments/50fb2e72bd0286d5550135d5"}}},{"id":"50fb2e72bd0286d5550135d6","created_at":"2013-01-19T23:38:26Z","updated_at":"2013-01-19T23:38:26Z","name":"table-ac1a1a47f44276831e4f1dcb8e6d134fc537b0ea.csv","type":"file","tags":[],"versions":{"s50x50":"http://reviewed-staging.s3.amazonaws.com/attachment/ac1a1a47f44276831e4f1dcb8e6d134fc537b0ea/s50x50_table-ac1a1a47f44276831e4f1dcb8e6d134fc537b0ea.csv","s150x150":"http://reviewed-staging.s3.amazonaws.com/attachment/ac1a1a47f44276831e4f1dcb8e6d134fc537b0ea/s150x150_table-ac1a1a47f44276831e4f1dcb8e6d134fc537b0ea.csv","s200x75":"http://reviewed-staging.s3.amazonaws.com/attachment/ac1a1a47f44276831e4f1dcb8e6d134fc537b0ea/s200x75_table-ac1a1a47f44276831e4f1dcb8e6d134fc537b0ea.csv","s250x250":"http://reviewed-staging.s3.amazonaws.com/attachment/ac1a1a47f44276831e4f1dcb8e6d134fc537b0ea/s250x250_table-ac1a1a47f44276831e4f1dcb8e6d134fc537b0ea.csv","s300x150":"http://reviewed-staging.s3.amazonaws.com/attachment/ac1a1a47f44276831e4f1dcb8e6d134fc537b0ea/s300x150_table-ac1a1a47f44276831e4f1dcb8e6d134fc537b0ea.csv","s300x112":"http://reviewed-staging.s3.amazonaws.com/attachment/ac1a1a47f44276831e4f1dcb8e6d134fc537b0ea/s300x112_table-ac1a1a47f44276831e4f1dcb8e6d134fc537b0ea.csv","s500x500":"http://reviewed-staging.s3.amazonaws.com/attachment/ac1a1a47f44276831e4f1dcb8e6d134fc537b0ea/s500x500_table-ac1a1a47f44276831e4f1dcb8e6d134fc537b0ea.csv","s600x400":"http://reviewed-staging.s3.amazonaws.com/attachment/ac1a1a47f44276831e4f1dcb8e6d134fc537b0ea/s600x400_table-ac1a1a47f44276831e4f1dcb8e6d134fc537b0ea.csv","s600x600":"http://reviewed-staging.s3.amazonaws.com/attachment/ac1a1a47f44276831e4f1dcb8e6d134fc537b0ea/s600x600_table-ac1a1a47f44276831e4f1dcb8e6d134fc537b0ea.csv","s630x235":"http://reviewed-staging.s3.amazonaws.com/attachment/ac1a1a47f44276831e4f1dcb8e6d134fc537b0ea/s630x235_table-ac1a1a47f44276831e4f1dcb8e6d134fc537b0ea.csv","s940x400":"http://reviewed-staging.s3.amazonaws.com/attachment/ac1a1a47f44276831e4f1dcb8e6d134fc537b0ea/s940x400_table-ac1a1a47f44276831e4f1dcb8e6d134fc537b0ea.csv","s940x350":"http://reviewed-staging.s3.amazonaws.com/attachment/ac1a1a47f44276831e4f1dcb8e6d134fc537b0ea/s940x350_table-ac1a1a47f44276831e4f1dcb8e6d134fc537b0ea.csv","s940x110":"http://reviewed-staging.s3.amazonaws.com/attachment/ac1a1a47f44276831e4f1dcb8e6d134fc537b0ea/s940x110_table-ac1a1a47f44276831e4f1dcb8e6d134fc537b0ea.csv","original":"http://reviewed-staging.s3.amazonaws.com/attachment/ac1a1a47f44276831e4f1dcb8e6d134fc537b0ea/table-ac1a1a47f44276831e4f1dcb8e6d134fc537b0ea.csv"},"caption":null,"alt_text":null,"data":{"content_type":"text/csv","url":"http://reviewed-production.s3.amazonaws.com/attachment/ac1a1a47f44276831e4f1dcb8e6d134fc537b0ea/table-ac1a1a47f44276831e4f1dcb8e6d134fc537b0ea.csv","file_size":2564},"position":0,"processing":null,"permissions":{"read":true,"create":false,"update":false,"destroy":false},"api_links":{"collection":{"rel":"/api/v1/attachments","href":"https://the-guide-staging.herokuapp.com/api/v1/attachments"},"resource":{"rel":"/api/v1/attachments/50fb2e72bd0286d5550135d6","href":"https://the-guide-staging.herokuapp.com/api/v1/attachments/50fb2e72bd0286d5550135d6"}}},{"id":"50fb2e74bd0286d5550135e4","created_at":"2013-01-19T23:38:28Z","updated_at":"2013-04-09T14:23:59Z","name":"BGE-medium-web2.jpg","type":"file","tags":["home-hero"],"versions":{"s50x50":"http://reviewed-staging.s3.amazonaws.com/attachment/63583c1baea391b437d54fbee74bc35234ec3ff2/s50x50_BGE-medium-web2.jpg","s150x150":"http://reviewed-staging.s3.amazonaws.com/attachment/63583c1baea391b437d54fbee74bc35234ec3ff2/s150x150_BGE-medium-web2.jpg","s200x75":"http://reviewed-staging.s3.amazonaws.com/attachment/63583c1baea391b437d54fbee74bc35234ec3ff2/s200x75_BGE-medium-web2.jpg","s250x250":"http://reviewed-staging.s3.amazonaws.com/attachment/63583c1baea391b437d54fbee74bc35234ec3ff2/s250x250_BGE-medium-web2.jpg","s300x150":"http://reviewed-staging.s3.amazonaws.com/attachment/63583c1baea391b437d54fbee74bc35234ec3ff2/s300x150_BGE-medium-web2.jpg","s300x112":"http://reviewed-staging.s3.amazonaws.com/attachment/63583c1baea391b437d54fbee74bc35234ec3ff2/s300x112_BGE-medium-web2.jpg","s500x500":"http://reviewed-staging.s3.amazonaws.com/attachment/63583c1baea391b437d54fbee74bc35234ec3ff2/s500x500_BGE-medium-web2.jpg","s600x400":"http://reviewed-staging.s3.amazonaws.com/attachment/63583c1baea391b437d54fbee74bc35234ec3ff2/s600x400_BGE-medium-web2.jpg","s600x600":"http://reviewed-staging.s3.amazonaws.com/attachment/63583c1baea391b437d54fbee74bc35234ec3ff2/s600x600_BGE-medium-web2.jpg","s630x235":"http://reviewed-staging.s3.amazonaws.com/attachment/63583c1baea391b437d54fbee74bc35234ec3ff2/s630x235_BGE-medium-web2.jpg","s940x400":"http://reviewed-staging.s3.amazonaws.com/attachment/63583c1baea391b437d54fbee74bc35234ec3ff2/s940x400_BGE-medium-web2.jpg","s940x350":"http://reviewed-staging.s3.amazonaws.com/attachment/63583c1baea391b437d54fbee74bc35234ec3ff2/s940x350_BGE-medium-web2.jpg","s940x110":"http://reviewed-staging.s3.amazonaws.com/attachment/63583c1baea391b437d54fbee74bc35234ec3ff2/s940x110_BGE-medium-web2.jpg","original":"http://reviewed-staging.s3.amazonaws.com/attachment/63583c1baea391b437d54fbee74bc35234ec3ff2/BGE-medium-web2.jpg"},"caption":"","alt_text":"","data":{"url":"http://reviewed-production.s3.amazonaws.com/attachment/63583c1baea391b437d54fbee74bc35234ec3ff2/BGE-medium-web2.jpg","file_size":81744,"content_type":"image/jpeg"},"position":0,"processing":null,"permissions":{"read":true,"create":false,"update":false,"destroy":false},"api_links":{"collection":{"rel":"/api/v1/attachments","href":"https://the-guide-staging.herokuapp.com/api/v1/attachments"},"resource":{"rel":"/api/v1/attachments/50fb2e74bd0286d5550135e4","href":"https://the-guide-staging.herokuapp.com/api/v1/attachments/50fb2e74bd0286d5550135e4"}}},{"id":"515efe2d12629bec1d0004ab","created_at":"2013-04-05T16:39:09Z","updated_at":"2013-04-05T16:39:39Z","name":"medium-hero.jpg","type":"file","tags":["hero"],"versions":{"s50x50":"http://reviewed-staging.s3.amazonaws.com/attachment/e3e8492d1f4850b4c1c83880e9afbb6adc1172e6/s50x50_medium-hero.jpg","s150x150":"http://reviewed-staging.s3.amazonaws.com/attachment/e3e8492d1f4850b4c1c83880e9afbb6adc1172e6/s150x150_medium-hero.jpg","s200x75":"http://reviewed-staging.s3.amazonaws.com/attachment/e3e8492d1f4850b4c1c83880e9afbb6adc1172e6/s200x75_medium-hero.jpg","s250x250":"http://reviewed-staging.s3.amazonaws.com/attachment/e3e8492d1f4850b4c1c83880e9afbb6adc1172e6/s250x250_medium-hero.jpg","s300x150":"http://reviewed-staging.s3.amazonaws.com/attachment/e3e8492d1f4850b4c1c83880e9afbb6adc1172e6/s300x150_medium-hero.jpg","s300x112":"http://reviewed-staging.s3.amazonaws.com/attachment/e3e8492d1f4850b4c1c83880e9afbb6adc1172e6/s300x112_medium-hero.jpg","s500x500":"http://reviewed-staging.s3.amazonaws.com/attachment/e3e8492d1f4850b4c1c83880e9afbb6adc1172e6/s500x500_medium-hero.jpg","s600x400":"http://reviewed-staging.s3.amazonaws.com/attachment/e3e8492d1f4850b4c1c83880e9afbb6adc1172e6/s600x400_medium-hero.jpg","s600x600":"http://reviewed-staging.s3.amazonaws.com/attachment/e3e8492d1f4850b4c1c83880e9afbb6adc1172e6/s600x600_medium-hero.jpg","s630x235":"http://reviewed-staging.s3.amazonaws.com/attachment/e3e8492d1f4850b4c1c83880e9afbb6adc1172e6/s630x235_medium-hero.jpg","s940x400":"http://reviewed-staging.s3.amazonaws.com/attachment/e3e8492d1f4850b4c1c83880e9afbb6adc1172e6/s940x400_medium-hero.jpg","s940x350":"http://reviewed-staging.s3.amazonaws.com/attachment/e3e8492d1f4850b4c1c83880e9afbb6adc1172e6/s940x350_medium-hero.jpg","s940x110":"http://reviewed-staging.s3.amazonaws.com/attachment/e3e8492d1f4850b4c1c83880e9afbb6adc1172e6/s940x110_medium-hero.jpg","original":"http://reviewed-staging.s3.amazonaws.com/attachment/e3e8492d1f4850b4c1c83880e9afbb6adc1172e6/medium-hero.jpg"},"caption":"","alt_text":"","data":{"content_type":"image/jpeg","url":"http://reviewed-production.s3.amazonaws.com/attachment/e3e8492d1f4850b4c1c83880e9afbb6adc1172e6/medium-hero.jpg","file_size":124864},"position":0,"processing":null,"permissions":{"read":true,"create":false,"update":false,"destroy":false},"api_links":{"collection":{"rel":"/api/v1/attachments","href":"https://the-guide-staging.herokuapp.com/api/v1/attachments"},"resource":{"rel":"/api/v1/attachments/515efe2d12629bec1d0004ab","href":"https://the-guide-staging.herokuapp.com/api/v1/attachments/515efe2d12629bec1d0004ab"}}}],"websites":[{"id":"50e669d7bd028648e0000023","created_at":"2013-01-04T05:34:15Z","updated_at":"2013-07-03T20:16:36Z","name":"Grills","url":"grills.reviewed.com","code":"GRI","category":null,"featured_video_id":null,"ad_campaign_group":{"id":"51377ab09f5e85f5a3000484","created_at":"2013-03-06T17:19:44Z","updated_at":"2013-05-13T16:38:12Z","website_id":"50e669d7bd028648e0000023","ad_campaigns":[],"permissions":{"read":false,"create":false,"update":false,"destroy":false},"api_links":{"collection":{"rel":"/api/v1/ad_campaign_groups","href":"https://the-guide-staging.herokuapp.com/api/v1/ad_campaign_groups"},"resource":{"rel":"/api/v1/ad_campaign_groups/51377ab09f5e85f5a3000484","href":"https://the-guide-staging.herokuapp.com/api/v1/ad_campaign_groups/51377ab09f5e85f5a3000484"}}},"permissions":{"read":true,"create":false,"update":false,"destroy":false},"api_links":{"collection":{"rel":"/api/v1/websites","href":"https://the-guide-staging.herokuapp.com/api/v1/websites"},"resource":{"rel":"/api/v1/websites/50e669d7bd028648e0000023","href":"https://the-guide-staging.herokuapp.com/api/v1/websites/50e669d7bd028648e0000023"}}}],"bulk_uploads":[],"permissions":{"read":true,"create":false,"update":false,"destroy":false},"api_links":{"collection":{"rel":"/api/v1/articles","href":"https://the-guide-staging.herokuapp.com/api/v1/articles"},"resource":{"rel":"/api/v1/articles/50fb2e6fbd0286d5550135a2","href":"https://the-guide-staging.herokuapp.com/api/v1/articles/50fb2e6fbd0286d5550135a2"}}}'
249
249
  http_version:
250
250
  recorded_at: Mon, 29 Jul 2013 21:24:01 GMT
251
- recorded_with: VCR 2.4.0
251
+ - request:
252
+ method: get
253
+ uri: https://the-guide-staging.herokuapp.com/api/v1/articles/50fb2e6fbd0286d5550135a2/attachments?tags%5B0%5D=home-hero
254
+ body:
255
+ encoding: US-ASCII
256
+ string: ''
257
+ headers:
258
+ User-Agent:
259
+ - Faraday v0.8.8
260
+ X-Reviewed-Authorization:
261
+ - 38e397252ec670ec441733a95204f141
262
+ Accept-Encoding:
263
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
264
+ Accept:
265
+ - '*/*'
266
+ response:
267
+ status:
268
+ code: 200
269
+ message: OK
270
+ headers:
271
+ Access-Control-Allow-Credentials:
272
+ - 'true'
273
+ Access-Control-Allow-Headers:
274
+ - x-pagination, x-requested-with, x-requested-by, x-reviewed-authorization,
275
+ x-skip-cache, Content-Type
276
+ Access-Control-Allow-Methods:
277
+ - OPTIONS, GET, POST, PUT, DELETE
278
+ Access-Control-Allow-Origin:
279
+ - '*'
280
+ Access-Control-Max-Age:
281
+ - '1000'
282
+ Cache-Control:
283
+ - no-cache, no-store
284
+ Content-Type:
285
+ - application/json; charset=utf-8
286
+ Date:
287
+ - Tue, 10 Sep 2013 15:55:47 GMT
288
+ Status:
289
+ - 200 OK
290
+ Strict-Transport-Security:
291
+ - max-age=31536000
292
+ Vary:
293
+ - Accept-Encoding
294
+ X-Rack-Cache:
295
+ - miss
296
+ X-Request-Id:
297
+ - 4901ca02eb37dd6b30d9b4a17594cefd
298
+ X-Runtime:
299
+ - '0.073644'
300
+ X-Ua-Compatible:
301
+ - IE=Edge,chrome=1
302
+ Transfer-Encoding:
303
+ - chunked
304
+ Connection:
305
+ - keep-alive
306
+ body:
307
+ encoding: UTF-8
308
+ string: '{"data":[{"id":"50fb2e74bd0286d5550135e4","created_at":"2013-01-19T23:38:28Z","updated_at":"2013-04-09T14:23:59Z","name":"BGE-medium-web2.jpg","type":"file","tags":["home-hero"],"versions":{"s50x50":"http://reviewed-staging.s3.amazonaws.com/attachment/63583c1baea391b437d54fbee74bc35234ec3ff2/s50x50_BGE-medium-web2.jpg","s150x150":"http://reviewed-staging.s3.amazonaws.com/attachment/63583c1baea391b437d54fbee74bc35234ec3ff2/s150x150_BGE-medium-web2.jpg","s200x75":"http://reviewed-staging.s3.amazonaws.com/attachment/63583c1baea391b437d54fbee74bc35234ec3ff2/s200x75_BGE-medium-web2.jpg","s250x250":"http://reviewed-staging.s3.amazonaws.com/attachment/63583c1baea391b437d54fbee74bc35234ec3ff2/s250x250_BGE-medium-web2.jpg","s300x150":"http://reviewed-staging.s3.amazonaws.com/attachment/63583c1baea391b437d54fbee74bc35234ec3ff2/s300x150_BGE-medium-web2.jpg","s300x112":"http://reviewed-staging.s3.amazonaws.com/attachment/63583c1baea391b437d54fbee74bc35234ec3ff2/s300x112_BGE-medium-web2.jpg","s500x500":"http://reviewed-staging.s3.amazonaws.com/attachment/63583c1baea391b437d54fbee74bc35234ec3ff2/s500x500_BGE-medium-web2.jpg","s600x400":"http://reviewed-staging.s3.amazonaws.com/attachment/63583c1baea391b437d54fbee74bc35234ec3ff2/s600x400_BGE-medium-web2.jpg","s600x600":"http://reviewed-staging.s3.amazonaws.com/attachment/63583c1baea391b437d54fbee74bc35234ec3ff2/s600x600_BGE-medium-web2.jpg","s630x235":"http://reviewed-staging.s3.amazonaws.com/attachment/63583c1baea391b437d54fbee74bc35234ec3ff2/s630x235_BGE-medium-web2.jpg","s940x400":"http://reviewed-staging.s3.amazonaws.com/attachment/63583c1baea391b437d54fbee74bc35234ec3ff2/s940x400_BGE-medium-web2.jpg","s940x350":"http://reviewed-staging.s3.amazonaws.com/attachment/63583c1baea391b437d54fbee74bc35234ec3ff2/s940x350_BGE-medium-web2.jpg","s940x110":"http://reviewed-staging.s3.amazonaws.com/attachment/63583c1baea391b437d54fbee74bc35234ec3ff2/s940x110_BGE-medium-web2.jpg","original":"http://reviewed-staging.s3.amazonaws.com/attachment/63583c1baea391b437d54fbee74bc35234ec3ff2/BGE-medium-web2.jpg"},"caption":"","alt_text":"","data":{"url":"http://reviewed-production.s3.amazonaws.com/attachment/63583c1baea391b437d54fbee74bc35234ec3ff2/BGE-medium-web2.jpg","file_size":81744,"content_type":"image/jpeg"},"position":0,"processing":null,"permissions":{"read":true,"create":false,"update":false,"destroy":false},"api_links":{"collection":{"rel":"/api/v1/attachments","href":"https://the-guide-staging.herokuapp.com/api/v1/attachments"},"resource":{"rel":"/api/v1/attachments/50fb2e74bd0286d5550135e4","href":"https://the-guide-staging.herokuapp.com/api/v1/attachments/50fb2e74bd0286d5550135e4"}}}]}'
309
+ http_version:
310
+ recorded_at: Tue, 10 Sep 2013 15:55:48 GMT
311
+ - request:
312
+ method: get
313
+ uri: https://the-guide-staging.herokuapp.com/api/v1/articles/50fb2e6fbd0286d5550135a2/attachments?tags%5B0%5D=home-hero
314
+ body:
315
+ encoding: US-ASCII
316
+ string: ''
317
+ headers:
318
+ User-Agent:
319
+ - Faraday v0.8.8
320
+ X-Reviewed-Authorization:
321
+ - 38e397252ec670ec441733a95204f141
322
+ Accept-Encoding:
323
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
324
+ Accept:
325
+ - '*/*'
326
+ response:
327
+ status:
328
+ code: 200
329
+ message: OK
330
+ headers:
331
+ Access-Control-Allow-Credentials:
332
+ - 'true'
333
+ Access-Control-Allow-Headers:
334
+ - x-pagination, x-requested-with, x-requested-by, x-reviewed-authorization,
335
+ x-skip-cache, Content-Type
336
+ Access-Control-Allow-Methods:
337
+ - OPTIONS, GET, POST, PUT, DELETE
338
+ Access-Control-Allow-Origin:
339
+ - '*'
340
+ Access-Control-Max-Age:
341
+ - '1000'
342
+ Cache-Control:
343
+ - no-cache, no-store
344
+ Content-Type:
345
+ - application/json; charset=utf-8
346
+ Date:
347
+ - Tue, 10 Sep 2013 15:56:33 GMT
348
+ Status:
349
+ - 200 OK
350
+ Strict-Transport-Security:
351
+ - max-age=31536000
352
+ Vary:
353
+ - Accept-Encoding
354
+ X-Rack-Cache:
355
+ - miss
356
+ X-Request-Id:
357
+ - 0ed1cf800aa1b16b63ac45a40ec884d7
358
+ X-Runtime:
359
+ - '0.051700'
360
+ X-Ua-Compatible:
361
+ - IE=Edge,chrome=1
362
+ Transfer-Encoding:
363
+ - chunked
364
+ Connection:
365
+ - keep-alive
366
+ body:
367
+ encoding: UTF-8
368
+ string: '{"data":[{"id":"50fb2e74bd0286d5550135e4","created_at":"2013-01-19T23:38:28Z","updated_at":"2013-04-09T14:23:59Z","name":"BGE-medium-web2.jpg","type":"file","tags":["home-hero"],"versions":{"s50x50":"http://reviewed-staging.s3.amazonaws.com/attachment/63583c1baea391b437d54fbee74bc35234ec3ff2/s50x50_BGE-medium-web2.jpg","s150x150":"http://reviewed-staging.s3.amazonaws.com/attachment/63583c1baea391b437d54fbee74bc35234ec3ff2/s150x150_BGE-medium-web2.jpg","s200x75":"http://reviewed-staging.s3.amazonaws.com/attachment/63583c1baea391b437d54fbee74bc35234ec3ff2/s200x75_BGE-medium-web2.jpg","s250x250":"http://reviewed-staging.s3.amazonaws.com/attachment/63583c1baea391b437d54fbee74bc35234ec3ff2/s250x250_BGE-medium-web2.jpg","s300x150":"http://reviewed-staging.s3.amazonaws.com/attachment/63583c1baea391b437d54fbee74bc35234ec3ff2/s300x150_BGE-medium-web2.jpg","s300x112":"http://reviewed-staging.s3.amazonaws.com/attachment/63583c1baea391b437d54fbee74bc35234ec3ff2/s300x112_BGE-medium-web2.jpg","s500x500":"http://reviewed-staging.s3.amazonaws.com/attachment/63583c1baea391b437d54fbee74bc35234ec3ff2/s500x500_BGE-medium-web2.jpg","s600x400":"http://reviewed-staging.s3.amazonaws.com/attachment/63583c1baea391b437d54fbee74bc35234ec3ff2/s600x400_BGE-medium-web2.jpg","s600x600":"http://reviewed-staging.s3.amazonaws.com/attachment/63583c1baea391b437d54fbee74bc35234ec3ff2/s600x600_BGE-medium-web2.jpg","s630x235":"http://reviewed-staging.s3.amazonaws.com/attachment/63583c1baea391b437d54fbee74bc35234ec3ff2/s630x235_BGE-medium-web2.jpg","s940x400":"http://reviewed-staging.s3.amazonaws.com/attachment/63583c1baea391b437d54fbee74bc35234ec3ff2/s940x400_BGE-medium-web2.jpg","s940x350":"http://reviewed-staging.s3.amazonaws.com/attachment/63583c1baea391b437d54fbee74bc35234ec3ff2/s940x350_BGE-medium-web2.jpg","s940x110":"http://reviewed-staging.s3.amazonaws.com/attachment/63583c1baea391b437d54fbee74bc35234ec3ff2/s940x110_BGE-medium-web2.jpg","original":"http://reviewed-staging.s3.amazonaws.com/attachment/63583c1baea391b437d54fbee74bc35234ec3ff2/BGE-medium-web2.jpg"},"caption":"","alt_text":"","data":{"url":"http://reviewed-production.s3.amazonaws.com/attachment/63583c1baea391b437d54fbee74bc35234ec3ff2/BGE-medium-web2.jpg","file_size":81744,"content_type":"image/jpeg"},"position":0,"processing":null,"permissions":{"read":true,"create":false,"update":false,"destroy":false},"api_links":{"collection":{"rel":"/api/v1/attachments","href":"https://the-guide-staging.herokuapp.com/api/v1/attachments"},"resource":{"rel":"/api/v1/attachments/50fb2e74bd0286d5550135e4","href":"https://the-guide-staging.herokuapp.com/api/v1/attachments/50fb2e74bd0286d5550135e4"}}}]}'
369
+ http_version:
370
+ recorded_at: Tue, 10 Sep 2013 15:56:34 GMT
371
+ recorded_with: VCR 2.5.0