purdie 0.0.12 → 0.0.13

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.
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
@@ -1,88 +1,5 @@
1
1
  ---
2
2
  http_interactions:
3
- - request:
4
- method: get
5
- uri: http://api.soundcloud.com/resolve?client_id=<SOUNDCLOUD_CLIENT_ID>&format=json&url=https://soundcloud.com/rawfunkmaharishi/hexaflexagon-1
6
- body:
7
- encoding: US-ASCII
8
- string: ''
9
- headers:
10
- User-Agent:
11
- - SoundCloud Ruby Wrapper 0.13.3
12
- response:
13
- status:
14
- code: 302
15
- message: Found
16
- headers:
17
- Access-Control-Allow-Headers:
18
- - Accept, Authorization, Content-Type, Origin
19
- Access-Control-Allow-Methods:
20
- - GET, PUT, POST, DELETE
21
- Access-Control-Allow-Origin:
22
- - "*"
23
- Access-Control-Expose-Headers:
24
- - Date
25
- Cache-Control:
26
- - no-cache
27
- Content-Type:
28
- - application/json; charset=utf-8
29
- Date:
30
- - Wed, 11 Mar 2015 17:13:05 GMT
31
- Location:
32
- - https://api.soundcloud.com/tracks/193008299.json?client_id=<SOUNDCLOUD_CLIENT_ID>
33
- Server:
34
- - am/2
35
- Content-Length:
36
- - '129'
37
- body:
38
- encoding: UTF-8
39
- string: '{"status":"302 - Found","location":"https://api.soundcloud.com/tracks/193008299.json?client_id=<SOUNDCLOUD_CLIENT_ID>"}'
40
- http_version:
41
- recorded_at: Wed, 11 Mar 2015 17:13:05 GMT
42
- - request:
43
- method: get
44
- uri: https://api.soundcloud.com/tracks/193008299.json?client_id=<SOUNDCLOUD_CLIENT_ID>
45
- body:
46
- encoding: US-ASCII
47
- string: ''
48
- headers:
49
- User-Agent:
50
- - SoundCloud Ruby Wrapper 0.13.3
51
- response:
52
- status:
53
- code: 200
54
- message: OK
55
- headers:
56
- Access-Control-Allow-Headers:
57
- - Accept, Authorization, Content-Type, Origin
58
- Access-Control-Allow-Methods:
59
- - GET, PUT, POST, DELETE
60
- Access-Control-Allow-Origin:
61
- - "*"
62
- Access-Control-Expose-Headers:
63
- - Date
64
- Cache-Control:
65
- - max-age=600, public
66
- Content-Type:
67
- - application/json; charset=utf-8
68
- Date:
69
- - Wed, 11 Mar 2015 17:13:05 GMT
70
- Etag:
71
- - '"f53037e9d5ac7875cf1290e71218b857"'
72
- Server:
73
- - am/2
74
- Vary:
75
- - Authorization, Accept
76
- Content-Length:
77
- - '1555'
78
- body:
79
- encoding: UTF-8
80
- string: '{"kind":"track","id":193008299,"created_at":"2015/02/25 19:24:51 +0000","user_id":56479293,"duration":209626,"commentable":true,"state":"finished","original_content_size":8436471,"last_modified":"2015/02/27
81
- 17:08:45 +0000","sharing":"public","tag_list":"\"islington academy sessions\"","permalink":"hexaflexagon-1","streamable":true,"embeddable_by":"all","downloadable":true,"purchase_url":null,"label_id":null,"purchase_title":null,"genre":"funk","title":"Hexaflexagon","description":"Islington
82
- Academy","label_name":null,"release":null,"track_type":null,"key_signature":null,"isrc":null,"video_url":null,"bpm":null,"release_year":2015,"release_month":2,"release_day":18,"original_format":"mp3","license":"cc-by-nc-sa","uri":"https://api.soundcloud.com/tracks/193008299","user":{"id":56479293,"kind":"user","permalink":"rawfunkmaharishi","username":"Raw
83
- Funk Maharishi","last_modified":"2015/02/27 15:07:28 +0000","uri":"https://api.soundcloud.com/users/56479293","permalink_url":"http://soundcloud.com/rawfunkmaharishi","avatar_url":"https://i1.sndcdn.com/avatars-000110957821-ac80gy-large.jpg"},"permalink_url":"http://soundcloud.com/rawfunkmaharishi/hexaflexagon-1","artwork_url":null,"waveform_url":"https://w1.sndcdn.com/CxyZz6RUbqZN_m.png","stream_url":"https://api.soundcloud.com/tracks/193008299/stream","download_url":"https://api.soundcloud.com/tracks/193008299/download","playback_count":45,"download_count":3,"favoritings_count":0,"comment_count":0,"attachments_uri":"https://api.soundcloud.com/tracks/193008299/attachments","policy":"ALLOW"}'
84
- http_version:
85
- recorded_at: Wed, 11 Mar 2015 17:13:05 GMT
86
3
  - request:
