purdie 0.0.12 → 0.0.13

Sign up to get free protection for your applications and to get access to all the features.
Files changed (79) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +17 -13
  3. data/Rakefile +6 -2
  4. data/features/comments.feature +2 -13
  5. data/features/duff-credentials.feature +2 -3
  6. data/features/flickr-album.feature +5 -0
  7. data/features/flickr-different-size.feature +1 -0
  8. data/features/flickr-with-lookups.feature +1 -0
  9. data/features/rfm.feature +5 -0
  10. data/features/select-file.feature +26 -24
  11. data/features/soundcloud-set.feature +2 -2
  12. data/features/support/fixtures/vcr.nope/A_URL_we_don_t_understand/Handle_a_URL_we_don_t_recognise.yml +125 -0
  13. data/features/support/fixtures/vcr.nope/First_contact_with_the_Real_World/Generate_YAML_for_the_Raw_Funk_Maharishi.yml +536 -0
  14. data/features/support/fixtures/vcr.nope/Flickr/Generate_Flickr_YAML.yml +131 -0
  15. data/features/support/fixtures/vcr.nope/Flickr/Generate_Flickr_YAML_with_lookups.yml +129 -0
  16. data/features/support/fixtures/vcr.nope/Flickr_album/Generate_Flickr_YAML_for_an_album.yml +2280 -0
  17. data/features/support/fixtures/vcr.nope/Handle_comments/Handle_comments_in_a_source_file.yml +131 -0
  18. data/features/support/fixtures/vcr.nope/Missing_or_bad_credentials/Bad_credentials_for_multiple_services.yml +156 -0
  19. data/features/support/fixtures/{vcr → vcr.nope}/Purdie/Generate_several_YAML.yml +0 -0
  20. data/features/support/fixtures/vcr.nope/Select_a_file_to_process/Choose_file_to_process.yml +220 -0
  21. data/features/support/fixtures/vcr.nope/Set_Flickr_picturesize/Generate_Flickr_YAML.yml +131 -0
  22. data/features/support/fixtures/{vcr/Select_a_file_to_process/Choose_file_to_process.yml → vcr.nope/Soundcloud/Generate_SoundCloud_YAML.yml} +4 -4
  23. data/features/support/fixtures/vcr.nope/Soundcloud/Generate_SoundCloud_YAML_for_multiple_tracks.yml +181 -0
  24. data/features/support/fixtures/vcr.nope/Soundcloud_set/Generate_YAML_for_a_SoundCloud_set.yml +461 -0
  25. data/features/support/fixtures/vcr.nope/Vimeo/Generate_Vimeo_YAML.yml +53 -0
  26. data/features/support/fixtures/vcr.nope/Vimeo_albums/Generate_YAML_for_a_Vimeo_album.yml +210 -0
  27. data/features/support/fixtures/vcr.nope/YouTube/Generate_YouTube_YAML.yml +970 -0
  28. data/features/support/fixtures/vcr.nope/YouTube_playlists/Generate_YAML_for_a_YouTube_playlist.yml +9688 -0
  29. data/features/support/fixtures/vcr/A_URL_we_don_t_understand/Handle_a_URL_we_don_t_recognise.yml +23 -17
  30. data/features/support/fixtures/vcr/First_contact_with_the_Real_World/Generate_YAML_for_the_Raw_Funk_Maharishi.yml +134 -57
  31. data/features/support/fixtures/vcr/Flickr/Generate_Flickr_YAML.yml +24 -18
  32. data/features/support/fixtures/vcr/Flickr/Generate_Flickr_YAML_with_lookups.yml +25 -19
  33. data/features/support/fixtures/vcr/Flickr_album/Generate_Flickr_YAML_for_an_album.yml +1438 -193
  34. data/features/support/fixtures/vcr/Handle_comments/Handle_comments_in_a_source_file.yml +23 -100
  35. data/features/support/fixtures/vcr/Missing_or_bad_credentials/Bad_credentials_for_multiple_services.yml +15 -15
  36. data/features/support/fixtures/vcr/Set_Flickr_picturesize/Generate_Flickr_YAML.yml +24 -18
  37. data/features/support/fixtures/vcr/Soundcloud/Generate_SoundCloud_YAML.yml +9 -8
  38. data/features/support/fixtures/vcr/Soundcloud/Generate_SoundCloud_YAML_for_multiple_tracks.yml +14 -14
  39. data/features/support/fixtures/vcr/Soundcloud_set/Generate_YAML_for_a_SoundCloud_set.yml +41 -40
  40. data/features/support/fixtures/vcr/Vimeo/Generate_Vimeo_YAML.yml +8 -8
  41. data/features/support/fixtures/vcr/Vimeo_albums/Generate_YAML_for_a_Vimeo_album.yml +38 -38
  42. data/features/support/fixtures/vcr/YouTube/Generate_YouTube_YAML.yml +873 -873
  43. data/features/support/fixtures/vcr/YouTube_playlists/Generate_YAML_for_a_YouTube_playlist.yml +9108 -1923
  44. data/features/support/hooks.rb +8 -0
  45. data/features/youtube-playlist.feature +0 -2
  46. data/lib/purdie.rb +2 -8
  47. data/lib/purdie/bernard.rb +7 -60
  48. data/lib/purdie/cli.rb +1 -1
  49. data/lib/purdie/config.rb +17 -8
  50. data/lib/purdie/helpers.rb +8 -0
  51. data/lib/purdie/ingester.rb +16 -16
  52. data/lib/purdie/item.rb +36 -0
  53. data/lib/purdie/resolver.rb +15 -0
  54. data/lib/purdie/services/soundcloud.rb +1 -1
  55. data/lib/purdie/source_list.rb +54 -16
  56. data/lib/purdie/version.rb +1 -1
  57. data/purdie.gemspec +19 -19
  58. data/spec/bernard_spec.rb +30 -0
  59. data/spec/config_spec.rb +4 -4
  60. data/spec/item_spec.rb +46 -0
  61. data/spec/resolver_spec.rb +40 -0
  62. data/spec/services/youtube_spec.rb +1 -1
  63. data/spec/source_list_spec.rb +59 -34
  64. data/spec/spec_helper.rb +1 -1
  65. data/spec/support/fixtures/output-generator +2 -0
  66. data/spec/support/fixtures/youtube.tubes +1 -0
  67. data/spec/vcr/Purdie_Bernard/deals_with_YouTube.yml +9686 -0
  68. data/spec/vcr/Purdie_Bernard/processes_files.yml +570 -0
  69. data/spec/vcr/Purdie_Item/populates_itself.yml +182 -0
  70. data/spec/vcr/Purdie_Resolver/resolves_a_Flickr_set.yml +772 -0
  71. data/spec/vcr/Purdie_Resolver/resolves_a_SoundCloud_set.yml +103 -0
  72. data/spec/vcr/Purdie_Resolver/resolves_a_YouTube_playlist.yml +970 -0
  73. data/spec/vcr/Purdie_SourceList/constructs_a_list_from_a_set_URL.yml +772 -0
  74. data/spec/vcr/Purdie_SourceList/make_output/actually_makes_output.yml +526 -0
  75. data/spec/vcr/Purdie_SourceList/process_its_items/processes_items.yml +210 -0
  76. data/spec/vcr/Purdie_SourceList/resolve_sets/constructs_a_list_from_a_set_URL.yml +95 -77
  77. metadata +78 -22
  78. data/features/flickr-alternative-outfile.feature +0 -29
  79. data/features/purdie.feature +0 -48
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: purdie
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.12
4
+ version: 0.0.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - pikesley
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-17 00:00:00.000000000 Z
11
+ date: 2015-04-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor
@@ -84,44 +84,44 @@ dependencies:
84
84
  name: soundcloud
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - ">="
87
+ - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: '0'
89
+ version: '0.3'
90
90
  type: :runtime
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - ">="
94
+ - - "~>"
95
95
  - !ruby/object:Gem::Version
