video_info 1.5.0 → 1.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (100) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +24 -0
  3. data/.travis.yml +10 -0
  4. data/Gemfile +11 -0
  5. data/Guardfile +8 -0
  6. data/{LICENSE → LICENSE.txt} +2 -0
  7. data/README.md +42 -43
  8. data/Rakefile +5 -0
  9. data/lib/video_info/provider.rb +36 -26
  10. data/lib/video_info/providers/vimeo.rb +45 -27
  11. data/lib/video_info/providers/vkontakte.rb +114 -0
  12. data/lib/video_info/providers/youtube.rb +62 -23
  13. data/lib/video_info/version.rb +1 -1
  14. data/lib/video_info.rb +1 -1
  15. data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_video_898029/date/.yml +69 -0
  16. data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_video_898029/description/.yml +69 -0
  17. data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_video_898029/duration/.yml +69 -0
  18. data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_video_898029/embed_code/.yml +69 -0
  19. data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_video_898029/embed_url/.yml +69 -0
  20. data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_video_898029/height/.yml +69 -0
  21. data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_video_898029/keywords/.yml +69 -0
  22. data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_video_898029/provider/.yml +69 -0
  23. data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_video_898029/thumbnail_large/.yml +69 -0
  24. data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_video_898029/thumbnail_medium/.yml +69 -0
  25. data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_video_898029/thumbnail_small/.yml +69 -0
  26. data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_video_898029/title/.yml +69 -0
  27. data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_video_898029/url/.yml +69 -0
  28. data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_video_898029/video_id/.yml +69 -0
  29. data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_video_898029/view_count/.yml +69 -0
  30. data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_video_898029/width/.yml +69 -0
  31. data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_video_898029_and_iframe_attributes/.yml +69 -0
  32. data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_video_898029_and_url_attributes/.yml +69 -0
  33. data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_video_898029_in_/group/_url/provider/.yml +69 -0
  34. data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_video_898029_in_/group/_url/video_id/.yml +69 -0
  35. data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_video_898029_in_text/provider/.yml +69 -0
  36. data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_video_898029_in_text/video_id/.yml +69 -0
  37. data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vkontakte/with_video_39576223_108370515/date/.yml +1410 -0
  38. data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vkontakte/with_video_39576223_108370515/description/.yml +1410 -0
  39. data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vkontakte/with_video_39576223_108370515/duration/.yml +1410 -0
  40. data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vkontakte/with_video_39576223_108370515/embed_code/.yml +1410 -0
  41. data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vkontakte/with_video_39576223_108370515/embed_url/.yml +1410 -0
  42. data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vkontakte/with_video_39576223_108370515/height/.yml +1410 -0
  43. data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vkontakte/with_video_39576223_108370515/provider/.yml +1410 -0
  44. data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vkontakte/with_video_39576223_108370515/title/.yml +1410 -0
  45. data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vkontakte/with_video_39576223_108370515/url/.yml +1410 -0
  46. data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vkontakte/with_video_39576223_108370515/video_id/.yml +1410 -0
  47. data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vkontakte/with_video_39576223_108370515/video_owner/.yml +1369 -0
  48. data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vkontakte/with_video_39576223_108370515/view_count/.yml +1410 -0
  49. data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vkontakte/with_video_39576223_108370515/width/.yml +1410 -0
  50. data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/with_arbitrary_iframe_attributes/.yml +62 -0
  51. data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/with_arbitrary_iframe_attributes/provider/.yml +62 -0
  52. data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/with_iframe_attributes/.yml +62 -0
  53. data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/with_iframe_attributes/provider/.yml +62 -0
  54. data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/with_video_JM9NgvjjVng_in_youtu_be_url/provider/.yml +65 -0
  55. data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/with_video_JM9NgvjjVng_in_youtu_be_url/video_id/.yml +65 -0
  56. data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/with_video_VeasFckfMHY_after_params/provider/.yml +66 -0
  57. data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/with_video_VeasFckfMHY_after_params/url/.yml +66 -0
  58. data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/with_video_VeasFckfMHY_after_params/video_id/.yml +66 -0
  59. data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/with_video_VeasFckfMHY_in_e_path/provider/.yml +66 -0
  60. data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/with_video_VeasFckfMHY_in_e_path/video_id/.yml +66 -0
  61. data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/with_video_VeasFckfMHY_in_embed_path/provider/.yml +66 -0
  62. data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/with_video_VeasFckfMHY_in_embed_path/video_id/.yml +66 -0
  63. data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/with_video_VeasFckfMHY_in_path/provider/.yml +66 -0
  64. data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/with_video_VeasFckfMHY_in_path/video_id/.yml +66 -0
  65. data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/with_video_VeasFckfMHY_in_user_url/provider/.yml +66 -0
  66. data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/with_video_VeasFckfMHY_in_user_url/url/.yml +66 -0
  67. data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/with_video_VeasFckfMHY_in_user_url/video_id/.yml +66 -0
  68. data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/with_video_Xp6CXF-Cesg/provider/.yml +62 -0
  69. data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/with_video_Xp6CXF-Cesg/video_id/.yml +62 -0
  70. data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/with_video_mZqGqE0D0n4/date/.yml +62 -0
  71. data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/with_video_mZqGqE0D0n4/description/.yml +62 -0
  72. data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/with_video_mZqGqE0D0n4/duration/.yml +62 -0
  73. data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/with_video_mZqGqE0D0n4/embed_code/.yml +62 -0
  74. data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/with_video_mZqGqE0D0n4/embed_url/.yml +62 -0
  75. data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/with_video_mZqGqE0D0n4/height/.yml +62 -0
  76. data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/with_video_mZqGqE0D0n4/keywords/.yml +62 -0
  77. data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/with_video_mZqGqE0D0n4/provider/.yml +62 -0
  78. data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/with_video_mZqGqE0D0n4/thumbnail_large/.yml +62 -0
  79. data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/with_video_mZqGqE0D0n4/thumbnail_medium/.yml +62 -0
  80. data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/with_video_mZqGqE0D0n4/thumbnail_small/.yml +62 -0
  81. data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/with_video_mZqGqE0D0n4/title/.yml +62 -0
  82. data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/with_video_mZqGqE0D0n4/url/.yml +62 -0
  83. data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/with_video_mZqGqE0D0n4/video_id/.yml +62 -0
  84. data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/with_video_mZqGqE0D0n4/view_count/.yml +62 -0
  85. data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/with_video_mZqGqE0D0n4/width/.yml +62 -0
  86. data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/with_video_oQ49W_xKzKA/.yml +62 -0
  87. data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/with_video_oQ49W_xKzKA/provider/.yml +62 -0
  88. data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/with_video_oQ49W_xKzKA/video_id/.yml +62 -0
  89. data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/with_video_url_in_text/provider/.yml +62 -0
  90. data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/with_video_url_in_text/video_id/.yml +62 -0
  91. data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/without_http_or_www/provider/.yml +65 -0
  92. data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/without_http_or_www/video_id/.yml +65 -0
  93. data/spec/lib/video_info/provider_spec.rb +44 -0
  94. data/spec/lib/video_info/providers/vimeo_spec.rb +74 -0
  95. data/spec/lib/video_info/providers/vkontakte_spec.rb +38 -0
  96. data/spec/lib/video_info/providers/youtube_spec.rb +138 -0
  97. data/spec/lib/video_info_spec.rb +50 -0
  98. data/spec/spec_helper.rb +22 -0
  99. data/video_info.gemspec +29 -0
  100. metadata +219 -22