87
4
  method: post
88
5
  uri: https://api.flickr.com/services/rest/
@@ -98,8 +15,8 @@ http_interactions:
98
15
  - FlickRaw/0.9.8
99
16
  Authorization:
100
17
  - OAuth realm="https://api.flickr.com/services/rest/", oauth_consumer_key="<FLICKR_API_KEY>",
101
- oauth_nonce="smllNFLImRfGQxvSGGFNx%2FpwlrLbzbKzoUtSJFxWfjc%3D", oauth_signature="<FLICKR_SECRET>%26",
102
- oauth_signature_method="PLAINTEXT", oauth_timestamp="1426093985", oauth_token="",
18
+ oauth_nonce="rad2z34NcvatMOr5gA6VJhPnlt0xfZi0xyjljXORPoc%3D", oauth_signature="<FLICKR_SECRET>%26",
19
+ oauth_signature_method="PLAINTEXT", oauth_timestamp="1427878386", oauth_token="",
103
20
  oauth_version="1.0"
104
21
  Content-Type:
105
22
  - application/x-www-form-urlencoded
@@ -109,7 +26,7 @@ http_interactions:
109
26
  message: OK
110
27
  headers:
111
28
  Date:
112
- - Wed, 11 Mar 2015 17:13:06 GMT
29
+ - Wed, 01 Apr 2015 08:53:05 GMT
113
30
  Content-Type:
114
31
  - application/json
115
32
  Content-Length:
@@ -121,16 +38,18 @@ http_interactions:
121
38
  Cache-Control:
122
39
  - private
123
40
  X-Served-By:
124
- - www224.flickr.bf1.yahoo.com
41
+ - www8.flickr.bf1.yahoo.com
125
42
  Vary:
126
43
  - Accept-Encoding
127
44
  Age:
128
45
  - '0'
129
46
  Via:
130
- - http/1.1 fts115.flickr.bf1.yahoo.com (ApacheTrafficServer/4.0.2 [cMsSf ]),
131
- http/1.1 r17.ycpi.dea.yahoo.net (ApacheTrafficServer [cMsSf ])
47
+ - http/1.1 fts120.flickr.bf1.yahoo.com (ApacheTrafficServer/4.0.2 [cMsSf ]),
48
+ http/1.1 r14.ycpi.dea.yahoo.net (ApacheTrafficServer [cMsSf ])
132
49
  Server:
133
50
  - ATS
51
+ Strict-Transport-Security:
52
+ - max-age=259200
134
53
  Connection:
135
54
  - keep-alive
136
55
  body:
@@ -138,10 +57,10 @@ http_interactions:
138
57
  string: '{"photo":{"id":"15631479625","secret":"b6168ee903","server":"3933","farm":4,"dateuploaded":"1414326010","isfavorite":0,"license":"1","safety_level":"0","rotation":0,"originalsecret":"3191340cdb","originalformat":"jpg","owner":{"nsid":"128943844@N06","username":"rawfunkmaharishi","realname":"Raw
139
58
  Funk Maharishi","location":"","iconserver":"3933","iconfarm":4,"path_alias":"rawfunkmaharishi"},"title":{"_content":"The
140
59
  Comedy, October 2014"},"description":{"_content":""},"visibility":{"ispublic":1,"isfriend":0,"isfamily":0},"dates":{"posted":"1414326010","taken":"2014-10-22