96
- version: '0'
96
+ version: '0.3'
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: activesupport
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - ">="
101
+ - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: '0'
103
+ version: '4.2'
104
104
  type: :runtime
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
- - - ">="
108
+ - - "~>"
109
109
  - !ruby/object:Gem::Version
110
- version: '0'
110
+ version: '4.2'
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: google-api-client
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
- - - ">="
115
+ - - "~>"
116
116
  - !ruby/object:Gem::Version
117
- version: '0'
117
+ version: '0.8'
118
118
  type: :runtime
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
- - - ">="
122
+ - - "~>"
123
123
  - !ruby/object:Gem::Version
124
- version: '0'
124
+ version: '0.8'
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: bundler
127
127
  requirement: !ruby/object:Gem::Requirement
@@ -314,12 +314,10 @@ files:
314
314
  - features/comments.feature
315
315
  - features/duff-credentials.feature
316
316
  - features/flickr-album.feature
317
- - features/flickr-alternative-outfile.feature
318
317
  - features/flickr-different-size.feature
319
318
  - features/flickr-with-lookups.feature
320
319
  - features/flickr.feature
321
320
  - features/no-sources.feature
322
- - features/purdie.feature
323
321
  - features/rfm.feature
324
322
  - features/select-file.feature
325
323
  - features/soundcloud-set.feature
