reviewed 0.9.0 → 0.9.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 58217355d3b7a2794201386a1ecc80a4834afb70
4
- data.tar.gz: 6652fe39fa92662e178d802c991161eed465cdcb
3
+ metadata.gz: db3a05b1d0b2a929328c41ab48c40b9b8707fd35
4
+ data.tar.gz: 0ccd060550059118ec043d4e85a062daf6f88d4a
5
5
  SHA512:
6
- metadata.gz: 8eaff18df51c8dde20eefe6c14a879e51a75e9074b8e3d8bf715ba19cbc0e8eeb79f399143c70f85c9d03aa662de8821c3a140b3245bdc95f0340a552d819e7e
7
- data.tar.gz: 4f2d885fac82e767e0267c85046cfb0cfb1ba66491c97ab7a519e6936b30f5a87339aa2e92ca2e78a36a3ee92f71804b1fe3b800c590bd6c58ab6a8bdfaf32c7
6
+ metadata.gz: 54659e246365f426c614d133af5e7abe9a327e4c004274ae7b97903d26e164d15e2812dd46d3715d63f8298b7b479ecf67f5602bdafa8dfb05c5fe88b6451377
7
+ data.tar.gz: b22a947086bd78edcf8d8e6bba98f56f6e0e00bff71aaba12d26a0e723c605547b3185eff0598becd5274220072c5fb440a1f03da4e431fbf5125840dc027919
@@ -16,7 +16,7 @@ module Reviewed
16
16
  end
17
17
 
18
18
  if fetch.present?
19
- attachments << fetch_attachments(opts.merge!(tags: fetch))
19
+ attachments << fetch_attachments(opts.merge!(tags: fetch)).to_a
20
20
  end
21
21
  else
22
22
  attachments = fetch_attachments(opts).to_a
@@ -1,4 +1,4 @@
1
1
  module Reviewed
2
- VERSION = "0.9.0"
2
+ VERSION = "0.9.1"
3
3
  API_VERSION = 'v1'
4
4
  end
@@ -22,7 +22,7 @@ describe Reviewed::Article, vcr: true do
22
22
 
23
23
  it 'merges local and fetched tags' do
24
24
  @article.stub(:fetch_attachments).
25
- and_return(Reviewed::Article.new(tags: ['fetched']))
25
+ and_return([Reviewed::Article.new(tags: ['fetched'])])
26
26
  @article.should_receive(:fetch_attachments).with({tags: ['foobar']})
27
27
  attachments = @article.attachments(tags: ['hero', 'foobar'])
28
28
  attachments.count.should eql(2)
@@ -428,4 +428,128 @@ http_interactions:
428
428
  string: '{"data":[]}'
429
429
  http_version:
430
430
  recorded_at: Tue, 10 Sep 2013 16:02:06 GMT