141
- 15:54:24","takengranularity":"0","takenunknown":"0","lastupdate":"1416111853"},"views":"94","editability":{"cancomment":0,"canaddmeta":0},"publiceditability":{"cancomment":1,"canaddmeta":0},"usage":{"candownload":1,"canblog":0,"canprint":0,"canshare":1},"comments":{"_content":"0"},"notes":{"note":[]},"people":{"haspeople":0},"tags":{"tag":[{"id":"128898522-15631479625-1422028","author":"128943844@N06","authorname":"rawfunkmaharishi","raw":"the
60
+ 15:54:24","takengranularity":"0","takenunknown":"0","lastupdate":"1416111853"},"views":"96","editability":{"cancomment":0,"canaddmeta":0},"publiceditability":{"cancomment":1,"canaddmeta":0},"usage":{"candownload":1,"canblog":0,"canprint":0,"canshare":1},"comments":{"_content":"0"},"notes":{"note":[]},"people":{"haspeople":0},"tags":{"tag":[{"id":"128898522-15631479625-1422028","author":"128943844@N06","authorname":"rawfunkmaharishi","raw":"the
142
61
  comedy","_content":"thecomedy","machine_tag":0},{"id":"128898522-15631479625-17975","author":"128943844@N06","authorname":"rawfunkmaharishi","raw":"gigs","_content":"gigs","machine_tag":0},{"id":"128898522-15631479625-228989594","author":"128943844@N06","authorname":"rawfunkmaharishi","raw":"photographer:kim","_content":"photographerkim","machine_tag":0}]},"urls":{"url":[{"type":"photopage","_content":"https:\/\/www.flickr.com\/photos\/rawfunkmaharishi\/15631479625\/"}]},"media":"photo"},"stat":"ok"}'
143
62
  http_version:
144
- recorded_at: Wed, 11 Mar 2015 17:13:06 GMT
63
+ recorded_at: Wed, 01 Apr 2015 08:53:07 GMT
145
64
  - request:
146
65
  method: post
147
66
  uri: https://api.flickr.com/services/rest/
@@ -157,8 +76,8 @@ http_interactions:
157
76
  - FlickRaw/0.9.8
158
77
  Authorization:
159
78
  - OAuth realm="https://api.flickr.com/services/rest/", oauth_consumer_key="<FLICKR_API_KEY>",
160
- oauth_nonce="EeZ96jf72JBDl%2F3DaDPMKI9bC%2F7yOHkddgFteTJo%2BxY%3D", oauth_signature="<FLICKR_SECRET>%26",
161
- oauth_signature_method="PLAINTEXT", oauth_timestamp="1426093986", oauth_token="",
79
+ oauth_nonce="0reP8W136msFEev62iz%2FExqZ78YTOyUet7cL%2FXU31pM%3D", oauth_signature="<FLICKR_SECRET>%26",
80
+ oauth_signature_method="PLAINTEXT", oauth_timestamp="1427878387", oauth_token="",
162
81
  oauth_version="1.0"
163
82
  Content-Type:
164
83
  - application/x-www-form-urlencoded
@@ -168,11 +87,11 @@ http_interactions:
168
87
  message: OK
169
88
  headers:
170
89
  Date:
171
- - Wed, 11 Mar 2015 17:13:06 GMT
90
+ - Wed, 01 Apr 2015 08:53:05 GMT
172
91
  Content-Type:
173
92
  - application/json
174
93
  Content-Length:
175
- - '314'
94
+ - '371'
176
95
  P3p:
177
96
  - policyref="http://info.yahoo.com/w3c/p3p.xml", CP="CAO DSP COR CUR ADM DEV
178
97
  TAI PSA PSD IVAi IVDi CONi TELo OTPi OUR DELi SAMi OTRi UNRi PUBi IND PHY
@@ -180,16 +99,18 @@ http_interactions:
180
99
  Cache-Control:
181
100
  - private
182
101
  X-Served-By:
183
- - www63.flickr.bf1.yahoo.com
102
+ - www315.flickr.bf1.yahoo.com
184
103
  Vary:
185
104
  - Accept-Encoding
186
105
  Age:
187
106
  - '0'
188
107
  Via:
189
- - http/1.1 fts121.flickr.bf1.yahoo.com (ApacheTrafficServer/4.0.2 [cMsSf ]),
190
- http/1.1 r19.ycpi.dea.yahoo.net (ApacheTrafficServer [cMsSf ])
108
+ - http/1.1 fts120.flickr.bf1.yahoo.com (ApacheTrafficServer/4.0.2 [cMsSf ]),
109
+ http/1.1 r17.ycpi.dea.yahoo.net (ApacheTrafficServer [cMsSf ])
191
110
  Server:
192
111
  - ATS
112
+ Strict-Transport-Security:
113
+ - max-age=259200
193
114
  Connection:
194
115
  - keep-alive
195
116
  body:
@@ -202,7 +123,9 @@ http_interactions:
202
123
  License","url":"https:\/\/creativecommons.org\/licenses\/by-nc-sa\/2.0\/"},{"id":"5","name":"Attribution-ShareAlike
203
124
  License","url":"https:\/\/creativecommons.org\/licenses\/by-sa\/2.0\/"},{"id":"7","name":"No
204
125
  known copyright restrictions","url":"https:\/\/www.flickr.com\/commons\/usage\/"},{"id":"8","name":"United
205
- States Government Work","url":"http:\/\/www.usa.gov\/copyright.shtml"}]},"stat":"ok"}'
126
+ States Government Work","url":"http:\/\/www.usa.gov\/copyright.shtml"},{"id":"9","name":"Public
127
+ Domain Dedication (CC0)","url":"https:\/\/creativecommons.org\/publicdomain\/zero\/1.0\/"},{"id":"10","name":"Public
128
+ Domain Mark","url":"https:\/\/creativecommons.org\/publicdomain\/mark\/1.0\/"}]},"stat":"ok"}'
206
129
  http_version:
207
- recorded_at: Wed, 11 Mar 2015 17:13:06 GMT
130
+ recorded_at: Wed, 01 Apr 2015 08:53:07 GMT
208
131
  recorded_with: VCR 2.9.3
@@ -17,7 +17,7 @@ http_interactions:
17
17
  message: Authorization Required
18
18
  headers:
19
19
  Date:
20
- - Tue, 17 Mar 2015 18:47:28 GMT
20
+ - Wed, 01 Apr 2015 20:06:19 GMT
21
21
  Server:
22
22
  - nginx
23
23
  Content-Type:
@@ -27,7 +27,7 @@ http_interactions:
27
27
  Www-Authenticate:
28
28
  - Bearer error="invalid_token"
29
29
  Expires:
30
- - Fri, 14 Mar 2025 18:47:28 GMT
30
+ - Sat, 29 Mar 2025 20:06:19 GMT
31
31
  Content-Length:
32
32
  - '46'
33
33
  Accept-Ranges:
@@ -35,20 +35,20 @@ http_interactions:
35
35
  Via:
36
36
  - 1.1 varnish
37
37
  X-Served-By:
38
- - cache-lcy1123-LCY
38
+ - cache-lcy1128-LCY
39
39
  X-Cache:
40
40
  - MISS
41
41
  X-Cache-Hits:
42
42
  - '0'
43
43
  X-Timer:
44
- - S1426618048.579298,VS0,VE90
44
+ - S1427918779.525635,VS0,VE83
45
45
  Vary:
46
46
  - Accept,Vimeo-Client-Id,Accept-Encoding
47
47
  body:
48
48
  encoding: UTF-8
49
49
  string: '{"error":"A valid user token must be passed."}'
50
50
  http_version:
51
- recorded_at: Tue, 17 Mar 2015 18:47:28 GMT
51
+ recorded_at: Wed, 01 Apr 2015 20:06:19 GMT
52
52
  - request:
53
53
  method: get
54
54
  uri: https://api.vimeo.com/videos/110133117
@@ -66,7 +66,7 @@ http_interactions:
66
66
  message: Authorization Required
67
67
  headers:
68
68
  Date:
69
- - Tue, 17 Mar 2015 18:47:28 GMT
69
+ - Wed, 01 Apr 2015 20:06:20 GMT
70
70
  Server:
71
71
  - nginx
72
72
  Content-Type:
@@ -76,7 +76,7 @@ http_interactions:
76
76
  Www-Authenticate:
77
77
  - Bearer error="invalid_token"
78
78
  Expires:
79
- - Fri, 14 Mar 2025 18:47:28 GMT
79
+ - Sat, 29 Mar 2025 20:06:20 GMT
80
80
  Content-Length:
81
81
  - '46'
82
82
  Accept-Ranges:
@@ -84,30 +84,30 @@ http_interactions:
84
84
  Via:
85
85
  - 1.1 varnish
86
86
  X-Served-By:
87
- - cache-lcy1123-LCY
87
+ - cache-lcy1133-LCY
88
88
  X-Cache:
89
89
  - MISS
90
90
  X-Cache-Hits:
91
91
  - '0'
92
92
  X-Timer:
93
- - S1426618048.778660,VS0,VE84
93
+ - S1427918779.973163,VS0,VE88
94
94
  Vary:
95
95
  - Accept,Vimeo-Client-Id,Accept-Encoding
96
96
  body:
97
97
  encoding: UTF-8
98
98
  string: '{"error":"A valid user token must be passed."}'
99
99
  http_version:
100
- recorded_at: Tue, 17 Mar 2015 18:47:28 GMT
100
+ recorded_at: Wed, 01 Apr 2015 20:06:20 GMT
101
101
  - request:
102
102
  method: get
103
- uri: https://www.googleapis.com/discovery/v1/apis/youtube/v3/rest?key=fji423cj234
103
+ uri: https://www.googleapis.com/discovery/v1/apis/youtube/v3/rest?key=<YOUTUBE_API_KEY>
104
104
  body:
105
105
  encoding: UTF-8
106
106
  string: ''
107
107
  headers:
108
108
  User-Agent:
109
109
  - |-
110
- Purdie/0.0.12 google-api-ruby-client/0.8.2 Mac OS X/10.10.2
110
+ Purdie/0.0.13 google-api-ruby-client/0.8.2 Mac OS X/10.10.2
111
111
  (gzip)
112
112
  Accept-Encoding:
113
113
  - gzip
@@ -128,9 +128,9 @@ http_interactions:
128
128
  Content-Encoding:
129
129
  - gzip
130
130
  Date:
131
- - Tue, 17 Mar 2015 18:47:28 GMT
131
+ - Wed, 01 Apr 2015 20:06:20 GMT
132
132
  Expires:
133
- - Tue, 17 Mar 2015 18:47:28 GMT
133
+ - Wed, 01 Apr 2015 20:06:20 GMT
134
134
  Cache-Control:
135
135
  - private, max-age=0
136
136
  X-Content-Type-Options:
@@ -152,5 +152,5 @@ http_interactions:
152
152
  lRYnpqf6ZOZmlhQr6UAki1ITi/PBktmplZ55ZYk5mSkwudzUYpAGkKRTYopC
153
153
  UGphaWpxiRJIshZIxIKUKSXnp4BUmBgYgLk49dRy1XIBAHbQcHGwAAAA
154
154
  http_version:
155
- recorded_at: Tue, 17 Mar 2015 18:47:28 GMT
155
+ recorded_at: Wed, 01 Apr 2015 20:06:20 GMT
156
156
  recorded_with: VCR 2.9.3
@@ -15,8 +15,8 @@ http_interactions:
15
15
  - FlickRaw/0.9.8
16
16
  Authorization:
17
17
  - OAuth realm="https://api.flickr.com/services/rest/", oauth_consumer_key="<FLICKR_API_KEY>",
18
- oauth_nonce="ToFoT2fto%2Bwvq%2BhhlA%2BOoTfeGS1XgvRwfUpwoArSu4c%3D", oauth_signature="<FLICKR_SECRET>%26",
19
- oauth_signature_method="PLAINTEXT", oauth_timestamp="1426093995", oauth_token="",
18
+ oauth_nonce="OSQ5aoY0Yvushq8eeUKoRXGQlYIGzkOR%2FgoFoPDCKcY%3D", oauth_signature="<FLICKR_SECRET>%26",
19
+ oauth_signature_method="PLAINTEXT", oauth_timestamp="1427880697", oauth_token="",
20
20
  oauth_version="1.0"
21
21
  Content-Type:
22
22
  - application/x-www-form-urlencoded
@@ -26,7 +26,7 @@ http_interactions:
26
26
  message: OK
27
27
  headers:
28
28
  Date:
29
- - Wed, 11 Mar 2015 17:13:15 GMT
29
+ - Wed, 01 Apr 2015 09:31:37 GMT
30
30
  Content-Type:
31
31
  - application/json
32
32
  Content-Length:
@@ -38,16 +38,18 @@ http_interactions:
38
38
  Cache-Control:
39
39
  - private
40
40
  X-Served-By:
41
- - www306.flickr.bf1.yahoo.com
41
+ - www60.flickr.bf1.yahoo.com
42
42
  Vary:
43
43
  - Accept-Encoding
44
44
  Age:
45
45
  - '0'
46
46
  Via:
47
- - http/1.1 fts123.flickr.bf1.yahoo.com (ApacheTrafficServer/4.0.2 [cMsSf ]),
48
- http/1.1 r19.ycpi.dea.yahoo.net (ApacheTrafficServer [cMsSf ])
47
+ - http/1.1 fts125.flickr.bf1.yahoo.com (ApacheTrafficServer/4.0.2 [cMsSf ]),
48
+ http/1.1 r03.ycpi.dea.yahoo.net (ApacheTrafficServer [cMsSf ])
49
49
  Server:
50
50
  - ATS
51
+ Strict-Transport-Security:
52
+ - max-age=259200
51
53
  Connection:
52
54
  - keep-alive
53
55
  body:
@@ -55,10 +57,10 @@ http_interactions:
55
57
  string: '{"photo":{"id":"15631479625","secret":"b6168ee903","server":"3933","farm":4,"dateuploaded":"1414326010","isfavorite":0,"license":"1","safety_level":"0","rotation":0,"originalsecret":"3191340cdb","originalformat":"jpg","owner":{"nsid":"128943844@N06","username":"rawfunkmaharishi","realname":"Raw
56
58
  Funk Maharishi","location":"","iconserver":"3933","iconfarm":4,"path_alias":"rawfunkmaharishi"},"title":{"_content":"The
57
59
  Comedy, October 2014"},"description":{"_content":""},"visibility":{"ispublic":1,"isfriend":0,"isfamily":0},"dates":{"posted":"1414326010","taken":"2014-10-22
58
- 15:54:24","takengranularity":"0","takenunknown":"0","lastupdate":"1416111853"},"views":"94","editability":{"cancomment":0,"canaddmeta":0},"publiceditability":{"cancomment":1,"canaddmeta":0},"usage":{"candownload":1,"canblog":0,"canprint":0,"canshare":1},"comments":{"_content":"0"},"notes":{"note":[]},"people":{"haspeople":0},"tags":{"tag":[{"id":"128898522-15631479625-1422028","author":"128943844@N06","authorname":"rawfunkmaharishi","raw":"the
60
+ 15:54:24","takengranularity":"0","takenunknown":"0","lastupdate":"1416111853"},"views":"96","editability":{"cancomment":0,"canaddmeta":0},"publiceditability":{"cancomment":1,"canaddmeta":0},"usage":{"candownload":1,"canblog":0,"canprint":0,"canshare":1},"comments":{"_content":"0"},"notes":{"note":[]},"people":{"haspeople":0},"tags":{"tag":[{"id":"128898522-15631479625-1422028","author":"128943844@N06","authorname":"rawfunkmaharishi","raw":"the
59
61
  comedy","_content":"thecomedy","machine_tag":0},{"id":"128898522-15631479625-17975","author":"128943844@N06","authorname":"rawfunkmaharishi","raw":"gigs","_content":"gigs","machine_tag":0},{"id":"128898522-15631479625-228989594","author":"128943844@N06","authorname":"rawfunkmaharishi","raw":"photographer:kim","_content":"photographerkim","machine_tag":0}]},"urls":{"url":[{"type":"photopage","_content":"https:\/\/www.flickr.com\/photos\/rawfunkmaharishi\/15631479625\/"}]},"media":"photo"},"stat":"ok"}'
60
62
  http_version:
61
- recorded_at: Wed, 11 Mar 2015 17:13:15 GMT
63
+ recorded_at: Wed, 01 Apr 2015 09:31:37 GMT
62
64
  - request:
63
65
  method: post
64
66
  uri: https://api.flickr.com/services/rest/
@@ -74,8 +76,8 @@ http_interactions:
74
76
  - FlickRaw/0.9.8
75
77
  Authorization:
76
78
  - OAuth realm="https://api.flickr.com/services/rest/", oauth_consumer_key="<FLICKR_API_KEY>",
77
- oauth_nonce="sUD1Y0BPR8bCKCURXNmKsbjmUVj3D5GU2wxylRrK6Qg%3D", oauth_signature="<FLICKR_SECRET>%26",
78
- oauth_signature_method="PLAINTEXT", oauth_timestamp="1426093995", oauth_token="",
79
+ oauth_nonce="wpw6g2c1UMrZqEUehMAl4aZWX6%2FWPGvE5EMnNn9DrKI%3D", oauth_signature="<FLICKR_SECRET>%26",
80
+ oauth_signature_method="PLAINTEXT", oauth_timestamp="1427880697", oauth_token="",
79
81
  oauth_version="1.0"