@@ -327,6 +325,23 @@ files:
327
325
  - features/step_definitions/purdie_steps.rb
328
326
  - features/support/env.rb
329
327
  - features/support/fixtures/_config/purdie.yaml
328
+ - features/support/fixtures/vcr.nope/A_URL_we_don_t_understand/Handle_a_URL_we_don_t_recognise.yml
329
+ - features/support/fixtures/vcr.nope/First_contact_with_the_Real_World/Generate_YAML_for_the_Raw_Funk_Maharishi.yml
330
+ - features/support/fixtures/vcr.nope/Flickr/Generate_Flickr_YAML.yml
331
+ - features/support/fixtures/vcr.nope/Flickr/Generate_Flickr_YAML_with_lookups.yml
332
+ - features/support/fixtures/vcr.nope/Flickr_album/Generate_Flickr_YAML_for_an_album.yml
333
+ - features/support/fixtures/vcr.nope/Handle_comments/Handle_comments_in_a_source_file.yml
334
+ - features/support/fixtures/vcr.nope/Missing_or_bad_credentials/Bad_credentials_for_multiple_services.yml
335
+ - features/support/fixtures/vcr.nope/Purdie/Generate_several_YAML.yml
336
+ - features/support/fixtures/vcr.nope/Select_a_file_to_process/Choose_file_to_process.yml
337
+ - features/support/fixtures/vcr.nope/Set_Flickr_picturesize/Generate_Flickr_YAML.yml
338
+ - features/support/fixtures/vcr.nope/Soundcloud/Generate_SoundCloud_YAML.yml
339
+ - features/support/fixtures/vcr.nope/Soundcloud/Generate_SoundCloud_YAML_for_multiple_tracks.yml
340
+ - features/support/fixtures/vcr.nope/Soundcloud_set/Generate_YAML_for_a_SoundCloud_set.yml
341
+ - features/support/fixtures/vcr.nope/Vimeo/Generate_Vimeo_YAML.yml
342
+ - features/support/fixtures/vcr.nope/Vimeo_albums/Generate_YAML_for_a_Vimeo_album.yml
343
+ - features/support/fixtures/vcr.nope/YouTube/Generate_YouTube_YAML.yml
344
+ - features/support/fixtures/vcr.nope/YouTube_playlists/Generate_YAML_for_a_YouTube_playlist.yml
330
345
  - features/support/fixtures/vcr/A_URL_we_don_t_understand/Handle_a_URL_we_don_t_recognise.yml