@@ -0,0 +1,69 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://vimeo.com/api/v2/video/898029.json
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - VideoInfo/1.5.0
12
+ Accept-Encoding:
13
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
14
+ Accept:
15
+ - '*/*'
16
+ response:
17
+ status:
18
+ code: 200
19
+ message: OK
20
+ headers:
21
+ Server:
22
+ - Apache
23
+ X-Ratelimit-Limit:
24
+ - '3600'
25
+ X-Ratelimit-Remaining:
26
+ - '3597'
27
+ X-Ratelimit-Reset:
28
+ - '1381179443'
29
+ Expires:
30
+ - Mon, 07 Oct 2013 19:58:24 GMT
31
+ Last-Modified:
32
+ - Thu, 03 Oct 2013 09:04:59 GMT
33
+ Etag:
34
+ - '"a1c9549c51ba7682be6cd968cbd7c1fb"'
35
+ X-Dns-Prefetch-Control:
36
+ - 'on'
37
+ Vary:
38
+ - Accept-Encoding
39
+ Content-Type:
40
+ - application/json
41
+ Content-Length:
42
+ - '497'
43
+ Accept-Ranges:
44
+ - bytes
45
+ Date:
46
+ - Mon, 07 Oct 2013 19:57:27 GMT
47
+ X-Varnish:
48
+ - 636839230 636837831
49
+ Age:
50
+ - '3'
51
+ Via:
52
+ - 1.1 varnish
53
+ X-Varnish-Cache:
54
+ - '1'
55
+ Connection:
56
+ - close
57
+ X-Vserver:
58
+ - 10.90.128.196
59
+ body:
60
+ encoding: UTF-8
61
+ string: '[{"id":898029,"title":"Cherry Bloom - King Of The Knife","description":"The
62
+ first video from the upcoming album Secret Sounds, to download in-stores April
63
+ 14. Checkout http:\/\/www.cherrybloom.net","url":"http:\/\/vimeo.com\/898029","upload_date":"2008-04-14
64
+ 13:10:39","thumbnail_small":"http:\/\/b.vimeocdn.com\/ts\/343\/731\/34373130_100.jpg","thumbnail_medium":"http:\/\/b.vimeocdn.com\/ts\/343\/731\/34373130_200.jpg","thumbnail_large":"http:\/\/b.vimeocdn.com\/ts\/343\/731\/34373130_640.jpg","user_id":206215,"user_name":"Octave
65
+ Zangs","user_url":"http:\/\/vimeo.com\/octave","user_portrait_small":"http:\/\/b.vimeocdn.com\/ps\/257\/715\/2577152_30.jpg","user_portrait_medium":"http:\/\/b.vimeocdn.com\/ps\/257\/715\/2577152_75.jpg","user_portrait_large":"http:\/\/b.vimeocdn.com\/ps\/257\/715\/2577152_100.jpg","user_portrait_huge":"http:\/\/b.vimeocdn.com\/ps\/257\/715\/2577152_300.jpg","stats_number_of_likes":11,"stats_number_of_plays":4555,"stats_number_of_comments":4,"duration":175,"width":640,"height":360,"tags":"cherry
66
+ bloom, secret sounds, king of the knife, rock, alternative","embed_privacy":"anywhere"}]'
67
+ http_version:
68
+ recorded_at: Mon, 07 Oct 2013 19:57:27 GMT
69
+ recorded_with: VCR 2.5.0
@@ -0,0 +1,69 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://vimeo.com/api/v2/video/898029.json
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - VideoInfo/1.5.0
12
+ Accept-Encoding:
13
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
14
+ Accept:
15
+ - '*/*'
16
+ response:
17
+ status:
18
+ code: 200
19
+ message: OK
20
+ headers:
21
+ Server:
22
+ - Apache
23
+ X-Ratelimit-Limit:
24
+ - '3600'
25
+ X-Ratelimit-Remaining:
26
+ - '3596'
27
+ X-Ratelimit-Reset:
28
+ - '1381179443'
29
+ Expires:
30
+ - Mon, 07 Oct 2013 19:58:24 GMT
31
+ Last-Modified:
32
+ - Thu, 03 Oct 2013 09:04:59 GMT
33
+ Etag:
34
+ - '"a1c9549c51ba7682be6cd968cbd7c1fb"'
35
+ X-Dns-Prefetch-Control:
36
+ - 'on'
37
+ Vary:
38
+ - Accept-Encoding
39
+ Content-Type:
40
+ - application/json
41
+ Content-Length:
42
+ - '497'
43
+ Accept-Ranges:
44
+ - bytes
45
+ Date:
46
+ - Mon, 07 Oct 2013 19:57:26 GMT
47
+ X-Varnish:
48
+ - 515359035 515358432
49
+ Age:
50
+ - '1'
51
+ Via:
52
+ - 1.1 varnish
53
+ X-Varnish-Cache:
54
+ - '1'
55
+ Connection:
56
+ - close
57
+ X-Vserver:
58
+ - 10.90.128.147
59
+ body:
60
+ encoding: UTF-8
61
+ string: '[{"id":898029,"title":"Cherry Bloom - King Of The Knife","description":"The
62
+ first video from the upcoming album Secret Sounds, to download in-stores April
63
+ 14. Checkout http:\/\/www.cherrybloom.net","url":"http:\/\/vimeo.com\/898029","upload_date":"2008-04-14
64
+ 13:10:39","thumbnail_small":"http:\/\/b.vimeocdn.com\/ts\/343\/731\/34373130_100.jpg","thumbnail_medium":"http:\/\/b.vimeocdn.com\/ts\/343\/731\/34373130_200.jpg","thumbnail_large":"http:\/\/b.vimeocdn.com\/ts\/343\/731\/34373130_640.jpg","user_id":206215,"user_name":"Octave
65
+ Zangs","user_url":"http:\/\/vimeo.com\/octave","user_portrait_small":"http:\/\/b.vimeocdn.com\/ps\/257\/715\/2577152_30.jpg","user_portrait_medium":"http:\/\/b.vimeocdn.com\/ps\/257\/715\/2577152_75.jpg","user_portrait_large":"http:\/\/b.vimeocdn.com\/ps\/257\/715\/2577152_100.jpg","user_portrait_huge":"http:\/\/b.vimeocdn.com\/ps\/257\/715\/2577152_300.jpg","stats_number_of_likes":11,"stats_number_of_plays":4555,"stats_number_of_comments":4,"duration":175,"width":640,"height":360,"tags":"cherry
66
+ bloom, secret sounds, king of the knife, rock, alternative","embed_privacy":"anywhere"}]'
67
+ http_version:
68
+ recorded_at: Mon, 07 Oct 2013 19:57:25 GMT
69
+ recorded_with: VCR 2.5.0
@@ -0,0 +1,69 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://vimeo.com/api/v2/video/898029.json
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - VideoInfo/1.5.0
12
+ Accept-Encoding:
13
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
14
+ Accept:
15
+ - '*/*'
16
+ response:
17
+ status:
18
+ code: 200
19
+ message: OK
20
+ headers:
21
+ Server:
22
+ - Apache
23
+ X-Ratelimit-Limit:
24
+ - '3600'
25
+ X-Ratelimit-Remaining:
26
+ - '3599'
27
+ X-Ratelimit-Reset:
28
+ - '1381179443'
29
+ Expires:
30
+ - Mon, 07 Oct 2013 19:58:23 GMT
31
+ Last-Modified:
32
+ - Thu, 03 Oct 2013 09:04:59 GMT
33
+ Etag:
34
+ - '"a1c9549c51ba7682be6cd968cbd7c1fb"'
35
+ X-Dns-Prefetch-Control:
36
+ - 'on'
37
+ Vary:
38
+ - Accept-Encoding
39
+ Content-Type:
40
+ - application/json
41
+ Content-Length:
42
+ - '497'
43
+ Accept-Ranges:
44
+ - bytes
45
+ Date:
46
+ - Mon, 07 Oct 2013 19:57:26 GMT
47
+ X-Varnish:
48
+ - 1728917945 1728916410
49
+ Age:
50
+ - '3'
51
+ Via:
52
+ - 1.1 varnish
53
+ X-Varnish-Cache:
54
+ - '1'
55
+ Connection:
56
+ - close
57
+ X-Vserver:
58
+ - 10.90.128.188
59
+ body:
60
+ encoding: UTF-8
61
+ string: '[{"id":898029,"title":"Cherry Bloom - King Of The Knife","description":"The
62
+ first video from the upcoming album Secret Sounds, to download in-stores April
63
+ 14. Checkout http:\/\/www.cherrybloom.net","url":"http:\/\/vimeo.com\/898029","upload_date":"2008-04-14
64
+ 13:10:39","thumbnail_small":"http:\/\/b.vimeocdn.com\/ts\/343\/731\/34373130_100.jpg","thumbnail_medium":"http:\/\/b.vimeocdn.com\/ts\/343\/731\/34373130_200.jpg","thumbnail_large":"http:\/\/b.vimeocdn.com\/ts\/343\/731\/34373130_640.jpg","user_id":206215,"user_name":"Octave
65
+ Zangs","user_url":"http:\/\/vimeo.com\/octave","user_portrait_small":"http:\/\/b.vimeocdn.com\/ps\/257\/715\/2577152_30.jpg","user_portrait_medium":"http:\/\/b.vimeocdn.com\/ps\/257\/715\/2577152_75.jpg","user_portrait_large":"http:\/\/b.vimeocdn.com\/ps\/257\/715\/2577152_100.jpg","user_portrait_huge":"http:\/\/b.vimeocdn.com\/ps\/257\/715\/2577152_300.jpg","stats_number_of_likes":11,"stats_number_of_plays":4555,"stats_number_of_comments":4,"duration":175,"width":640,"height":360,"tags":"cherry
66
+ bloom, secret sounds, king of the knife, rock, alternative","embed_privacy":"anywhere"}]'
67
+ http_version:
68
+ recorded_at: Mon, 07 Oct 2013 19:57:26 GMT
69
+ recorded_with: VCR 2.5.0
@@ -0,0 +1,69 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://vimeo.com/api/v2/video/898029.json
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - VideoInfo/1.5.0
12
+ Accept-Encoding:
13
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
14
+ Accept:
15
+ - '*/*'
16
+ response:
17
+ status:
18
+ code: 200
19
+ message: OK
20
+ headers:
21
+ Server:
22
+ - Apache
23
+ X-Ratelimit-Limit:
24
+ - '3600'
25
+ X-Ratelimit-Remaining:
26
+ - '3595'
27
+ X-Ratelimit-Reset:
28
+ - '1381179443'
29
+ Expires:
30
+ - Mon, 07 Oct 2013 19:58:25 GMT
31
+ Last-Modified:
32
+ - Thu, 03 Oct 2013 09:04:59 GMT
33
+ Etag:
34
+ - '"a1c9549c51ba7682be6cd968cbd7c1fb"'
35
+ X-Dns-Prefetch-Control:
36
+ - 'on'
37
+ Vary:
38
+ - Accept-Encoding
39
+ Content-Type:
40
+ - application/json
41
+ Content-Length:
42
+ - '497'
43
+ Accept-Ranges:
44
+ - bytes
45
+ Date:
46
+ - Mon, 07 Oct 2013 19:57:25 GMT
47
+ X-Varnish:
48
+ - '1144800405'
49
+ Age:
50
+ - '0'
51
+ Via:
52
+ - 1.1 varnish
53
+ X-Varnish-Cache:
54
+ - '0'
55
+ Connection:
56
+ - close
57
+ X-Vserver:
58
+ - 10.90.128.146
59
+ body:
60
+ encoding: UTF-8
61
+ string: '[{"id":898029,"title":"Cherry Bloom - King Of The Knife","description":"The
62
+ first video from the upcoming album Secret Sounds, to download in-stores April
63
+ 14. Checkout http:\/\/www.cherrybloom.net","url":"http:\/\/vimeo.com\/898029","upload_date":"2008-04-14
64
+ 13:10:39","thumbnail_small":"http:\/\/b.vimeocdn.com\/ts\/343\/731\/34373130_100.jpg","thumbnail_medium":"http:\/\/b.vimeocdn.com\/ts\/343\/731\/34373130_200.jpg","thumbnail_large":"http:\/\/b.vimeocdn.com\/ts\/343\/731\/34373130_640.jpg","user_id":206215,"user_name":"Octave
65
+ Zangs","user_url":"http:\/\/vimeo.com\/octave","user_portrait_small":"http:\/\/b.vimeocdn.com\/ps\/257\/715\/2577152_30.jpg","user_portrait_medium":"http:\/\/b.vimeocdn.com\/ps\/257\/715\/2577152_75.jpg","user_portrait_large":"http:\/\/b.vimeocdn.com\/ps\/257\/715\/2577152_100.jpg","user_portrait_huge":"http:\/\/b.vimeocdn.com\/ps\/257\/715\/2577152_300.jpg","stats_number_of_likes":11,"stats_number_of_plays":4555,"stats_number_of_comments":4,"duration":175,"width":640,"height":360,"tags":"cherry
66
+ bloom, secret sounds, king of the knife, rock, alternative","embed_privacy":"anywhere"}]'
67
+ http_version:
68
+ recorded_at: Mon, 07 Oct 2013 19:57:25 GMT
69
+ recorded_with: VCR 2.5.0
@@ -0,0 +1,69 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://vimeo.com/api/v2/video/898029.json
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - VideoInfo/1.5.0
12
+ Accept-Encoding:
13
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
14
+ Accept:
15
+ - '*/*'
16
+ response:
17
+ status:
18
+ code: 200
19
+ message: OK
20
+ headers:
21
+ Server:
22
+ - Apache
23
+ X-Ratelimit-Limit:
24
+ - '3600'
25
+ X-Ratelimit-Remaining:
26
+ - '3596'
27
+ X-Ratelimit-Reset:
28
+ - '1381179443'
29
+ Expires:
30
+ - Mon, 07 Oct 2013 19:58:24 GMT
31
+ Last-Modified:
32
+ - Thu, 03 Oct 2013 09:04:59 GMT
33
+ Etag:
34
+ - '"a1c9549c51ba7682be6cd968cbd7c1fb"'
35
+ X-Dns-Prefetch-Control:
36
+ - 'on'
37
+ Vary:
38
+ - Accept-Encoding
39
+ Content-Type:
40
+ - application/json
41
+ Content-Length:
42
+ - '497'
43
+ Accept-Ranges:
44
+ - bytes
45
+ Date:
46
+ - Mon, 07 Oct 2013 19:57:24 GMT
47
+ X-Varnish:
48
+ - '515358432'
49
+ Age:
50
+ - '0'
51
+ Via:
52
+ - 1.1 varnish
53
+ X-Varnish-Cache:
54
+ - '0'
55
+ Connection:
56
+ - close
57
+ X-Vserver:
58
+ - 10.90.128.147
59
+ body:
60
+ encoding: UTF-8
61
+ string: '[{"id":898029,"title":"Cherry Bloom - King Of The Knife","description":"The
62
+ first video from the upcoming album Secret Sounds, to download in-stores April
63
+ 14. Checkout http:\/\/www.cherrybloom.net","url":"http:\/\/vimeo.com\/898029","upload_date":"2008-04-14
64
+ 13:10:39","thumbnail_small":"http:\/\/b.vimeocdn.com\/ts\/343\/731\/34373130_100.jpg","thumbnail_medium":"http:\/\/b.vimeocdn.com\/ts\/343\/731\/34373130_200.jpg","thumbnail_large":"http:\/\/b.vimeocdn.com\/ts\/343\/731\/34373130_640.jpg","user_id":206215,"user_name":"Octave
65
+ Zangs","user_url":"http:\/\/vimeo.com\/octave","user_portrait_small":"http:\/\/b.vimeocdn.com\/ps\/257\/715\/2577152_30.jpg","user_portrait_medium":"http:\/\/b.vimeocdn.com\/ps\/257\/715\/2577152_75.jpg","user_portrait_large":"http:\/\/b.vimeocdn.com\/ps\/257\/715\/2577152_100.jpg","user_portrait_huge":"http:\/\/b.vimeocdn.com\/ps\/257\/715\/2577152_300.jpg","stats_number_of_likes":11,"stats_number_of_plays":4555,"stats_number_of_comments":4,"duration":175,"width":640,"height":360,"tags":"cherry
66
+ bloom, secret sounds, king of the knife, rock, alternative","embed_privacy":"anywhere"}]'
67
+ http_version:
68
+ recorded_at: Mon, 07 Oct 2013 19:57:24 GMT
69
+ recorded_with: VCR 2.5.0
@@ -0,0 +1,69 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://vimeo.com/api/v2/video/898029.json
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - VideoInfo/1.5.0
12
+ Accept-Encoding:
13
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
14
+ Accept:
15
+ - '*/*'
16
+ response:
17
+ status:
18
+ code: 200
19
+ message: OK
20
+ headers:
21
+ Server:
22
+ - Apache
23
+ X-Ratelimit-Limit:
24
+ - '3600'
25
+ X-Ratelimit-Remaining:
26
+ - '3599'
27
+ X-Ratelimit-Reset:
28
+ - '1381179443'
29
+ Expires:
30
+ - Mon, 07 Oct 2013 19:58:23 GMT
31
+ Last-Modified:
32
+ - Thu, 03 Oct 2013 09:04:59 GMT
33
+ Etag:
34
+ - '"a1c9549c51ba7682be6cd968cbd7c1fb"'
35
+ X-Dns-Prefetch-Control:
36
+ - 'on'
37
+ Vary:
38
+ - Accept-Encoding
39
+ Content-Type:
40
+ - application/json
41
+ Content-Length:
42
+ - '497'
43
+ Accept-Ranges:
44
+ - bytes
45
+ Date:
46
+ - Mon, 07 Oct 2013 19:57:27 GMT
47
+ X-Varnish:
48
+ - 1728918213 1728916410
49
+ Age:
50
+ - '3'
51
+ Via:
52
+ - 1.1 varnish
53
+ X-Varnish-Cache:
54
+ - '1'
55
+ Connection:
56
+ - close
57
+ X-Vserver:
58
+ - 10.90.128.188
59
+ body:
60
+ encoding: UTF-8
61
+ string: '[{"id":898029,"title":"Cherry Bloom - King Of The Knife","description":"The
62
+ first video from the upcoming album Secret Sounds, to download in-stores April
63
+ 14. Checkout http:\/\/www.cherrybloom.net","url":"http:\/\/vimeo.com\/898029","upload_date":"2008-04-14
64
+ 13:10:39","thumbnail_small":"http:\/\/b.vimeocdn.com\/ts\/343\/731\/34373130_100.jpg","thumbnail_medium":"http:\/\/b.vimeocdn.com\/ts\/343\/731\/34373130_200.jpg","thumbnail_large":"http:\/\/b.vimeocdn.com\/ts\/343\/731\/34373130_640.jpg","user_id":206215,"user_name":"Octave
65
+ Zangs","user_url":"http:\/\/vimeo.com\/octave","user_portrait_small":"http:\/\/b.vimeocdn.com\/ps\/257\/715\/2577152_30.jpg","user_portrait_medium":"http:\/\/b.vimeocdn.com\/ps\/257\/715\/2577152_75.jpg","user_portrait_large":"http:\/\/b.vimeocdn.com\/ps\/257\/715\/2577152_100.jpg","user_portrait_huge":"http:\/\/b.vimeocdn.com\/ps\/257\/715\/2577152_300.jpg","stats_number_of_likes":11,"stats_number_of_plays":4555,"stats_number_of_comments":4,"duration":175,"width":640,"height":360,"tags":"cherry
66
+ bloom, secret sounds, king of the knife, rock, alternative","embed_privacy":"anywhere"}]'
67
+ http_version:
68
+ recorded_at: Mon, 07 Oct 2013 19:57:26 GMT
69
+ recorded_with: VCR 2.5.0
@@ -0,0 +1,69 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://vimeo.com/api/v2/video/898029.json
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - VideoInfo/1.5.0
12
+ Accept-Encoding:
13
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
14
+ Accept:
15
+ - '*/*'
16
+ response:
17
+ status:
18
+ code: 200
19
+ message: OK
20
+ headers:
21
+ Server:
22
+ - Apache
23
+ X-Ratelimit-Limit:
24
+ - '3600'
25
+ X-Ratelimit-Remaining:
26
+ - '3596'
27
+ X-Ratelimit-Reset:
28
+ - '1381179443'
29
+ Expires:
30
+ - Mon, 07 Oct 2013 19:58:24 GMT
31
+ Last-Modified:
32
+ - Thu, 03 Oct 2013 09:04:59 GMT
33
+ Etag:
34
+ - '"a1c9549c51ba7682be6cd968cbd7c1fb"'
35
+ X-Dns-Prefetch-Control:
36
+ - 'on'
37
+ Vary:
38
+ - Accept-Encoding
39
+ Content-Type:
40
+ - application/json
41
+ Content-Length:
42
+ - '497'
43
+ Accept-Ranges:
44
+ - bytes
45
+ Date:
46
+ - Mon, 07 Oct 2013 19:57:26 GMT
47
+ X-Varnish:
48
+ - 515359237 515358432
49
+ Age:
50
+ - '2'
51
+ Via:
52
+ - 1.1 varnish
53
+ X-Varnish-Cache:
54
+ - '1'
55
+ Connection:
56
+ - close
57
+ X-Vserver:
58
+ - 10.90.128.147
59
+ body:
60
+ encoding: UTF-8
61
+ string: '[{"id":898029,"title":"Cherry Bloom - King Of The Knife","description":"The
62
+ first video from the upcoming album Secret Sounds, to download in-stores April
63
+ 14. Checkout http:\/\/www.cherrybloom.net","url":"http:\/\/vimeo.com\/898029","upload_date":"2008-04-14
64
+ 13:10:39","thumbnail_small":"http:\/\/b.vimeocdn.com\/ts\/343\/731\/34373130_100.jpg","thumbnail_medium":"http:\/\/b.vimeocdn.com\/ts\/343\/731\/34373130_200.jpg","thumbnail_large":"http:\/\/b.vimeocdn.com\/ts\/343\/731\/34373130_640.jpg","user_id":206215,"user_name":"Octave
65
+ Zangs","user_url":"http:\/\/vimeo.com\/octave","user_portrait_small":"http:\/\/b.vimeocdn.com\/ps\/257\/715\/2577152_30.jpg","user_portrait_medium":"http:\/\/b.vimeocdn.com\/ps\/257\/715\/2577152_75.jpg","user_portrait_large":"http:\/\/b.vimeocdn.com\/ps\/257\/715\/2577152_100.jpg","user_portrait_huge":"http:\/\/b.vimeocdn.com\/ps\/257\/715\/2577152_300.jpg","stats_number_of_likes":11,"stats_number_of_plays":4555,"stats_number_of_comments":4,"duration":175,"width":640,"height":360,"tags":"cherry
66
+ bloom, secret sounds, king of the knife, rock, alternative","embed_privacy":"anywhere"}]'
67
+ http_version:
68
+ recorded_at: Mon, 07 Oct 2013 19:57:26 GMT
69
+ recorded_with: VCR 2.5.0
@@ -0,0 +1,69 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://vimeo.com/api/v2/video/898029.json
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - VideoInfo/1.5.0
12
+ Accept-Encoding:
13
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
14
+ Accept:
15
+ - '*/*'
16
+ response:
17
+ status:
18
+ code: 200
19
+ message: OK
20
+ headers:
21
+ Server:
22
+ - Apache
23
+ X-Ratelimit-Limit:
24
+ - '3600'
25
+ X-Ratelimit-Remaining:
26
+ - '3599'
27
+ X-Ratelimit-Reset:
28
+ - '1381179443'
29
+ Expires:
30
+ - Mon, 07 Oct 2013 19:58:23 GMT
31
+ Last-Modified:
32
+ - Thu, 03 Oct 2013 09:04:59 GMT
33
+ Etag:
34
+ - '"a1c9549c51ba7682be6cd968cbd7c1fb"'
35
+ X-Dns-Prefetch-Control:
36
+ - 'on'
37
+ Vary:
38
+ - Accept-Encoding
39
+ Content-Type:
40
+ - application/json
41
+ Content-Length:
42
+ - '497'
43
+ Accept-Ranges:
44
+ - bytes
45
+ Date:
46
+ - Mon, 07 Oct 2013 19:57:23 GMT
47
+ X-Varnish:
48
+ - '1728916410'
49
+ Age:
50
+ - '0'
51
+ Via:
52
+ - 1.1 varnish
53
+ X-Varnish-Cache:
54
+ - '0'
55
+ Connection:
56
+ - close
57
+ X-Vserver:
58
+ - 10.90.128.188
59
+ body:
60
+ encoding: UTF-8
61
+ string: '[{"id":898029,"title":"Cherry Bloom - King Of The Knife","description":"The
62
+ first video from the upcoming album Secret Sounds, to download in-stores April
63
+ 14. Checkout http:\/\/www.cherrybloom.net","url":"http:\/\/vimeo.com\/898029","upload_date":"2008-04-14
64
+ 13:10:39","thumbnail_small":"http:\/\/b.vimeocdn.com\/ts\/343\/731\/34373130_100.jpg","thumbnail_medium":"http:\/\/b.vimeocdn.com\/ts\/343\/731\/34373130_200.jpg","thumbnail_large":"http:\/\/b.vimeocdn.com\/ts\/343\/731\/34373130_640.jpg","user_id":206215,"user_name":"Octave
65
+ Zangs","user_url":"http:\/\/vimeo.com\/octave","user_portrait_small":"http:\/\/b.vimeocdn.com\/ps\/257\/715\/2577152_30.jpg","user_portrait_medium":"http:\/\/b.vimeocdn.com\/ps\/257\/715\/2577152_75.jpg","user_portrait_large":"http:\/\/b.vimeocdn.com\/ps\/257\/715\/2577152_100.jpg","user_portrait_huge":"http:\/\/b.vimeocdn.com\/ps\/257\/715\/2577152_300.jpg","stats_number_of_likes":11,"stats_number_of_plays":4555,"stats_number_of_comments":4,"duration":175,"width":640,"height":360,"tags":"cherry
66
+ bloom, secret sounds, king of the knife, rock, alternative","embed_privacy":"anywhere"}]'
67
+ http_version:
68
+ recorded_at: Mon, 07 Oct 2013 19:57:23 GMT
69
+ recorded_with: VCR 2.5.0
@@ -0,0 +1,69 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://vimeo.com/api/v2/video/898029.json
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - VideoInfo/1.5.0
12
+ Accept-Encoding:
13
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
14
+ Accept:
15
+ - '*/*'
16
+ response:
17
+ status:
18
+ code: 200
19
+ message: OK
20
+ headers:
21
+ Server:
22
+ - Apache
23
+ X-Ratelimit-Limit:
24
+ - '3600'
25
+ X-Ratelimit-Remaining:
26
+ - '3595'
27
+ X-Ratelimit-Reset:
28
+ - '1381179443'
29
+ Expires:
30
+ - Mon, 07 Oct 2013 19:58:25 GMT
31
+ Last-Modified:
32
+ - Thu, 03 Oct 2013 09:04:59 GMT
33
+ Etag:
34
+ - '"a1c9549c51ba7682be6cd968cbd7c1fb"'
35
+ X-Dns-Prefetch-Control:
36
+ - 'on'
37
+ Vary:
38
+ - Accept-Encoding
39
+ Content-Type:
40
+ - application/json
41
+ Content-Length:
42
+ - '497'
43
+ Accept-Ranges:
44
+ - bytes
45
+ Date:
46
+ - Mon, 07 Oct 2013 19:57:28 GMT
47
+ X-Varnish:
48
+ - 1144801754 1144800405
49
+ Age:
50
+ - '3'
51
+ Via:
52
+ - 1.1 varnish
53
+ X-Varnish-Cache:
54
+ - '1'
55
+ Connection:
56
+ - close
57
+ X-Vserver:
58
+ - 10.90.128.146
59
+ body:
60
+ encoding: UTF-8
61
+ string: '[{"id":898029,"title":"Cherry Bloom - King Of The Knife","description":"The
62
+ first video from the upcoming album Secret Sounds, to download in-stores April
63
+ 14. Checkout http:\/\/www.cherrybloom.net","url":"http:\/\/vimeo.com\/898029","upload_date":"2008-04-14
64
+ 13:10:39","thumbnail_small":"http:\/\/b.vimeocdn.com\/ts\/343\/731\/34373130_100.jpg","thumbnail_medium":"http:\/\/b.vimeocdn.com\/ts\/343\/731\/34373130_200.jpg","thumbnail_large":"http:\/\/b.vimeocdn.com\/ts\/343\/731\/34373130_640.jpg","user_id":206215,"user_name":"Octave
65
+ Zangs","user_url":"http:\/\/vimeo.com\/octave","user_portrait_small":"http:\/\/b.vimeocdn.com\/ps\/257\/715\/2577152_30.jpg","user_portrait_medium":"http:\/\/b.vimeocdn.com\/ps\/257\/715\/2577152_75.jpg","user_portrait_large":"http:\/\/b.vimeocdn.com\/ps\/257\/715\/2577152_100.jpg","user_portrait_huge":"http:\/\/b.vimeocdn.com\/ps\/257\/715\/2577152_300.jpg","stats_number_of_likes":11,"stats_number_of_plays":4555,"stats_number_of_comments":4,"duration":175,"width":640,"height":360,"tags":"cherry
66
+ bloom, secret sounds, king of the knife, rock, alternative","embed_privacy":"anywhere"}]'
67
+ http_version:
68
+ recorded_at: Mon, 07 Oct 2013 19:57:28 GMT
69
+ recorded_with: VCR 2.5.0