431
+ - request:
432
+ method: get
433
+ uri: https://the-guide-staging.herokuapp.com/api/v1/articles/50fb2e6fbd0286d5550135a2/attachments?tags%5B0%5D=gallery
434
+ body:
435
+ encoding: US-ASCII
436
+ string: ''
437
+ headers:
438
+ User-Agent:
439
+ - Faraday v0.8.8
440
+ X-Reviewed-Authorization:
441
+ - 38e397252ec670ec441733a95204f141
442
+ Accept-Encoding:
443
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
444
+ Accept:
445
+ - '*/*'
446
+ response:
447
+ status:
448
+ code: 200
449
+ message: OK
450
+ headers:
451
+ Access-Control-Allow-Credentials:
452
+ - 'true'
453
+ Access-Control-Allow-Headers:
454
+ - x-pagination, x-requested-with, x-requested-by, x-reviewed-authorization,
455
+ x-skip-cache, Content-Type
456
+ Access-Control-Allow-Methods:
457
+ - OPTIONS, GET, POST, PUT, DELETE
458
+ Access-Control-Allow-Origin:
459
+ - '*'
460
+ Access-Control-Max-Age:
461
+ - '1000'
462
+ Cache-Control:
463
+ - no-cache, no-store
464
+ Content-Type:
465
+ - application/json; charset=utf-8
466
+ Date:
467
+ - Tue, 10 Sep 2013 17:57:57 GMT
468
+ Etag:
469
+ - '"e0aa021e21dddbd6d8cecec71e9cf564"'
470
+ Status:
471
+ - 200 OK
472
+ Strict-Transport-Security:
473
+ - max-age=31536000
474
+ Vary:
475
+ - Accept-Encoding
476
+ X-Rack-Cache:
477
+ - miss
478
+ X-Request-Id:
479
+ - c9fe9cdd76759b1ff47970f9c36318cc
480
+ X-Runtime:
481
+ - '0.001218'
482
+ X-Ua-Compatible:
483
+ - IE=Edge,chrome=1
484
+ Transfer-Encoding:
485
+ - chunked
486
+ Connection:
487
+ - keep-alive
488
+ body:
489
+ encoding: UTF-8
490
+ string: '{"data":[]}'
491
+ http_version:
492
+ recorded_at: Tue, 10 Sep 2013 17:57:58 GMT
493
+ - request:
494
+ method: get
495
+ uri: https://the-guide-staging.herokuapp.com/api/v1/articles/50fb2e6fbd0286d5550135a2/attachments?tags%5B0%5D=gallery
496
+ body:
497
+ encoding: US-ASCII
498
+ string: ''
499
+ headers:
500
+ User-Agent:
501
+ - Faraday v0.8.8
502
+ X-Reviewed-Authorization:
503
+ - 38e397252ec670ec441733a95204f141
504
+ Accept-Encoding:
505
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
506
+ Accept:
507
+ - '*/*'
508
+ response:
509
+ status:
510
+ code: 200
511
+ message: OK
512
+ headers:
513
+ Access-Control-Allow-Credentials:
514
+ - 'true'
515
+ Access-Control-Allow-Headers:
516
+ - x-pagination, x-requested-with, x-requested-by, x-reviewed-authorization,
517
+ x-skip-cache, Content-Type
518
+ Access-Control-Allow-Methods:
519
+ - OPTIONS, GET, POST, PUT, DELETE
520
+ Access-Control-Allow-Origin:
521
+ - '*'
522
+ Access-Control-Max-Age:
523
+ - '1000'
524
+ Cache-Control:
525
+ - no-cache, no-store
526
+ Content-Type:
527
+ - application/json; charset=utf-8
528
+ Date:
529
+ - Tue, 10 Sep 2013 17:58:04 GMT
530
+ Etag:
531
+ - '"e0aa021e21dddbd6d8cecec71e9cf564"'
532
+ Status:
533
+ - 200 OK
534
+ Strict-Transport-Security:
535
+ - max-age=31536000
536
+ Vary:
537
+ - Accept-Encoding
538
+ X-Rack-Cache:
539
+ - miss
540
+ X-Request-Id:
541
+ - 8f1d7cbf94f870340a2a9582a4970c44
542
+ X-Runtime:
543
+ - '0.001032'
544
+ X-Ua-Compatible:
545
+ - IE=Edge,chrome=1
546
+ Transfer-Encoding:
547
+ - chunked
548
+ Connection:
549
+ - keep-alive
550
+ body:
551
+ encoding: UTF-8
552
+ string: '{"data":[]}'
553
+ http_version:
554
+ recorded_at: Tue, 10 Sep 2013 17:58:05 GMT
431
555
  recorded_with: VCR 2.5.0
@@ -428,4 +428,66 @@ http_interactions:
428
428
  string: '{"data":[]}'
429
429
  http_version:
430
430
  recorded_at: Tue, 10 Sep 2013 16:02:06 GMT
431
+ - request:
432
+ method: get
433
+ uri: https://the-guide-staging.herokuapp.com/api/v1/articles/50fb2e6fbd0286d5550135a2/attachments?tags%5B0%5D=doesnotcompute
434
+ body:
435
+ encoding: US-ASCII
436
+ string: ''
437
+ headers:
438
+ User-Agent:
439
+ - Faraday v0.8.8
440
+ X-Reviewed-Authorization:
441
+ - 38e397252ec670ec441733a95204f141
442
+ Accept-Encoding:
443
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
444
+ Accept:
445
+ - '*/*'
446
+ response:
447
+ status:
448
+ code: 200
449
+ message: OK
450
+ headers:
451
+ Access-Control-Allow-Credentials:
452
+ - 'true'
453
+ Access-Control-Allow-Headers:
454
+ - x-pagination, x-requested-with, x-requested-by, x-reviewed-authorization,
455
+ x-skip-cache, Content-Type
456
+ Access-Control-Allow-Methods:
457
+ - OPTIONS, GET, POST, PUT, DELETE
458
+ Access-Control-Allow-Origin:
459
+ - '*'
460
+ Access-Control-Max-Age:
461
+ - '1000'
462
+ Cache-Control:
463
+ - no-cache, no-store
464
+ Content-Type:
465
+ - application/json; charset=utf-8
466
+ Date:
467
+ - Tue, 10 Sep 2013 17:58:09 GMT
468
+ Etag:
469
+ - '"e0aa021e21dddbd6d8cecec71e9cf564"'
470
+ Status:
471
+ - 200 OK
472
+ Strict-Transport-Security:
473
+ - max-age=31536000
474
+ Vary:
475
+ - Accept-Encoding
476
+ X-Rack-Cache:
477
+ - miss
478
+ X-Request-Id:
479
+ - 69eb819d768e4d69a16cea6456d2e5a0
480
+ X-Runtime:
481
+ - '0.000934'
482
+ X-Ua-Compatible:
483
+ - IE=Edge,chrome=1
484
+ Transfer-Encoding:
485
+ - chunked
486
+ Connection:
487
+ - keep-alive
488
+ body:
489
+ encoding: UTF-8
490
+ string: '{"data":[]}'
491
+ http_version:
492
+ recorded_at: Tue, 10 Sep 2013 17:58:10 GMT
431
493
  recorded_with: VCR 2.5.0
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: reviewed
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
4
+ version: 0.9.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nick Plante