331
346
  - features/support/fixtures/vcr/First_contact_with_the_Real_World/Generate_YAML_for_the_Raw_Funk_Maharishi.yml
332
347
  - features/support/fixtures/vcr/Flickr/Generate_Flickr_YAML.yml
@@ -334,8 +349,6 @@ files:
334
349
  - features/support/fixtures/vcr/Flickr_album/Generate_Flickr_YAML_for_an_album.yml
335
350
  - features/support/fixtures/vcr/Handle_comments/Handle_comments_in_a_source_file.yml
336
351
  - features/support/fixtures/vcr/Missing_or_bad_credentials/Bad_credentials_for_multiple_services.yml
337
- - features/support/fixtures/vcr/Purdie/Generate_several_YAML.yml
338
- - features/support/fixtures/vcr/Select_a_file_to_process/Choose_file_to_process.yml
339
352
  - features/support/fixtures/vcr/Set_Flickr_picturesize/Generate_Flickr_YAML.yml
340
353
  - features/support/fixtures/vcr/Soundcloud/Generate_SoundCloud_YAML.yml
341
354
  - features/support/fixtures/vcr/Soundcloud/Generate_SoundCloud_YAML_for_multiple_tracks.yml
@@ -357,7 +370,9 @@ files:
357
370
  - lib/purdie/exceptions.rb
358
371
  - lib/purdie/helpers.rb
359
372
  - lib/purdie/ingester.rb
373
+ - lib/purdie/item.rb
360
374
  - lib/purdie/license_manager.rb
375
+ - lib/purdie/resolver.rb
361
376
  - lib/purdie/services/flickr.rb
362
377
  - lib/purdie/services/soundcloud.rb
363
378
  - lib/purdie/services/vimeo.rb
@@ -365,21 +380,32 @@ files:
365
380
  - lib/purdie/source_list.rb
366
381
  - lib/purdie/version.rb
367
382
  - purdie.gemspec
383
+ - spec/bernard_spec.rb
368
384
  - spec/config_spec.rb
369
385
  - spec/duff_keys_spec.rb
370
386
  - spec/helpers_spec.rb
387
+ - spec/item_spec.rb
371
388
  - spec/license_manager_spec.rb
372
389
  - spec/purdie_spec.rb
390
+ - spec/resolver_spec.rb
373
391
  - spec/services/flickr_spec.rb
374
392
  - spec/services/soundcloud_spec.rb
375
393
  - spec/services/vimeo_spec.rb
376
394
  - spec/services/youtube_spec.rb
377
395
  - spec/source_list_spec.rb
378
396
  - spec/spec_helper.rb
397
+ - spec/support/fixtures/output-generator
379
398
  - spec/support/fixtures/soundcloud.sounds
380
399
  - spec/support/fixtures/vimeo.vids
381
400
  - spec/support/fixtures/with-comments.source
401
+ - spec/support/fixtures/youtube.tubes
382
402
  - spec/support/vcr_setup.rb
403
+ - spec/vcr/Purdie_Bernard/deals_with_YouTube.yml
404
+ - spec/vcr/Purdie_Bernard/processes_files.yml
405
+ - spec/vcr/Purdie_Item/populates_itself.yml
406
+ - spec/vcr/Purdie_Resolver/resolves_a_Flickr_set.yml
407
+ - spec/vcr/Purdie_Resolver/resolves_a_SoundCloud_set.yml
408
+ - spec/vcr/Purdie_Resolver/resolves_a_YouTube_playlist.yml
383
409
  - spec/vcr/Purdie_Services_Flickr/distills_data_for_a_regular_photo.yml
384
410
  - spec/vcr/Purdie_Services_Flickr/do_the_local_config_lookups/looks_up_the_default_title.yml
385
411
  - spec/vcr/Purdie_Services_Flickr/falls_back_to_the_default_photographer_name.yml
@@ -398,6 +424,9 @@ files:
398
424
  - spec/vcr/Purdie_Services_YouTube/gets_the_correct_license.yml
