jtv 1.0.1 → 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/README.md +2 -38
- data/lib/jtv/channel.rb +4 -11
- data/lib/jtv/client.rb +1 -1
- data/lib/jtv/stream.rb +4 -4
- data/lib/jtv/user.rb +1 -5
- data/lib/jtv/version.rb +1 -1
- data/spec/features/channel_spec.rb +8 -27
- data/spec/features/stream_spec.rb +8 -10
- data/spec/features/user_spec.rb +1 -8
- data/spec/jtv/channel_spec.rb +3 -19
- data/spec/jtv/client_spec.rb +2 -5
- data/spec/jtv/defaults_spec.rb +6 -6
- data/spec/jtv/stream_spec.rb +7 -6
- data/spec/jtv/user_spec.rb +1 -8
- data/spec/jtv_spec.rb +2 -2
- data/spec/vcr_cassettes/Jtv_Channel/_archives/returns_an_array_of_archives_for_given_channel.yml +42 -37
- data/spec/vcr_cassettes/Jtv_Channel/_channel_show/provides_information_for_a_given_channel.yml +40 -42
- data/spec/vcr_cassettes/Jtv_Channel/_fans/fetches_fans_for_a_given_channel.yml +65 -351
- data/spec/vcr_cassettes/Jtv_Stream/_featured/returns_a_list_of_streams.yml +1552 -0
- data/spec/vcr_cassettes/Jtv_Stream/_search/returns_streams_based_on_search_query.yml +66 -334
- data/spec/vcr_cassettes/Jtv_Stream/_summary/returns_a_summary_of_Justin_tv_data.yml +70 -0
- data/spec/vcr_cassettes/Jtv_User/_user_show/fetches_information_on_user.yml +37 -34
- data/spec/vcr_config.rb +0 -4
- metadata +26 -32
- data/spec/vcr_cassettes/Jtv_Channel/_chat_embed/returns_an_iframe_for_chat.yml +0 -46
- data/spec/vcr_cassettes/Jtv_Channel/_embed/returns_a_string_containing_an_embed_object.yml +0 -53
- data/spec/vcr_cassettes/Jtv_Stream/_list/returns_a_list_of_streams_for_a_category.yml +0 -1692
- data/spec/vcr_cassettes/Jtv_Stream/_summary/returns_a_summary_of_Jutstin_tv_data.yml +0 -51
- data/spec/vcr_cassettes/Jtv_User/_favorites/fetches_favorites_from_user.yml +0 -88
@@ -1,51 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: get
|
5
|
-
uri: http://api.justin.tv/stream/summary.json
|
6
|
-
body:
|
7
|
-
encoding: US-ASCII
|
8
|
-
string: ''
|
9
|
-
headers:
|
10
|
-
Accept:
|
11
|
-
- application/json
|
12
|
-
User-Agent:
|
13
|
-
- Jtv Gem
|
14
|
-
Authorization:
|
15
|
-
- OAuth oauth_nonce="f25116e138a63a6406db3ab48e628bef", oauth_signature="ZtZy1hHJurMLwWSKNxvE3u01UKI%3D",
|
16
|
-
oauth_signature_method="HMAC-SHA1", oauth_timestamp="1368407743", oauth_version="1.0"
|
17
|
-
Accept-Encoding:
|
18
|
-
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
19
|
-
response:
|
20
|
-
status:
|
21
|
-
code: 200
|
22
|
-
message: OK
|
23
|
-
headers:
|
24
|
-
Server:
|
25
|
-
- nginx
|
26
|
-
Date:
|
27
|
-
- Mon, 13 May 2013 01:15:42 GMT
|
28
|
-
Content-Type:
|
29
|
-
- application/json
|
30
|
-
Transfer-Encoding:
|
31
|
-
- chunked
|
32
|
-
Connection:
|
33
|
-
- close
|
34
|
-
Content-Language:
|
35
|
-
- en
|
36
|
-
Expires:
|
37
|
-
- Mon, 13 May 2013 01:15:44 GMT
|
38
|
-
Vary:
|
39
|
-
- Accept-Language, Cookie
|
40
|
-
Last-Modified:
|
41
|
-
- Mon, 13 May 2013 01:15:14 GMT
|
42
|
-
Cache-Control:
|
43
|
-
- max-age=30
|
44
|
-
Front-End-Https:
|
45
|
-
- 'off'
|
46
|
-
body:
|
47
|
-
encoding: UTF-8
|
48
|
-
string: '{"average_bitrate": 0, "viewers_count": 209078, "streams_count": 6165}'
|
49
|
-
http_version:
|
50
|
-
recorded_at: Mon, 13 May 2013 01:15:44 GMT
|
51
|
-
recorded_with: VCR 2.4.0
|
@@ -1,88 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: get
|
5
|
-
uri: http://api.justin.tv/user/favorites/augury.json
|
6
|
-
body:
|
7
|
-
encoding: US-ASCII
|
8
|
-
string: ''
|
9
|
-
headers:
|
10
|
-
Accept:
|
11
|
-
- application/json
|
12
|
-
User-Agent:
|
13
|
-
- Jtv Gem
|
14
|
-
Authorization:
|
15
|
-
- OAuth oauth_nonce="010ea1248ba10a18edc4a91460291e2d", oauth_signature="V%2B7Oxsw%2BcS%2FZMxu1%2BU%2BQplSZBWI%3D",
|
16
|
-
oauth_signature_method="HMAC-SHA1", oauth_timestamp="1361148594", oauth_version="1.0"
|
17
|
-
Accept-Encoding:
|
18
|
-
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
19
|
-
response:
|
20
|
-
status:
|
21
|
-
code: 200
|
22
|
-
message: OK
|
23
|
-
headers:
|
24
|
-
Server:
|
25
|
-
- nginx
|
26
|
-
Date:
|
27
|
-
- Mon, 18 Feb 2013 00:49:54 GMT
|
28
|
-
Content-Type:
|
29
|
-
- application/json
|
30
|
-
Transfer-Encoding:
|
31
|
-
- chunked
|
32
|
-
Connection:
|
33
|
-
- close
|
34
|
-
Status:
|
35
|
-
- 200 OK
|
36
|
-
Via:
|
37
|
-
- Twice 0.2 twice3:3344
|
38
|
-
X-Runtime:
|
39
|
-
- '0.024643'
|
40
|
-
X-Geo:
|
41
|
-
- US
|
42
|
-
X-Request-Id:
|
43
|
-
- e0128d6c2a3fe994f53e6dd12ba979a4
|
44
|
-
Etag:
|
45
|
-
- '"396a7501345f837c6c6477ba1a601d74"'
|
46
|
-
X-Ua-Compatible:
|
47
|
-
- IE=Edge,chrome=1
|
48
|
-
Cache-Control:
|
49
|
-
- must-revalidate, private, max-age=0
|
50
|
-
X-Rack-Cache:
|
51
|
-
- miss
|
52
|
-
Set-Cookie:
|
53
|
-
- language=en; domain=.twitch.tv; path=/; expires=Fri, 18-Feb-2033 00:49:54
|
54
|
-
GMT
|
55
|
-
Front-End-Https:
|
56
|
-
- 'off'
|
57
|
-
body:
|
58
|
-
encoding: UTF-8
|
59
|
-
string: '[{"screen_cap_url_huge":"http://static-cdn.jtvnw.net/previews/live_user_fourplayerpodcast-630x473.jpg","timezone":"US/Central","tags":"360
|
60
|
-
games gaming microsoft nintendo playstation podcast ps3 sony video videogames
|
61
|
-
wii xbox","category_title":"Gaming","subcategory":null,"category":"gaming","views_count":"43008310","screen_cap_url_large":"http://static-cdn.jtvnw.net/previews/live_user_fourplayerpodcast-320x240.jpg","status":"Metal
|
62
|
-
Gear Sunday - MGS4 with Nolan!","embed_enabled":true,"image_url_huge":"http://static-cdn.jtvnw.net/jtv_user_pictures/fourplayerpodcast-profile_image-a5772f943f3cc055-600x600.jpeg","channel_url":"http://www.justin.tv/fourplayerpodcast","subcategory_title":null,"title":"4Player
|
63
|
-
Podcast","screen_cap_url_small":"http://static-cdn.jtvnw.net/previews/live_user_fourplayerpodcast-70x53.jpg","mature":false,"screen_cap_url_medium":"http://static-cdn.jtvnw.net/previews/live_user_fourplayerpodcast-150x113.jpg","image_url_large":"http://static-cdn.jtvnw.net/jtv_user_pictures/fourplayerpodcast-profile_image-a5772f943f3cc055-300x300.jpeg","id":261715,"image_url_medium":"http://static-cdn.jtvnw.net/jtv_user_pictures/fourplayerpodcast-profile_image-a5772f943f3cc055-150x150.jpeg","producer":true,"image_url_small":"http://static-cdn.jtvnw.net/jtv_user_pictures/fourplayerpodcast-profile_image-a5772f943f3cc055-70x70.jpeg","embed_code":" <object
|
64
|
-
type=\"application/x-shockwave-flash\" height=\"295\" width=\"353\" id=\"live_embed_player_flash\"
|
65
|
-
data=\"http://www.justin.tv/widgets/live_embed_player.swf?channel=fourplayerpodcast\"
|
66
|
-
bgcolor=\"#000000\"><param name=\"allowFullScreen\" value=\"true\" /><param
|
67
|
-
name=\"allowscriptaccess\" value=\"always\" /><param name=\"movie\" value=\"http://www.justin.tv/widgets/live_embed_player.swf\"
|
68
|
-
/><param name=\"flashvars\" value=\"auto_play=false&channel=fourplayerpodcast&start_volume=25\"
|
69
|
-
/></object>\n","image_url_tiny":"http://static-cdn.jtvnw.net/jtv_user_pictures/fourplayerpodcast-profile_image-a5772f943f3cc055-50x50.jpeg","language":"en","login":"fourplayerpodcast"},{"screen_cap_url_huge":"http://static-cdn.jtvnw.net/previews/live_user_brandon505-630x473.jpg","timezone":"America/Detroit","tags":"brandon505
|
70
|
-
brandons channel gaming","category_title":"Gaming","subcategory":null,"category":"gaming","views_count":"3230997","screen_cap_url_large":"http://static-cdn.jtvnw.net/previews/live_user_brandon505-320x240.jpg","status":"Borderlands
|
71
|
-
2 with Brandon (360)","embed_enabled":true,"image_url_huge":"http://static-cdn.jtvnw.net/jtv_user_pictures/brandon505-profile_image-fc6c1cfd10c850be-600x600.png","channel_url":"http://www.justin.tv/brandon505","subcategory_title":null,"title":"Brandon''s
|
72
|
-
Gaming Stream","screen_cap_url_small":"http://static-cdn.jtvnw.net/previews/live_user_brandon505-70x53.jpg","mature":null,"screen_cap_url_medium":"http://static-cdn.jtvnw.net/previews/live_user_brandon505-150x113.jpg","image_url_large":"http://static-cdn.jtvnw.net/jtv_user_pictures/brandon505-profile_image-fc6c1cfd10c850be-300x300.png","id":6659152,"image_url_medium":"http://static-cdn.jtvnw.net/jtv_user_pictures/brandon505-profile_image-fc6c1cfd10c850be-150x150.png","producer":true,"image_url_small":"http://static-cdn.jtvnw.net/jtv_user_pictures/brandon505-profile_image-fc6c1cfd10c850be-70x70.png","embed_code":" <object
|
73
|
-
type=\"application/x-shockwave-flash\" height=\"295\" width=\"353\" id=\"live_embed_player_flash\"
|
74
|
-
data=\"http://www.justin.tv/widgets/live_embed_player.swf?channel=brandon505\"
|
75
|
-
bgcolor=\"#000000\"><param name=\"allowFullScreen\" value=\"true\" /><param
|
76
|
-
name=\"allowscriptaccess\" value=\"always\" /><param name=\"movie\" value=\"http://www.justin.tv/widgets/live_embed_player.swf\"
|
77
|
-
/><param name=\"flashvars\" value=\"auto_play=false&channel=brandon505&start_volume=25\"
|
78
|
-
/></object>\n","image_url_tiny":"http://static-cdn.jtvnw.net/jtv_user_pictures/brandon505-profile_image-fc6c1cfd10c850be-50x50.png","language":"en","login":"brandon505"},{"screen_cap_url_huge":"http://static-cdn.jtvnw.net/previews/live_user_nlthargor-630x473.jpg","timezone":"Europe/Berlin","tags":null,"category_title":"Gaming","subcategory":null,"category":"gaming","views_count":"17581","screen_cap_url_large":"http://static-cdn.jtvnw.net/previews/live_user_nlthargor-320x240.jpg","status":"2,6k+
|
79
|
-
Exp Warrior // 3vs3 with Spowngirly and Atyrian!! Pushing Glad!","embed_enabled":true,"image_url_huge":"http://static-cdn.jtvnw.net/jtv_user_pictures/nlthargor-profile_image-d8478fa647ded651-600x600.jpeg","channel_url":"http://www.justin.tv/nlthargor","subcategory_title":null,"title":"nlthargor","screen_cap_url_small":"http://static-cdn.jtvnw.net/previews/live_user_nlthargor-70x53.jpg","mature":false,"screen_cap_url_medium":"http://static-cdn.jtvnw.net/previews/live_user_nlthargor-150x113.jpg","image_url_large":"http://static-cdn.jtvnw.net/jtv_user_pictures/nlthargor-profile_image-d8478fa647ded651-300x300.jpeg","id":30744941,"image_url_medium":"http://static-cdn.jtvnw.net/jtv_user_pictures/nlthargor-profile_image-d8478fa647ded651-150x150.jpeg","producer":false,"image_url_small":"http://static-cdn.jtvnw.net/jtv_user_pictures/nlthargor-profile_image-d8478fa647ded651-70x70.jpeg","embed_code":" <object
|
80
|
-
type=\"application/x-shockwave-flash\" height=\"295\" width=\"353\" id=\"live_embed_player_flash\"
|
81
|
-
data=\"http://www.justin.tv/widgets/live_embed_player.swf?channel=nlthargor\"
|
82
|
-
bgcolor=\"#000000\"><param name=\"allowFullScreen\" value=\"true\" /><param
|
83
|
-
name=\"allowscriptaccess\" value=\"always\" /><param name=\"movie\" value=\"http://www.justin.tv/widgets/live_embed_player.swf\"
|
84
|
-
/><param name=\"flashvars\" value=\"auto_play=false&channel=nlthargor&start_volume=25\"
|
85
|
-
/></object>\n","image_url_tiny":"http://static-cdn.jtvnw.net/jtv_user_pictures/nlthargor-profile_image-d8478fa647ded651-50x50.jpeg","language":"de","login":"nlthargor"}]'
|
86
|
-
http_version:
|
87
|
-
recorded_at: Mon, 18 Feb 2013 00:49:54 GMT
|
88
|
-
recorded_with: VCR 2.4.0
|