80
82
  Content-Type:
81
83
  - application/x-www-form-urlencoded
@@ -85,11 +87,11 @@ http_interactions:
85
87
  message: OK
86
88
  headers:
87
89
  Date:
88
- - Wed, 11 Mar 2015 17:13:16 GMT
90
+ - Wed, 01 Apr 2015 09:31:37 GMT
89
91
  Content-Type:
90
92
  - application/json
91
93
  Content-Length:
92
- - '314'
94
+ - '371'
93
95
  P3p:
94
96
  - policyref="http://info.yahoo.com/w3c/p3p.xml", CP="CAO DSP COR CUR ADM DEV
95
97
  TAI PSA PSD IVAi IVDi CONi TELo OTPi OUR DELi SAMi OTRi UNRi PUBi IND PHY
@@ -97,16 +99,18 @@ http_interactions:
97
99
  Cache-Control:
98
100
  - private
99
101
  X-Served-By:
100
- - www35.flickr.bf1.yahoo.com
102
+ - www42.flickr.bf1.yahoo.com
101
103
  Vary:
102
104
  - Accept-Encoding
103
105
  Age:
104
- - '1'
106
+ - '0'
105
107
  Via:
106
- - http/1.1 fts107.flickr.bf1.yahoo.com (ApacheTrafficServer/4.0.2 [cMsSf ]),
107
- http/1.1 r08.ycpi.dea.yahoo.net (ApacheTrafficServer [cMsSf ])
108
+ - http/1.1 fts116.flickr.bf1.yahoo.com (ApacheTrafficServer/4.0.2 [cMsSf ]),
109
+ http/1.1 r19.ycpi.dea.yahoo.net (ApacheTrafficServer [cMsSf ])
108
110
  Server:
109
111
  - ATS
112
+ Strict-Transport-Security:
113
+ - max-age=259200
110
114
  Connection:
111
115
  - keep-alive
112
116
  body:
@@ -119,7 +123,9 @@ http_interactions:
119
123
  License","url":"https:\/\/creativecommons.org\/licenses\/by-nc-sa\/2.0\/"},{"id":"5","name":"Attribution-ShareAlike
120
124
  License","url":"https:\/\/creativecommons.org\/licenses\/by-sa\/2.0\/"},{"id":"7","name":"No
121
125
  known copyright restrictions","url":"https:\/\/www.flickr.com\/commons\/usage\/"},{"id":"8","name":"United
122
- States Government Work","url":"http:\/\/www.usa.gov\/copyright.shtml"}]},"stat":"ok"}'
126
+ States Government Work","url":"http:\/\/www.usa.gov\/copyright.shtml"},{"id":"9","name":"Public
127
+ Domain Dedication (CC0)","url":"https:\/\/creativecommons.org\/publicdomain\/zero\/1.0\/"},{"id":"10","name":"Public
128
+ Domain Mark","url":"https:\/\/creativecommons.org\/publicdomain\/mark\/1.0\/"}]},"stat":"ok"}'
123
129
  http_version:
124
- recorded_at: Wed, 11 Mar 2015 17:13:16 GMT
130
+ recorded_at: Wed, 01 Apr 2015 09:31:37 GMT
125
131
  recorded_with: VCR 2.9.3
@@ -27,7 +27,7 @@ http_interactions:
27
27
  Content-Type:
28
28
  - application/json; charset=utf-8
29
29
  Date:
30
- - Wed, 11 Mar 2015 17:13:22 GMT
30
+ - Wed, 01 Apr 2015 19:41:12 GMT
31
31
  Location:
32
32
  - https://api.soundcloud.com/tracks/193008299.json?client_id=<SOUNDCLOUD_CLIENT_ID>
33
33
  Server:
@@ -38,7 +38,7 @@ http_interactions:
38
38
  encoding: UTF-8
39
39
  string: '{"status":"302 - Found","location":"https://api.soundcloud.com/tracks/193008299.json?client_id=<SOUNDCLOUD_CLIENT_ID>"}'
40
40
  http_version:
41
- recorded_at: Wed, 11 Mar 2015 17:13:22 GMT
41
+ recorded_at: Wed, 01 Apr 2015 19:41:12 GMT
42
42
  - request:
43
43
  method: get
44
44
  uri: https://api.soundcloud.com/tracks/193008299.json?client_id=<SOUNDCLOUD_CLIENT_ID>
@@ -68,15 +68,16 @@ http_interactions:
68
68
  Content-Type:
69
69
  - application/json; charset=utf-8
70
70
  Date:
71
- - Wed, 11 Mar 2015 17:13:22 GMT
71
+ - Wed, 01 Apr 2015 19:41:12 GMT
72
72
  Etag:
73
- - '"f53037e9d5ac7875cf1290e71218b857"'
73
+ - '"22a8481cd85e1e7be64128c639cc21b0"'
74
74
  Last-Modified:
75
- - Wed, 11 Mar 2015 17:13:05 GMT
75
+ - Tue, 31 Mar 2015 16:20:04 GMT
76
76
  Server:
77
- - ECS (lhr/4BCD)
77
+ - am/2
78
78
  Vary:
79
79
  - Accept-Encoding
80
+ - Authorization, Accept
80
81
  X-Cache:
81
82
  - HIT
82
83
  Content-Length:
@@ -86,7 +87,7 @@ http_interactions:
86
87
  string: '{"kind":"track","id":193008299,"created_at":"2015/02/25 19:24:51 +0000","user_id":56479293,"duration":209626,"commentable":true,"state":"finished","original_content_size":8436471,"last_modified":"2015/02/27
87
88
  17:08:45 +0000","sharing":"public","tag_list":"\"islington academy sessions\"","permalink":"hexaflexagon-1","streamable":true,"embeddable_by":"all","downloadable":true,"purchase_url":null,"label_id":null,"purchase_title":null,"genre":"funk","title":"Hexaflexagon","description":"Islington
88
89
  Academy","label_name":null,"release":null,"track_type":null,"key_signature":null,"isrc":null,"video_url":null,"bpm":null,"release_year":2015,"release_month":2,"release_day":18,"original_format":"mp3","license":"cc-by-nc-sa","uri":"https://api.soundcloud.com/tracks/193008299","user":{"id":56479293,"kind":"user","permalink":"rawfunkmaharishi","username":"Raw
89
- Funk Maharishi","last_modified":"2015/02/27 15:07:28 +0000","uri":"https://api.soundcloud.com/users/56479293","permalink_url":"http://soundcloud.com/rawfunkmaharishi","avatar_url":"https://i1.sndcdn.com/avatars-000110957821-ac80gy-large.jpg"},"permalink_url":"http://soundcloud.com/rawfunkmaharishi/hexaflexagon-1","artwork_url":null,"waveform_url":"https://w1.sndcdn.com/CxyZz6RUbqZN_m.png","stream_url":"https://api.soundcloud.com/tracks/193008299/stream","download_url":"https://api.soundcloud.com/tracks/193008299/download","playback_count":45,"download_count":3,"favoritings_count":0,"comment_count":0,"attachments_uri":"https://api.soundcloud.com/tracks/193008299/attachments","policy":"ALLOW"}'
90
+ Funk Maharishi","last_modified":"2015/03/23 09:26:53 +0000","uri":"https://api.soundcloud.com/users/56479293","permalink_url":"http://soundcloud.com/rawfunkmaharishi","avatar_url":"https://i1.sndcdn.com/avatars-000110957821-ac80gy-large.jpg"},"permalink_url":"http://soundcloud.com/rawfunkmaharishi/hexaflexagon-1","artwork_url":null,"waveform_url":"https://w1.sndcdn.com/CxyZz6RUbqZN_m.png","stream_url":"https://api.soundcloud.com/tracks/193008299/stream","download_url":"https://api.soundcloud.com/tracks/193008299/download","playback_count":59,"download_count":3,"favoritings_count":0,"comment_count":0,"attachments_uri":"https://api.soundcloud.com/tracks/193008299/attachments","policy":"ALLOW"}'
90
91
  http_version:
91
- recorded_at: Wed, 11 Mar 2015 17:13:22 GMT
92
+ recorded_at: Wed, 01 Apr 2015 19:41:12 GMT
92
93
  recorded_with: VCR 2.9.3