399
425
  - spec/vcr/Purdie_Services_YouTube/ingests_a_video.yml
400
426
  - spec/vcr/Purdie_Services_YouTube/resolve_a_playlist/resolves_a_playlist_from_a_shitty_YouTube_URL.yml
427
+ - spec/vcr/Purdie_SourceList/constructs_a_list_from_a_set_URL.yml
428
+ - spec/vcr/Purdie_SourceList/make_output/actually_makes_output.yml
429
+ - spec/vcr/Purdie_SourceList/process_its_items/processes_items.yml
401
430
  - spec/vcr/Purdie_SourceList/resolve_sets/constructs_a_list_from_a_set_URL.yml
402
431
  - spec/vcr/Purdie_SourceList/resolve_sets/resolves_a_Flickr_set.yml
403
432
  - spec/vcr/Purdie_SourceList/resolve_sets/resolves_a_SoundCloud_set.yml
@@ -432,12 +461,10 @@ test_files:
432
461
  - features/comments.feature
433
462
  - features/duff-credentials.feature
434
463
  - features/flickr-album.feature
435
- - features/flickr-alternative-outfile.feature
436
464
  - features/flickr-different-size.feature
437
465
  - features/flickr-with-lookups.feature
438
466
  - features/flickr.feature
439
467
  - features/no-sources.feature
440
- - features/purdie.feature
441
468
  - features/rfm.feature
442
469
  - features/select-file.feature
443
470
  - features/soundcloud-set.feature
@@ -445,6 +472,23 @@ test_files:
445
472
  - features/step_definitions/purdie_steps.rb
446
473
  - features/support/env.rb
447
474
  - features/support/fixtures/_config/purdie.yaml
475
+ - features/support/fixtures/vcr.nope/A_URL_we_don_t_understand/Handle_a_URL_we_don_t_recognise.yml
476
+ - features/support/fixtures/vcr.nope/First_contact_with_the_Real_World/Generate_YAML_for_the_Raw_Funk_Maharishi.yml
477
+ - features/support/fixtures/vcr.nope/Flickr/Generate_Flickr_YAML.yml
478
+ - features/support/fixtures/vcr.nope/Flickr/Generate_Flickr_YAML_with_lookups.yml
479
+ - features/support/fixtures/vcr.nope/Flickr_album/Generate_Flickr_YAML_for_an_album.yml
480
+ - features/support/fixtures/vcr.nope/Handle_comments/Handle_comments_in_a_source_file.yml
481
+ - features/support/fixtures/vcr.nope/Missing_or_bad_credentials/Bad_credentials_for_multiple_services.yml
482
+ - features/support/fixtures/vcr.nope/Purdie/Generate_several_YAML.yml
483
+ - features/support/fixtures/vcr.nope/Select_a_file_to_process/Choose_file_to_process.yml
484
+ - features/support/fixtures/vcr.nope/Set_Flickr_picturesize/Generate_Flickr_YAML.yml
485
+ - features/support/fixtures/vcr.nope/Soundcloud/Generate_SoundCloud_YAML.yml
486
+ - features/support/fixtures/vcr.nope/Soundcloud/Generate_SoundCloud_YAML_for_multiple_tracks.yml
487
+ - features/support/fixtures/vcr.nope/Soundcloud_set/Generate_YAML_for_a_SoundCloud_set.yml
488
+ - features/support/fixtures/vcr.nope/Vimeo/Generate_Vimeo_YAML.yml
489
+ - features/support/fixtures/vcr.nope/Vimeo_albums/Generate_YAML_for_a_Vimeo_album.yml
490
+ - features/support/fixtures/vcr.nope/YouTube/Generate_YouTube_YAML.yml
491
+ - features/support/fixtures/vcr.nope/YouTube_playlists/Generate_YAML_for_a_YouTube_playlist.yml
448
492
  - features/support/fixtures/vcr/A_URL_we_don_t_understand/Handle_a_URL_we_don_t_recognise.yml
