video_info 1.6.0 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +0 -3
- data/Gemfile +1 -1
- data/README.md +11 -11
- data/Rakefile +1 -1
- data/lib/video_info.rb +30 -7
- data/lib/video_info/provider.rb +15 -8
- data/lib/video_info/providers/vimeo.rb +7 -11
- data/lib/video_info/providers/vkontakte.rb +30 -49
- data/lib/video_info/providers/youtube.rb +5 -5
- data/lib/video_info/version.rb +2 -2
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_video_898029/date/.yml +14 -14
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_video_898029/description/.yml +16 -14
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_video_898029/duration/.yml +17 -15
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_video_898029/height/.yml +16 -14
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_video_898029/keywords/.yml +17 -15
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_video_898029/thumbnail_large/.yml +15 -13
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_video_898029/thumbnail_medium/.yml +16 -14
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_video_898029/thumbnail_small/.yml +15 -13
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_video_898029/title/.yml +16 -14
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_video_898029/view_count/.yml +17 -15
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_video_898029/width/.yml +16 -14
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vkontakte/with_video_39576223_108370515/description/.yml +1024 -1336
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vkontakte/with_video_39576223_108370515/duration/.yml +1024 -1336
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vkontakte/with_video_39576223_108370515/embed_code/.yml +1036 -1348
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vkontakte/with_video_39576223_108370515/embed_url/.yml +1036 -1348
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vkontakte/with_video_39576223_108370515/height/.yml +1024 -1336
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vkontakte/with_video_39576223_108370515/keywords/.yml +1098 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vkontakte/with_video_39576223_108370515/title/.yml +1036 -1348
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vkontakte/with_video_39576223_108370515/view_count/.yml +1024 -1336
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vkontakte/with_video_39576223_108370515/width/.yml +1024 -1336
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/with_video_mZqGqE0D0n4/date/.yml +14 -13
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/with_video_mZqGqE0D0n4/description/.yml +14 -13
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/with_video_mZqGqE0D0n4/duration/.yml +14 -13
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/with_video_mZqGqE0D0n4/keywords/.yml +14 -13
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/with_video_mZqGqE0D0n4/thumbnail_large/.yml +14 -13
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/with_video_mZqGqE0D0n4/thumbnail_medium/.yml +14 -13
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/with_video_mZqGqE0D0n4/thumbnail_small/.yml +14 -13
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/with_video_mZqGqE0D0n4/title/.yml +16 -15
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/with_video_mZqGqE0D0n4/view_count/.yml +14 -13
- data/spec/lib/video_info/provider_spec.rb +29 -9
- data/spec/lib/video_info/providers/vimeo_spec.rb +11 -11
- data/spec/lib/video_info/providers/vkontakte_spec.rb +4 -3
- data/spec/lib/video_info/providers/youtube_spec.rb +19 -19
- data/spec/lib/video_info_spec.rb +23 -23
- data/spec/spec_helper.rb +8 -2
- data/video_info.gemspec +5 -2
- metadata +6 -104
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_video_898029/embed_code/.yml +0 -69
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_video_898029/embed_url/.yml +0 -69
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_video_898029/provider/.yml +0 -69
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_video_898029/url/.yml +0 -69
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_video_898029/video_id/.yml +0 -69
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_video_898029_and_iframe_attributes/.yml +0 -69
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_video_898029_and_url_attributes/.yml +0 -69
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_video_898029_in_/group/_url/provider/.yml +0 -69
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_video_898029_in_/group/_url/video_id/.yml +0 -69
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_video_898029_in_text/provider/.yml +0 -69
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_video_898029_in_text/video_id/.yml +0 -69
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vkontakte/with_video_39576223_108370515/date/.yml +0 -1410
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vkontakte/with_video_39576223_108370515/provider/.yml +0 -1410
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vkontakte/with_video_39576223_108370515/url/.yml +0 -1410
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vkontakte/with_video_39576223_108370515/video_id/.yml +0 -1410
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vkontakte/with_video_39576223_108370515/video_owner/.yml +0 -1369
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/with_arbitrary_iframe_attributes/.yml +0 -62
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/with_arbitrary_iframe_attributes/provider/.yml +0 -62
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/with_iframe_attributes/.yml +0 -62
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/with_iframe_attributes/provider/.yml +0 -62
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/with_video_JM9NgvjjVng_in_youtu_be_url/provider/.yml +0 -65
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/with_video_JM9NgvjjVng_in_youtu_be_url/video_id/.yml +0 -65
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/with_video_VeasFckfMHY_after_params/provider/.yml +0 -66
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/with_video_VeasFckfMHY_after_params/url/.yml +0 -66
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/with_video_VeasFckfMHY_after_params/video_id/.yml +0 -66
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/with_video_VeasFckfMHY_in_e_path/provider/.yml +0 -66
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/with_video_VeasFckfMHY_in_e_path/video_id/.yml +0 -66
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/with_video_VeasFckfMHY_in_embed_path/provider/.yml +0 -66
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/with_video_VeasFckfMHY_in_embed_path/video_id/.yml +0 -66
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/with_video_VeasFckfMHY_in_path/provider/.yml +0 -66
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/with_video_VeasFckfMHY_in_path/video_id/.yml +0 -66
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/with_video_VeasFckfMHY_in_user_url/provider/.yml +0 -66
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/with_video_VeasFckfMHY_in_user_url/url/.yml +0 -66
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/with_video_VeasFckfMHY_in_user_url/video_id/.yml +0 -66
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/with_video_Xp6CXF-Cesg/provider/.yml +0 -62
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/with_video_Xp6CXF-Cesg/video_id/.yml +0 -62
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/with_video_mZqGqE0D0n4/embed_code/.yml +0 -62
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/with_video_mZqGqE0D0n4/embed_url/.yml +0 -62
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/with_video_mZqGqE0D0n4/height/.yml +0 -62
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/with_video_mZqGqE0D0n4/provider/.yml +0 -62
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/with_video_mZqGqE0D0n4/url/.yml +0 -62
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/with_video_mZqGqE0D0n4/video_id/.yml +0 -62
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/with_video_mZqGqE0D0n4/width/.yml +0 -62
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/with_video_oQ49W_xKzKA/.yml +0 -62
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/with_video_oQ49W_xKzKA/provider/.yml +0 -62
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/with_video_oQ49W_xKzKA/video_id/.yml +0 -62
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/with_video_url_in_text/provider/.yml +0 -62
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/with_video_url_in_text/video_id/.yml +0 -62
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/without_http_or_www/provider/.yml +0 -65
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/without_http_or_www/video_id/.yml +0 -65
data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_video_898029/description/.yml
CHANGED
@@ -8,7 +8,7 @@ http_interactions:
|
|
8
8
|
string: ''
|
9
9
|
headers:
|
10
10
|
User-Agent:
|
11
|
-
- VideoInfo/
|
11
|
+
- VideoInfo/2.0.0
|
12
12
|
Accept-Encoding:
|
13
13
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
14
14
|
Accept:
|
@@ -20,18 +20,20 @@ http_interactions:
|
|
20
20
|
headers:
|
21
21
|
Server:
|
22
22
|
- Apache
|
23
|
+
Access-Control-Allow-Origin:
|
24
|
+
- '*'
|
23
25
|
X-Ratelimit-Limit:
|
24
26
|
- '3600'
|
25
27
|
X-Ratelimit-Remaining:
|
26
|
-
- '
|
28
|
+
- '3599'
|
27
29
|
X-Ratelimit-Reset:
|
28
|
-
- '
|
30
|
+
- '1382736836'
|
29
31
|
Expires:
|
30
|
-
-
|
32
|
+
- Fri, 25 Oct 2013 20:34:56 GMT
|
31
33
|
Last-Modified:
|
32
|
-
-
|
34
|
+
- Sun, 20 Oct 2013 01:45:34 GMT
|
33
35
|
Etag:
|
34
|
-
- '"
|
36
|
+
- '"c632ac4e6ac3e1fcd30be3046eb936b0"'
|
35
37
|
X-Dns-Prefetch-Control:
|
36
38
|
- 'on'
|
37
39
|
Vary:
|
@@ -39,15 +41,15 @@ http_interactions:
|
|
39
41
|
Content-Type:
|
40
42
|
- application/json
|
41
43
|
Content-Length:
|
42
|
-
- '
|
44
|
+
- '498'
|
43
45
|
Accept-Ranges:
|
44
46
|
- bytes
|
45
47
|
Date:
|
46
|
-
-
|
48
|
+
- Fri, 25 Oct 2013 20:33:56 GMT
|
47
49
|
X-Varnish:
|
48
|
-
-
|
50
|
+
- 1715089933 1715089698
|
49
51
|
Age:
|
50
|
-
- '
|
52
|
+
- '0'
|
51
53
|
Via:
|
52
54
|
- 1.1 varnish
|
53
55
|
X-Varnish-Cache:
|
@@ -55,15 +57,15 @@ http_interactions:
|
|
55
57
|
Connection:
|
56
58
|
- close
|
57
59
|
X-Vserver:
|
58
|
-
- 10.90.128.
|
60
|
+
- 10.90.128.197
|
59
61
|
body:
|
60
62
|
encoding: UTF-8
|
61
63
|
string: '[{"id":898029,"title":"Cherry Bloom - King Of The Knife","description":"The
|
62
64
|
first video from the upcoming album Secret Sounds, to download in-stores April
|
63
65
|
14. Checkout http:\/\/www.cherrybloom.net","url":"http:\/\/vimeo.com\/898029","upload_date":"2008-04-14
|
64
66
|
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":
|
67
|
+
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":4557,"stats_number_of_comments":4,"duration":175,"width":640,"height":360,"tags":"cherry
|
66
68
|
bloom, secret sounds, king of the knife, rock, alternative","embed_privacy":"anywhere"}]'
|
67
69
|
http_version:
|
68
|
-
recorded_at:
|
69
|
-
recorded_with: VCR 2.
|
70
|
+
recorded_at: Fri, 25 Oct 2013 20:33:56 GMT
|
71
|
+
recorded_with: VCR 2.6.0
|
@@ -8,7 +8,7 @@ http_interactions:
|
|
8
8
|
string: ''
|
9
9
|
headers:
|
10
10
|
User-Agent:
|
11
|
-
- VideoInfo/
|
11
|
+
- VideoInfo/2.0.0
|
12
12
|
Accept-Encoding:
|
13
13
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
14
14
|
Accept:
|
@@ -20,18 +20,20 @@ http_interactions:
|
|
20
20
|
headers:
|
21
21
|
Server:
|
22
22
|
- Apache
|
23
|
+
Access-Control-Allow-Origin:
|
24
|
+
- '*'
|
23
25
|
X-Ratelimit-Limit:
|
24
26
|
- '3600'
|
25
27
|
X-Ratelimit-Remaining:
|
26
|
-
- '
|
28
|
+
- '3597'
|
27
29
|
X-Ratelimit-Reset:
|
28
|
-
- '
|
30
|
+
- '1382736836'
|
29
31
|
Expires:
|
30
|
-
-
|
32
|
+
- Fri, 25 Oct 2013 20:34:57 GMT
|
31
33
|
Last-Modified:
|
32
|
-
-
|
34
|
+
- Sun, 20 Oct 2013 01:45:34 GMT
|
33
35
|
Etag:
|
34
|
-
- '"
|
36
|
+
- '"c632ac4e6ac3e1fcd30be3046eb936b0"'
|
35
37
|
X-Dns-Prefetch-Control:
|
36
38
|
- 'on'
|
37
39
|
Vary:
|
@@ -39,31 +41,31 @@ http_interactions:
|
|
39
41
|
Content-Type:
|
40
42
|
- application/json
|
41
43
|
Content-Length:
|
42
|
-
- '
|
44
|
+
- '498'
|
43
45
|
Accept-Ranges:
|
44
46
|
- bytes
|
45
47
|
Date:
|
46
|
-
-
|
48
|
+
- Fri, 25 Oct 2013 20:33:57 GMT
|
47
49
|
X-Varnish:
|
48
|
-
-
|
50
|
+
- '789221273'
|
49
51
|
Age:
|
50
|
-
- '
|
52
|
+
- '0'
|
51
53
|
Via:
|
52
54
|
- 1.1 varnish
|
53
55
|
X-Varnish-Cache:
|
54
|
-
- '
|
56
|
+
- '0'
|
55
57
|
Connection:
|
56
58
|
- close
|
57
59
|
X-Vserver:
|
58
|
-
- 10.90.128.
|
60
|
+
- 10.90.128.196
|
59
61
|
body:
|
60
62
|
encoding: UTF-8
|
61
63
|
string: '[{"id":898029,"title":"Cherry Bloom - King Of The Knife","description":"The
|
62
64
|
first video from the upcoming album Secret Sounds, to download in-stores April
|
63
65
|
14. Checkout http:\/\/www.cherrybloom.net","url":"http:\/\/vimeo.com\/898029","upload_date":"2008-04-14
|
64
66
|
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":
|
67
|
+
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":4557,"stats_number_of_comments":4,"duration":175,"width":640,"height":360,"tags":"cherry
|
66
68
|
bloom, secret sounds, king of the knife, rock, alternative","embed_privacy":"anywhere"}]'
|
67
69
|
http_version:
|
68
|
-
recorded_at:
|
69
|
-
recorded_with: VCR 2.
|
70
|
+
recorded_at: Fri, 25 Oct 2013 20:33:57 GMT
|
71
|
+
recorded_with: VCR 2.6.0
|
@@ -8,7 +8,7 @@ http_interactions:
|
|
8
8
|
string: ''
|
9
9
|
headers:
|
10
10
|
User-Agent:
|
11
|
-
- VideoInfo/
|
11
|
+
- VideoInfo/2.0.0
|
12
12
|
Accept-Encoding:
|
13
13
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
14
14
|
Accept:
|
@@ -20,18 +20,20 @@ http_interactions:
|
|
20
20
|
headers:
|
21
21
|
Server:
|
22
22
|
- Apache
|
23
|
+
Access-Control-Allow-Origin:
|
24
|
+
- '*'
|
23
25
|
X-Ratelimit-Limit:
|
24
26
|
- '3600'
|
25
27
|
X-Ratelimit-Remaining:
|
26
|
-
- '
|
28
|
+
- '3597'
|
27
29
|
X-Ratelimit-Reset:
|
28
|
-
- '
|
30
|
+
- '1382736836'
|
29
31
|
Expires:
|
30
|
-
-
|
32
|
+
- Fri, 25 Oct 2013 20:34:57 GMT
|
31
33
|
Last-Modified:
|
32
|
-
-
|
34
|
+
- Sun, 20 Oct 2013 01:45:34 GMT
|
33
35
|
Etag:
|
34
|
-
- '"
|
36
|
+
- '"c632ac4e6ac3e1fcd30be3046eb936b0"'
|
35
37
|
X-Dns-Prefetch-Control:
|
36
38
|
- 'on'
|
37
39
|
Vary:
|
@@ -39,15 +41,15 @@ http_interactions:
|
|
39
41
|
Content-Type:
|
40
42
|
- application/json
|
41
43
|
Content-Length:
|
42
|
-
- '
|
44
|
+
- '498'
|
43
45
|
Accept-Ranges:
|
44
46
|
- bytes
|
45
47
|
Date:
|
46
|
-
-
|
48
|
+
- Fri, 25 Oct 2013 20:33:57 GMT
|
47
49
|
X-Varnish:
|
48
|
-
-
|
50
|
+
- 789221463 789221273
|
49
51
|
Age:
|
50
|
-
- '
|
52
|
+
- '1'
|
51
53
|
Via:
|
52
54
|
- 1.1 varnish
|
53
55
|
X-Varnish-Cache:
|
@@ -55,15 +57,15 @@ http_interactions:
|
|
55
57
|
Connection:
|
56
58
|
- close
|
57
59
|
X-Vserver:
|
58
|
-
- 10.90.128.
|
60
|
+
- 10.90.128.196
|
59
61
|
body:
|
60
62
|
encoding: UTF-8
|
61
63
|
string: '[{"id":898029,"title":"Cherry Bloom - King Of The Knife","description":"The
|
62
64
|
first video from the upcoming album Secret Sounds, to download in-stores April
|
63
65
|
14. Checkout http:\/\/www.cherrybloom.net","url":"http:\/\/vimeo.com\/898029","upload_date":"2008-04-14
|
64
66
|
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":
|
67
|
+
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":4557,"stats_number_of_comments":4,"duration":175,"width":640,"height":360,"tags":"cherry
|
66
68
|
bloom, secret sounds, king of the knife, rock, alternative","embed_privacy":"anywhere"}]'
|
67
69
|
http_version:
|
68
|
-
recorded_at:
|
69
|
-
recorded_with: VCR 2.
|
70
|
+
recorded_at: Fri, 25 Oct 2013 20:33:58 GMT
|
71
|
+
recorded_with: VCR 2.6.0
|
@@ -8,7 +8,7 @@ http_interactions:
|
|
8
8
|
string: ''
|
9
9
|
headers:
|
10
10
|
User-Agent:
|
11
|
-
- VideoInfo/
|
11
|
+
- VideoInfo/2.0.0
|
12
12
|
Accept-Encoding:
|
13
13
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
14
14
|
Accept:
|
@@ -20,18 +20,20 @@ http_interactions:
|
|
20
20
|
headers:
|
21
21
|
Server:
|
22
22
|
- Apache
|
23
|
+
Access-Control-Allow-Origin:
|
24
|
+
- '*'
|
23
25
|
X-Ratelimit-Limit:
|
24
26
|
- '3600'
|
25
27
|
X-Ratelimit-Remaining:
|
26
|
-
- '
|
28
|
+
- '3598'
|
27
29
|
X-Ratelimit-Reset:
|
28
|
-
- '
|
30
|
+
- '1382736836'
|
29
31
|
Expires:
|
30
|
-
-
|
32
|
+
- Fri, 25 Oct 2013 20:34:57 GMT
|
31
33
|
Last-Modified:
|
32
|
-
-
|
34
|
+
- Sun, 20 Oct 2013 01:45:34 GMT
|
33
35
|
Etag:
|
34
|
-
- '"
|
36
|
+
- '"c632ac4e6ac3e1fcd30be3046eb936b0"'
|
35
37
|
X-Dns-Prefetch-Control:
|
36
38
|
- 'on'
|
37
39
|
Vary:
|
@@ -39,31 +41,31 @@ http_interactions:
|
|
39
41
|
Content-Type:
|
40
42
|
- application/json
|
41
43
|
Content-Length:
|
42
|
-
- '
|
44
|
+
- '498'
|
43
45
|
Accept-Ranges:
|
44
46
|
- bytes
|
45
47
|
Date:
|
46
|
-
-
|
48
|
+
- Fri, 25 Oct 2013 20:33:57 GMT
|
47
49
|
X-Varnish:
|
48
|
-
-
|
50
|
+
- '2263930921'
|
49
51
|
Age:
|
50
|
-
- '
|
52
|
+
- '0'
|
51
53
|
Via:
|
52
54
|
- 1.1 varnish
|
53
55
|
X-Varnish-Cache:
|
54
|
-
- '
|
56
|
+
- '0'
|
55
57
|
Connection:
|
56
58
|
- close
|
57
59
|
X-Vserver:
|
58
|
-
- 10.90.128.
|
60
|
+
- 10.90.128.146
|
59
61
|
body:
|
60
62
|
encoding: UTF-8
|
61
63
|
string: '[{"id":898029,"title":"Cherry Bloom - King Of The Knife","description":"The
|
62
64
|
first video from the upcoming album Secret Sounds, to download in-stores April
|
63
65
|
14. Checkout http:\/\/www.cherrybloom.net","url":"http:\/\/vimeo.com\/898029","upload_date":"2008-04-14
|
64
66
|
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":
|
67
|
+
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":4557,"stats_number_of_comments":4,"duration":175,"width":640,"height":360,"tags":"cherry
|
66
68
|
bloom, secret sounds, king of the knife, rock, alternative","embed_privacy":"anywhere"}]'
|
67
69
|
http_version:
|
68
|
-
recorded_at:
|
69
|
-
recorded_with: VCR 2.
|
70
|
+
recorded_at: Fri, 25 Oct 2013 20:33:57 GMT
|
71
|
+
recorded_with: VCR 2.6.0
|
data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_video_898029/thumbnail_large/.yml
CHANGED
@@ -8,7 +8,7 @@ http_interactions:
|
|
8
8
|
string: ''
|
9
9
|
headers:
|
10
10
|
User-Agent:
|
11
|
-
- VideoInfo/
|
11
|
+
- VideoInfo/2.0.0
|
12
12
|
Accept-Encoding:
|
13
13
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
14
14
|
Accept:
|
@@ -20,18 +20,20 @@ http_interactions:
|
|
20
20
|
headers:
|
21
21
|
Server:
|
22
22
|
- Apache
|
23
|
+
Access-Control-Allow-Origin:
|
24
|
+
- '*'
|
23
25
|
X-Ratelimit-Limit:
|
24
26
|
- '3600'
|
25
27
|
X-Ratelimit-Remaining:
|
26
|
-
- '
|
28
|
+
- '3598'
|
27
29
|
X-Ratelimit-Reset:
|
28
|
-
- '
|
30
|
+
- '1382736836'
|
29
31
|
Expires:
|
30
|
-
-
|
32
|
+
- Fri, 25 Oct 2013 20:34:57 GMT
|
31
33
|
Last-Modified:
|
32
|
-
-
|
34
|
+
- Sun, 20 Oct 2013 01:45:34 GMT
|
33
35
|
Etag:
|
34
|
-
- '"
|
36
|
+
- '"c632ac4e6ac3e1fcd30be3046eb936b0"'
|
35
37
|
X-Dns-Prefetch-Control:
|
36
38
|
- 'on'
|
37
39
|
Vary:
|
@@ -39,15 +41,15 @@ http_interactions:
|
|
39
41
|
Content-Type:
|
40
42
|
- application/json
|
41
43
|
Content-Length:
|
42
|
-
- '
|
44
|
+
- '498'
|
43
45
|
Accept-Ranges:
|
44
46
|
- bytes
|
45
47
|
Date:
|
46
|
-
-
|
48
|
+
- Fri, 25 Oct 2013 20:33:58 GMT
|
47
49
|
X-Varnish:
|
48
|
-
-
|
50
|
+
- 2263931728 2263930921
|
49
51
|
Age:
|
50
|
-
- '
|
52
|
+
- '2'
|
51
53
|
Via:
|
52
54
|
- 1.1 varnish
|
53
55
|
X-Varnish-Cache:
|
@@ -62,8 +64,8 @@ http_interactions:
|
|
62
64
|
first video from the upcoming album Secret Sounds, to download in-stores April
|
63
65
|
14. Checkout http:\/\/www.cherrybloom.net","url":"http:\/\/vimeo.com\/898029","upload_date":"2008-04-14
|
64
66
|
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":
|
67
|
+
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":4557,"stats_number_of_comments":4,"duration":175,"width":640,"height":360,"tags":"cherry
|
66
68
|
bloom, secret sounds, king of the knife, rock, alternative","embed_privacy":"anywhere"}]'
|
67
69
|
http_version:
|
68
|
-
recorded_at:
|
69
|
-
recorded_with: VCR 2.
|
70
|
+
recorded_at: Fri, 25 Oct 2013 20:33:58 GMT
|
71
|
+
recorded_with: VCR 2.6.0
|
data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_video_898029/thumbnail_medium/.yml
CHANGED
@@ -8,7 +8,7 @@ http_interactions:
|
|
8
8
|
string: ''
|
9
9
|
headers:
|
10
10
|
User-Agent:
|
11
|
-
- VideoInfo/
|
11
|
+
- VideoInfo/2.0.0
|
12
12
|
Accept-Encoding:
|
13
13
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
14
14
|
Accept:
|
@@ -20,18 +20,20 @@ http_interactions:
|
|
20
20
|
headers:
|
21
21
|
Server:
|
22
22
|
- Apache
|
23
|
+
Access-Control-Allow-Origin:
|
24
|
+
- '*'
|
23
25
|
X-Ratelimit-Limit:
|
24
26
|
- '3600'
|
25
27
|
X-Ratelimit-Remaining:
|
26
|
-
- '
|
28
|
+
- '3599'
|
27
29
|
X-Ratelimit-Reset:
|
28
|
-
- '
|
30
|
+
- '1382736836'
|
29
31
|
Expires:
|
30
|
-
-
|
32
|
+
- Fri, 25 Oct 2013 20:34:56 GMT
|
31
33
|
Last-Modified:
|
32
|
-
-
|
34
|
+
- Sun, 20 Oct 2013 01:45:34 GMT
|
33
35
|
Etag:
|
34
|
-
- '"
|
36
|
+
- '"c632ac4e6ac3e1fcd30be3046eb936b0"'
|
35
37
|
X-Dns-Prefetch-Control:
|
36
38
|
- 'on'
|
37
39
|
Vary:
|
@@ -39,15 +41,15 @@ http_interactions:
|
|
39
41
|
Content-Type:
|
40
42
|
- application/json
|
41
43
|
Content-Length:
|
42
|
-
- '
|
44
|
+
- '498'
|
43
45
|
Accept-Ranges:
|
44
46
|
- bytes
|
45
47
|
Date:
|
46
|
-
-
|
48
|
+
- Fri, 25 Oct 2013 20:33:58 GMT
|
47
49
|
X-Varnish:
|
48
|
-
-
|
50
|
+
- 1715090782 1715089698
|
49
51
|
Age:
|
50
|
-
- '
|
52
|
+
- '2'
|
51
53
|
Via:
|
52
54
|
- 1.1 varnish
|
53
55
|
X-Varnish-Cache:
|
@@ -55,15 +57,15 @@ http_interactions:
|
|
55
57
|
Connection:
|
56
58
|
- close
|
57
59
|
X-Vserver:
|
58
|
-
- 10.90.128.
|
60
|
+
- 10.90.128.197
|
59
61
|
body:
|
60
62
|
encoding: UTF-8
|
61
63
|
string: '[{"id":898029,"title":"Cherry Bloom - King Of The Knife","description":"The
|
62
64
|
first video from the upcoming album Secret Sounds, to download in-stores April
|
63
65
|
14. Checkout http:\/\/www.cherrybloom.net","url":"http:\/\/vimeo.com\/898029","upload_date":"2008-04-14
|
64
66
|
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":
|
67
|
+
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":4557,"stats_number_of_comments":4,"duration":175,"width":640,"height":360,"tags":"cherry
|
66
68
|
bloom, secret sounds, king of the knife, rock, alternative","embed_privacy":"anywhere"}]'
|
67
69
|
http_version:
|
68
|
-
recorded_at:
|
69
|
-
recorded_with: VCR 2.
|
70
|
+
recorded_at: Fri, 25 Oct 2013 20:33:58 GMT
|
71
|
+
recorded_with: VCR 2.6.0
|
data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_video_898029/thumbnail_small/.yml
CHANGED
@@ -8,7 +8,7 @@ http_interactions:
|
|
8
8
|
string: ''
|
9
9
|
headers:
|
10
10
|
User-Agent:
|
11
|
-
- VideoInfo/
|
11
|
+
- VideoInfo/2.0.0
|
12
12
|
Accept-Encoding:
|
13
13
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
14
14
|
Accept:
|
@@ -20,18 +20,20 @@ http_interactions:
|
|
20
20
|
headers:
|
21
21
|
Server:
|
22
22
|
- Apache
|
23
|
+
Access-Control-Allow-Origin:
|
24
|
+
- '*'
|
23
25
|
X-Ratelimit-Limit:
|
24
26
|
- '3600'
|
25
27
|
X-Ratelimit-Remaining:
|
26
|
-
- '
|
28
|
+
- '3598'
|
27
29
|
X-Ratelimit-Reset:
|
28
|
-
- '
|
30
|
+
- '1382736836'
|
29
31
|
Expires:
|
30
|
-
-
|
32
|
+
- Fri, 25 Oct 2013 20:34:57 GMT
|
31
33
|
Last-Modified:
|
32
|
-
-
|
34
|
+
- Sun, 20 Oct 2013 01:45:34 GMT
|
33
35
|
Etag:
|
34
|
-
- '"
|
36
|
+
- '"c632ac4e6ac3e1fcd30be3046eb936b0"'
|
35
37
|
X-Dns-Prefetch-Control:
|
36
38
|
- 'on'
|
37
39
|
Vary:
|
@@ -39,15 +41,15 @@ http_interactions:
|
|
39
41
|
Content-Type:
|
40
42
|
- application/json
|
41
43
|
Content-Length:
|
42
|
-
- '
|
44
|
+
- '498'
|
43
45
|
Accept-Ranges:
|
44
46
|
- bytes
|
45
47
|
Date:
|
46
|
-
-
|
48
|
+
- Fri, 25 Oct 2013 20:33:58 GMT
|
47
49
|
X-Varnish:
|
48
|
-
-
|
50
|
+
- 2263931522 2263930921
|
49
51
|
Age:
|
50
|
-
- '
|
52
|
+
- '1'
|
51
53
|
Via:
|
52
54
|
- 1.1 varnish
|
53
55
|
X-Varnish-Cache:
|
@@ -62,8 +64,8 @@ http_interactions:
|
|
62
64
|
first video from the upcoming album Secret Sounds, to download in-stores April
|
63
65
|
14. Checkout http:\/\/www.cherrybloom.net","url":"http:\/\/vimeo.com\/898029","upload_date":"2008-04-14
|
64
66
|
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":
|
67
|
+
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":4557,"stats_number_of_comments":4,"duration":175,"width":640,"height":360,"tags":"cherry
|
66
68
|
bloom, secret sounds, king of the knife, rock, alternative","embed_privacy":"anywhere"}]'
|
67
69
|
http_version:
|
68
|
-
recorded_at:
|
69
|
-
recorded_with: VCR 2.
|
70
|
+
recorded_at: Fri, 25 Oct 2013 20:33:58 GMT
|
71
|
+
recorded_with: VCR 2.6.0
|