449
493
  - features/support/fixtures/vcr/First_contact_with_the_Real_World/Generate_YAML_for_the_Raw_Funk_Maharishi.yml
450
494
  - features/support/fixtures/vcr/Flickr/Generate_Flickr_YAML.yml
@@ -452,8 +496,6 @@ test_files:
452
496
  - features/support/fixtures/vcr/Flickr_album/Generate_Flickr_YAML_for_an_album.yml
453
497
  - features/support/fixtures/vcr/Handle_comments/Handle_comments_in_a_source_file.yml
454
498
  - features/support/fixtures/vcr/Missing_or_bad_credentials/Bad_credentials_for_multiple_services.yml
455
- - features/support/fixtures/vcr/Purdie/Generate_several_YAML.yml
456
- - features/support/fixtures/vcr/Select_a_file_to_process/Choose_file_to_process.yml
457
499
  - features/support/fixtures/vcr/Set_Flickr_picturesize/Generate_Flickr_YAML.yml
458
500
  - features/support/fixtures/vcr/Soundcloud/Generate_SoundCloud_YAML.yml
459
501
  - features/support/fixtures/vcr/Soundcloud/Generate_SoundCloud_YAML_for_multiple_tracks.yml
@@ -468,21 +510,32 @@ test_files:
468
510
  - features/vimeo.feature
469
511
  - features/youtube-playlist.feature
470
512
  - features/youtube.feature
513
+ - spec/bernard_spec.rb
471
514
  - spec/config_spec.rb
472
515
  - spec/duff_keys_spec.rb
473
516
  - spec/helpers_spec.rb
517
+ - spec/item_spec.rb
474
518
  - spec/license_manager_spec.rb
475
519
  - spec/purdie_spec.rb
520
+ - spec/resolver_spec.rb
476
521
  - spec/services/flickr_spec.rb
477
522
  - spec/services/soundcloud_spec.rb
478
523
  - spec/services/vimeo_spec.rb
479
524
  - spec/services/youtube_spec.rb
480
525
  - spec/source_list_spec.rb
481
526
  - spec/spec_helper.rb
527
+ - spec/support/fixtures/output-generator
482
528
  - spec/support/fixtures/soundcloud.sounds
483
529
  - spec/support/fixtures/vimeo.vids
484
530
  - spec/support/fixtures/with-comments.source
531
+ - spec/support/fixtures/youtube.tubes
485
532
  - spec/support/vcr_setup.rb
533
+ - spec/vcr/Purdie_Bernard/deals_with_YouTube.yml
534
+ - spec/vcr/Purdie_Bernard/processes_files.yml
535
+ - spec/vcr/Purdie_Item/populates_itself.yml
536
+ - spec/vcr/Purdie_Resolver/resolves_a_Flickr_set.yml
537
+ - spec/vcr/Purdie_Resolver/resolves_a_SoundCloud_set.yml
538
+ - spec/vcr/Purdie_Resolver/resolves_a_YouTube_playlist.yml
486
539
  - spec/vcr/Purdie_Services_Flickr/distills_data_for_a_regular_photo.yml
487
540
  - spec/vcr/Purdie_Services_Flickr/do_the_local_config_lookups/looks_up_the_default_title.yml
488
541
  - spec/vcr/Purdie_Services_Flickr/falls_back_to_the_default_photographer_name.yml
@@ -501,6 +554,9 @@ test_files:
501
554
  - spec/vcr/Purdie_Services_YouTube/gets_the_correct_license.yml
502
555
  - spec/vcr/Purdie_Services_YouTube/ingests_a_video.yml
503
556
  - spec/vcr/Purdie_Services_YouTube/resolve_a_playlist/resolves_a_playlist_from_a_shitty_YouTube_URL.yml
557
+ - spec/vcr/Purdie_SourceList/constructs_a_list_from_a_set_URL.yml
558
+ - spec/vcr/Purdie_SourceList/make_output/actually_makes_output.yml
559
+ - spec/vcr/Purdie_SourceList/process_its_items/processes_items.yml
504
560
  - spec/vcr/Purdie_SourceList/resolve_sets/constructs_a_list_from_a_set_URL.yml
505
561
  - spec/vcr/Purdie_SourceList/resolve_sets/resolves_a_Flickr_set.yml
506
562
  - spec/vcr/Purdie_SourceList/resolve_sets/resolves_a_SoundCloud_set.yml
@@ -1,29 +0,0 @@
1
- @vcr
2
- Feature: Flickr
3
-
4
- Scenario: Generate Flickr YAML
5
- Given a file named "_sources/flickr.csv" with:
6
- """
7
- https://www.flickr.com/photos/rawfunkmaharishi/15631479625/
8
- """
9
- And a file named "_config/purdie.yaml" with:
10
- """
11
- services:
12
- Flickr:
13
- output_file: "_outfiles/photos.yaml"
14
- """
15
- When I successfully run `purdie fetch`
16
- Then a file named "_outfiles/photos.yaml" should exist
17
- And the file "_outfiles/photos.yaml" should contain:
18
- """
19
- - title: The Comedy, October 2014
20
- date: '2014-10-22'
21
- photo_page: https://www.flickr.com/photos/rawfunkmaharishi/15631479625/
22
- photo_url: https://farm4.staticflickr.com/3933/15631479625_b6168ee903_m.jpg
23
- license: Attribution-NonCommercial-ShareAlike
24
- license_url: https://creativecommons.org/licenses/by-nc-sa/2.0/
25
- photographer: kim
26
- """
27
- And a file named "_data/flickr.yaml" should not exist
28
- And a file named "_data/soundcloud.yaml" should not exist
29
- And a file named "_data/vimeo.yaml" should not exist
@@ -1,48 +0,0 @@
1
- @vcr
2
- Feature: Purdie
3
-
4
- Scenario: Generate several YAML
5
- Given a file named "_sources/sources.csv" with:
6
- """
7
- https://soundcloud.com/rawfunkmaharishi/hexaflexagon-1
8
- https://www.flickr.com/photos/rawfunkmaharishi/15631479625/
9
- https://soundcloud.com/rawfunkmaharishi/junalbandi-3
10
- https://vimeo.com/111356018
11
- """
12
- When I successfully run `purdie fetch`
13
- Then a file named "_data/soundcloud.yaml" should exist
14
- And the file "_data/soundcloud.yaml" should contain:
15
- """
16
- - title: Hexaflexagon
17
- id: 193008299
18
- location: Islington Academy
19
- date: '2015-02-18'
20
- license: Attribution-NonCommercial-ShareAlike
21
- license_url: http://creativecommons.org/licenses/by-nc-sa/4.0/
22
- - title: Junalbandi
23
- id: 193005357
24
- location: Islington Academy
25
- date: '2015-02-18'
26
- license: Attribution-NonCommercial-ShareAlike
27
- license_url: http://creativecommons.org/licenses/by-nc-sa/4.0/
28
- """
29
- And a file named "_data/flickr.yaml" should exist
30
- And the file "_data/flickr.yaml" should contain:
31
- """
32
- - title: The Comedy, October 2014
33
- date: '2014-10-22'
34
- photo_page: https://www.flickr.com/photos/rawfunkmaharishi/15631479625/
35
- photo_url: https://farm4.staticflickr.com/3933/15631479625_b6168ee903_m.jpg
36
- license: Attribution-NonCommercial-ShareAlike
37
- license_url: https://creativecommons.org/licenses/by-nc-sa/2.0/
38
- photographer: kim
39
- """
40
- And a file named "_data/vimeo.yaml" should exist
41
- And the file "_data/vimeo.yaml" should contain:
42
- """
43
- ---
44
- - title: Safety On Board
45
- id: 111356018
46
- license: Attribution-NonCommercial-ShareAlike
47
- license_url: http://creativecommons.org/licenses/by-nc-sa/3.0/
48
- """