jtv 1.0.0.beta1 → 1.0.0

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 (29) hide show
  1. checksums.yaml +7 -0
  2. data/CHANGELOG.md +3 -0
  3. data/README.md +65 -0
  4. data/jtv.gemspec +1 -1
  5. data/lib/jtv/channel.rb +23 -0
  6. data/lib/jtv/client.rb +2 -0
  7. data/lib/jtv/version.rb +1 -1
  8. data/spec/features/channel_spec.rb +48 -0
  9. data/spec/features/stream_spec.rb +4 -10
  10. data/spec/features/user_spec.rb +2 -6
  11. data/spec/jtv/channel_spec.rb +44 -0
  12. data/spec/jtv/client_spec.rb +10 -0
  13. data/spec/vcr_cassettes/Jtv_Channel/_archives/returns_an_array_of_archives_for_given_channel.yml +70 -0
  14. data/spec/vcr_cassettes/Jtv_Channel/_channel_show/provides_information_for_a_given_channel.yml +69 -0
  15. data/spec/vcr_cassettes/Jtv_Channel/_chat_embed/returns_an_iframe_for_chat.yml +63 -0
  16. data/spec/vcr_cassettes/Jtv_Channel/_embed/returns_a_string_containing_an_embed_object.yml +63 -0
  17. data/spec/vcr_cassettes/Jtv_Channel/_fans/fetches_fans_for_a_given_channel.yml +209 -0
  18. data/spec/vcr_cassettes/Jtv_Stream/_list/returns_a_list_of_streams_for_a_category.yml +591 -0
  19. data/spec/vcr_cassettes/Jtv_Stream/_search/returns_streams_based_on_search_query.yml +161 -0
  20. data/spec/vcr_cassettes/Jtv_Stream/_summary/returns_a_summary_of_Jutstin_tv_data.yml +59 -0
  21. data/spec/vcr_cassettes/Jtv_User/_favorites/fetches_favorites_from_user.yml +88 -0
  22. data/spec/vcr_cassettes/Jtv_User/_user_show/fetches_information_on_user.yml +67 -0
  23. data/spec/vcr_config.rb +4 -3
  24. metadata +48 -52
  25. data/spec/vcr_cassettes/Jtv_Stream/_list.yml +0 -408
  26. data/spec/vcr_cassettes/Jtv_Stream/_search.yml +0 -156
  27. data/spec/vcr_cassettes/Jtv_Stream/_summary.yml +0 -81
  28. data/spec/vcr_cassettes/Jtv_User/_favorites.yml +0 -110
  29. data/spec/vcr_cassettes/Jtv_User/_user_show.yml +0 -92
@@ -0,0 +1,161 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://api.justin.tv/stream/search/league%20of%20legends.json?limit=10
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="86e5ab31eda02e21806a6c03fe47730f", oauth_signature="1iGZeCbbWKogBy%2BmIUcnASMexh0%3D",
16
+ oauth_signature_method="HMAC-SHA1", oauth_timestamp="1361148617", 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:50:18 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 twice7:3341
38
+ X-Runtime:
39
+ - '0.646477'
40
+ X-Geo:
41
+ - US
42
+ X-Request-Id:
43
+ - a7a8a55b96a787e8aba8197c225fc76d
44
+ Etag:
45
+ - '"3e24bb63eebf6b2bc481fc9ff69f4639"'
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
+ Front-End-Https:
53
+ - 'off'
54
+ body:
55
+ encoding: UTF-8
56
+ string: '[{"stream_count":5120,"name":"live_user_esl_lol_brasil","embed_count":120,"format":"live","channel_count":8568,"category":"gaming","title":"Go4LOL
57
+ #16 - Na transmiss\u00e3o @GruntarTV e @TobocoTV- Tabela: http://bit.ly/UuWP2I","channel":{"screen_cap_url_huge":"http://static-cdn.jtvnw.net/previews/live_user_esl_lol_brasil-630x473.jpg","timezone":"America/Sao_Paulo","tags":null,"category_title":"Gaming","subcategory":null,"category":"gaming","views_count":"6959503","screen_cap_url_large":"http://static-cdn.jtvnw.net/previews/live_user_esl_lol_brasil-320x240.jpg","status":"Go4LOL
58
+ #16 - Na transmiss\u00e3o @GruntarTV e @TobocoTV- Tabela: http://bit.ly/UuWP2I","embed_enabled":true,"image_url_huge":"http://static-cdn.jtvnw.net/jtv_user_pictures/esl_lol_brasil-profile_image-b4f5ee3a40c1736a-600x600.png","channel_url":"http://www.justin.tv/esl_lol_brasil","subcategory_title":null,"title":"esl_lol_brasil","screen_cap_url_small":"http://static-cdn.jtvnw.net/previews/live_user_esl_lol_brasil-70x53.jpg","mature":null,"screen_cap_url_medium":"http://static-cdn.jtvnw.net/previews/live_user_esl_lol_brasil-150x113.jpg","image_url_large":"http://static-cdn.jtvnw.net/jtv_user_pictures/esl_lol_brasil-profile_image-b4f5ee3a40c1736a-300x300.png","id":36791492,"image_url_medium":"http://static-cdn.jtvnw.net/jtv_user_pictures/esl_lol_brasil-profile_image-b4f5ee3a40c1736a-150x150.png","producer":true,"image_url_small":"http://static-cdn.jtvnw.net/jtv_user_pictures/esl_lol_brasil-profile_image-b4f5ee3a40c1736a-70x70.png","embed_code":" <object
59
+ type=\"application/x-shockwave-flash\" height=\"295\" width=\"353\" id=\"live_embed_player_flash\"
60
+ data=\"http://www.justin.tv/widgets/live_embed_player.swf?channel=esl_lol_brasil\"
61
+ bgcolor=\"#000000\"><param name=\"allowFullScreen\" value=\"true\" /><param
62
+ name=\"allowscriptaccess\" value=\"always\" /><param name=\"movie\" value=\"http://www.justin.tv/widgets/live_embed_player.swf\"
63
+ /><param name=\"flashvars\" value=\"auto_play=false&channel=esl_lol_brasil&start_volume=25\"
64
+ /></object>\n","image_url_tiny":"http://static-cdn.jtvnw.net/jtv_user_pictures/esl_lol_brasil-profile_image-b4f5ee3a40c1736a-50x50.png","language":"de","login":"esl_lol_brasil"},"abuse_reported":false,"site_count":5000,"featured":true,"video_bitrate":114.6484375,"language":"de","video_height":720,"broadcaster":"fme","meta_game":"League
65
+ of Legends","id":"4889347680","channel_view_count":6869262,"geo":"BR","video_width":1280,"up_time":"Sun
66
+ Feb 17 08:31:44 2013","audio_codec":"uncompressed","broadcast_part":17,"stream_type":"live","embed_enabled":true,"channel_subscription":false,"video_codec":"AVC"},{"stream_count":2377,"name":"live_user_sivhd","embed_count":229,"format":"live","channel_count":6258,"category":"gaming","title":"Siv","channel":{"screen_cap_url_huge":"http://static-cdn.jtvnw.net/previews/live_user_sivhd-630x473.jpg","timezone":"America/Los_Angeles","tags":null,"category_title":"Gaming","subcategory":null,"category":"gaming","views_count":"3192999","screen_cap_url_large":"http://static-cdn.jtvnw.net/previews/live_user_sivhd-320x240.jpg","status":"Siv","embed_enabled":true,"image_url_huge":"http://static-cdn.jtvnw.net/jtv_user_pictures/sivhd-profile_image-ef8bcc4387da7a57-600x600.jpeg","channel_url":"http://www.justin.tv/sivhd","subcategory_title":null,"title":"sivhd","screen_cap_url_small":"http://static-cdn.jtvnw.net/previews/live_user_sivhd-70x53.jpg","mature":null,"screen_cap_url_medium":"http://static-cdn.jtvnw.net/previews/live_user_sivhd-150x113.jpg","image_url_large":"http://static-cdn.jtvnw.net/jtv_user_pictures/sivhd-profile_image-ef8bcc4387da7a57-300x300.jpeg","id":27686136,"image_url_medium":"http://static-cdn.jtvnw.net/jtv_user_pictures/sivhd-profile_image-ef8bcc4387da7a57-150x150.jpeg","producer":true,"image_url_small":"http://static-cdn.jtvnw.net/jtv_user_pictures/sivhd-profile_image-ef8bcc4387da7a57-70x70.jpeg","embed_code":" <object
67
+ type=\"application/x-shockwave-flash\" height=\"295\" width=\"353\" id=\"live_embed_player_flash\"
68
+ data=\"http://www.justin.tv/widgets/live_embed_player.swf?channel=sivhd\"
69
+ bgcolor=\"#000000\"><param name=\"allowFullScreen\" value=\"true\" /><param
70
+ name=\"allowscriptaccess\" value=\"always\" /><param name=\"movie\" value=\"http://www.justin.tv/widgets/live_embed_player.swf\"
71
+ /><param name=\"flashvars\" value=\"auto_play=false&channel=sivhd&start_volume=25\"
72
+ /></object>\n","image_url_tiny":"http://static-cdn.jtvnw.net/jtv_user_pictures/sivhd-profile_image-ef8bcc4387da7a57-50x50.jpeg","language":"en","login":"sivhd"},"abuse_reported":false,"site_count":2148,"featured":true,"video_bitrate":536.6796875,"language":"en","video_height":720,"broadcaster":"fme","meta_game":"League
73
+ of Legends","id":"4890918384","channel_view_count":3068590,"geo":"NL","video_width":1280,"up_time":"Sun
74
+ Feb 17 11:55:23 2013","audio_codec":"uncompressed","broadcast_part":10,"stream_type":"live","embed_enabled":false,"channel_subscription":false,"video_codec":"AVC"},{"stream_count":1712,"name":"live_user_nyjacky","embed_count":264,"format":"live","channel_count":3933,"category":"gaming","title":"Nyjacky
75
+ - Duo with Shitvicious..<3","channel":{"screen_cap_url_huge":"http://static-cdn.jtvnw.net/previews/live_user_nyjacky-630x473.jpg","timezone":"America/Los_Angeles","tags":null,"category_title":"Gaming","subcategory":null,"category":"gaming","views_count":"5040347","screen_cap_url_large":"http://static-cdn.jtvnw.net/previews/live_user_nyjacky-320x240.jpg","status":"Nyjacky
76
+ - Duo with Shitvicious..<3","embed_enabled":true,"image_url_huge":"http://static-cdn.jtvnw.net/jtv_user_pictures/nyjacky-profile_image-cac71751569030b8-600x600.jpeg","channel_url":"http://www.justin.tv/nyjacky","subcategory_title":null,"title":"Crs
77
+ Nyjacky","screen_cap_url_small":"http://static-cdn.jtvnw.net/previews/live_user_nyjacky-70x53.jpg","mature":false,"screen_cap_url_medium":"http://static-cdn.jtvnw.net/previews/live_user_nyjacky-150x113.jpg","image_url_large":"http://static-cdn.jtvnw.net/jtv_user_pictures/nyjacky-profile_image-cac71751569030b8-300x300.jpeg","id":25077819,"image_url_medium":"http://static-cdn.jtvnw.net/jtv_user_pictures/nyjacky-profile_image-cac71751569030b8-150x150.jpeg","producer":true,"image_url_small":"http://static-cdn.jtvnw.net/jtv_user_pictures/nyjacky-profile_image-cac71751569030b8-70x70.jpeg","embed_code":" <object
78
+ type=\"application/x-shockwave-flash\" height=\"295\" width=\"353\" id=\"live_embed_player_flash\"
79
+ data=\"http://www.justin.tv/widgets/live_embed_player.swf?channel=nyjacky\"
80
+ bgcolor=\"#000000\"><param name=\"allowFullScreen\" value=\"true\" /><param
81
+ name=\"allowscriptaccess\" value=\"always\" /><param name=\"movie\" value=\"http://www.justin.tv/widgets/live_embed_player.swf\"
82
+ /><param name=\"flashvars\" value=\"auto_play=false&channel=nyjacky&start_volume=25\"
83
+ /></object>\n","image_url_tiny":"http://static-cdn.jtvnw.net/jtv_user_pictures/nyjacky-profile_image-cac71751569030b8-50x50.jpeg","language":"en","login":"nyjacky"},"abuse_reported":false,"site_count":1448,"featured":true,"video_bitrate":2072.765625,"language":"en","video_height":1080,"broadcaster":"delay","meta_game":"League
84
+ of Legends","id":"4891515904","channel_view_count":5015209,"geo":"US","video_width":1920,"up_time":"Sun
85
+ Feb 17 13:13:19 2013","audio_codec":"uncompressed","broadcast_part":8,"stream_type":"live","embed_enabled":true,"channel_subscription":false,"video_codec":"AVC"},{"stream_count":581,"name":"live_user_bischulol","embed_count":109,"format":"live","channel_count":797,"category":"gaming","title":"Bischu/\ube44\uc288
86
+ CHALLENGER BISCHU. Duoin with Wings","channel":{"screen_cap_url_huge":"http://static-cdn.jtvnw.net/previews/live_user_bischulol-630x473.jpg","timezone":"America/Los_Angeles","tags":null,"category_title":"Gaming","subcategory":null,"category":"gaming","views_count":"2771153","screen_cap_url_large":"http://static-cdn.jtvnw.net/previews/live_user_bischulol-320x240.jpg","status":"Bischu/\ube44\uc288
87
+ CHALLENGER BISCHU. Duoin with Wings","embed_enabled":true,"image_url_huge":"http://static-cdn.jtvnw.net/jtv_user_pictures/bischulol-profile_image-59df0b89d975ccf5-600x600.jpeg","channel_url":"http://www.justin.tv/bischulol","subcategory_title":null,"title":"bischulol","screen_cap_url_small":"http://static-cdn.jtvnw.net/previews/live_user_bischulol-70x53.jpg","mature":null,"screen_cap_url_medium":"http://static-cdn.jtvnw.net/previews/live_user_bischulol-150x113.jpg","image_url_large":"http://static-cdn.jtvnw.net/jtv_user_pictures/bischulol-profile_image-59df0b89d975ccf5-300x300.jpeg","id":35671232,"image_url_medium":"http://static-cdn.jtvnw.net/jtv_user_pictures/bischulol-profile_image-59df0b89d975ccf5-150x150.jpeg","producer":true,"image_url_small":"http://static-cdn.jtvnw.net/jtv_user_pictures/bischulol-profile_image-59df0b89d975ccf5-70x70.jpeg","embed_code":" <object
88
+ type=\"application/x-shockwave-flash\" height=\"295\" width=\"353\" id=\"live_embed_player_flash\"
89
+ data=\"http://www.justin.tv/widgets/live_embed_player.swf?channel=bischulol\"
90
+ bgcolor=\"#000000\"><param name=\"allowFullScreen\" value=\"true\" /><param
91
+ name=\"allowscriptaccess\" value=\"always\" /><param name=\"movie\" value=\"http://www.justin.tv/widgets/live_embed_player.swf\"
92
+ /><param name=\"flashvars\" value=\"auto_play=false&channel=bischulol&start_volume=25\"
93
+ /></object>\n","image_url_tiny":"http://static-cdn.jtvnw.net/jtv_user_pictures/bischulol-profile_image-59df0b89d975ccf5-50x50.jpeg","language":"en","login":"bischulol"},"abuse_reported":false,"site_count":472,"featured":true,"video_bitrate":579.875,"language":"en","video_height":720,"broadcaster":"unknown_rtmp","meta_game":"League
94
+ of Legends","id":"4892094880","channel_view_count":2761367,"geo":"CA","video_width":1280,"up_time":"Sun
95
+ Feb 17 14:33:16 2013","audio_codec":"uncompressed","broadcast_part":5,"stream_type":"live","embed_enabled":false,"channel_subscription":false,"video_codec":"AVC"},{"stream_count":183,"name":"live_user_robertxlee","embed_count":44,"format":"live","channel_count":440,"category":"gaming","subcategory":"strategy","title":"ROBERTxLEE
96
+ 2512 ADC- SOLOQQ","channel":{"screen_cap_url_huge":"http://static-cdn.jtvnw.net/previews/live_user_robertxlee-630x473.jpg","timezone":"US/Pacific","tags":null,"category_title":"Gaming","subcategory":"strategy","category":"gaming","views_count":"4886134","screen_cap_url_large":"http://static-cdn.jtvnw.net/previews/live_user_robertxlee-320x240.jpg","status":"ROBERTxLEE
97
+ 2512 ADC- SOLOQQ","embed_enabled":true,"image_url_huge":"http://static-cdn.jtvnw.net/jtv_user_pictures/robertxlee-profile_image-c363be2c796ad6ce-600x600.png","channel_url":"http://www.justin.tv/robertxlee","subcategory_title":"Strategy","title":"ROBERTxLEE","screen_cap_url_small":"http://static-cdn.jtvnw.net/previews/live_user_robertxlee-70x53.jpg","mature":false,"screen_cap_url_medium":"http://static-cdn.jtvnw.net/previews/live_user_robertxlee-150x113.jpg","image_url_large":"http://static-cdn.jtvnw.net/jtv_user_pictures/robertxlee-profile_image-c363be2c796ad6ce-300x300.png","id":21013799,"image_url_medium":"http://static-cdn.jtvnw.net/jtv_user_pictures/robertxlee-profile_image-c363be2c796ad6ce-150x150.png","producer":true,"image_url_small":"http://static-cdn.jtvnw.net/jtv_user_pictures/robertxlee-profile_image-c363be2c796ad6ce-70x70.png","embed_code":" <object
98
+ type=\"application/x-shockwave-flash\" height=\"295\" width=\"353\" id=\"live_embed_player_flash\"
99
+ data=\"http://www.justin.tv/widgets/live_embed_player.swf?channel=robertxlee\"
100
+ bgcolor=\"#000000\"><param name=\"allowFullScreen\" value=\"true\" /><param
101
+ name=\"allowscriptaccess\" value=\"always\" /><param name=\"movie\" value=\"http://www.justin.tv/widgets/live_embed_player.swf\"
102
+ /><param name=\"flashvars\" value=\"auto_play=false&channel=robertxlee&start_volume=25\"
103
+ /></object>\n","image_url_tiny":"http://static-cdn.jtvnw.net/jtv_user_pictures/robertxlee-profile_image-c363be2c796ad6ce-50x50.png","language":"en","login":"robertxlee"},"abuse_reported":false,"site_count":139,"featured":true,"video_bitrate":2243.625,"language":"en","video_height":900,"broadcaster":"unknown_rtmp","meta_game":"League
104
+ of Legends","id":"4891424704","channel_view_count":4883050,"geo":"US","video_width":1600,"up_time":"Sun
105
+ Feb 17 13:01:41 2013","audio_codec":"uncompressed","broadcast_part":8,"stream_type":"live","embed_enabled":true,"channel_subscription":true,"video_codec":"AVC"},{"stream_count":218,"name":"live_user_hungwow","embed_count":78,"format":"live","channel_count":251,"category":"gaming","title":"Hkcs_kane
106
+ Tw/Kr Server(\u53f0\u670d/\u97d3\u670d)\u5361\u4e43\u53f0(\u0301\u25d5\u25de\u0c6a\u25df\u25d5\u2035)PACL
107
+ MVP","channel":{"screen_cap_url_huge":"http://static-cdn.jtvnw.net/previews/live_user_hungwow-630x473.jpg","timezone":"Asia/Hong_Kong","tags":null,"category_title":"Gaming","subcategory":null,"category":"gaming","views_count":"709520","screen_cap_url_large":"http://static-cdn.jtvnw.net/previews/live_user_hungwow-320x240.jpg","status":"Hkcs_kane
108
+ Tw/Kr Server(\u53f0\u670d/\u97d3\u670d)\u5361\u4e43\u53f0(\u0301\u25d5\u25de\u0c6a\u25df\u25d5\u2035)PACL
109
+ MVP","embed_enabled":true,"image_url_huge":"http://static-cdn.jtvnw.net/jtv_user_pictures/hungwow-profile_image-a7598d5f9e19f73e-600x600.jpeg","channel_url":"http://www.justin.tv/hungwow","subcategory_title":null,"title":"kanebb''s
110
+ stream","screen_cap_url_small":"http://static-cdn.jtvnw.net/previews/live_user_hungwow-70x53.jpg","mature":null,"screen_cap_url_medium":"http://static-cdn.jtvnw.net/previews/live_user_hungwow-150x113.jpg","image_url_large":"http://static-cdn.jtvnw.net/jtv_user_pictures/hungwow-profile_image-a7598d5f9e19f73e-300x300.jpeg","id":28168965,"image_url_medium":"http://static-cdn.jtvnw.net/jtv_user_pictures/hungwow-profile_image-a7598d5f9e19f73e-150x150.jpeg","producer":true,"image_url_small":"http://static-cdn.jtvnw.net/jtv_user_pictures/hungwow-profile_image-a7598d5f9e19f73e-70x70.jpeg","embed_code":" <object
111
+ type=\"application/x-shockwave-flash\" height=\"295\" width=\"353\" id=\"live_embed_player_flash\"
112
+ data=\"http://www.justin.tv/widgets/live_embed_player.swf?channel=hungwow\"
113
+ bgcolor=\"#000000\"><param name=\"allowFullScreen\" value=\"true\" /><param
114
+ name=\"allowscriptaccess\" value=\"always\" /><param name=\"movie\" value=\"http://www.justin.tv/widgets/live_embed_player.swf\"
115
+ /><param name=\"flashvars\" value=\"auto_play=false&channel=hungwow&start_volume=25\"
116
+ /></object>\n","image_url_tiny":"http://static-cdn.jtvnw.net/jtv_user_pictures/hungwow-profile_image-a7598d5f9e19f73e-50x50.jpeg","language":"zh-TW","login":"hungwow"},"abuse_reported":false,"site_count":140,"featured":true,"video_bitrate":122.9921875,"language":"zh-TW","video_height":900,"broadcaster":"unknown_rtmp","meta_game":"League
117
+ of Legends","id":"4892666720","channel_view_count":708743,"geo":"HK","video_width":1440,"up_time":"Sun
118
+ Feb 17 15:54:55 2013","audio_codec":"uncompressed","broadcast_part":2,"stream_type":"live","embed_enabled":true,"channel_subscription":false,"video_codec":"AVC"},{"stream_count":2,"name":"live_user_1pacov1","embed_count":0,"format":"live","channel_count":2,"category":"gaming","subcategory":"playstation","title":"League
119
+ of Legends","channel":{"screen_cap_url_huge":"http://static-cdn.jtvnw.net/previews/live_user_1pacov1-630x473.jpg","timezone":"America/New_York","tags":null,"category_title":"Gaming","subcategory":"playstation","category":"gaming","views_count":"3749","screen_cap_url_large":"http://static-cdn.jtvnw.net/previews/live_user_1pacov1-320x240.jpg","status":"League
120
+ of Legends","embed_enabled":true,"image_url_huge":"http://static-cdn.jtvnw.net/jtv_user_pictures/1pacov1-profile_image-27553cbf333e7c6d-600x600.jpeg","channel_url":"http://www.justin.tv/1pacov1","subcategory_title":"Playstation","title":"1pacov1","screen_cap_url_small":"http://static-cdn.jtvnw.net/previews/live_user_1pacov1-70x53.jpg","mature":null,"screen_cap_url_medium":"http://static-cdn.jtvnw.net/previews/live_user_1pacov1-150x113.jpg","image_url_large":"http://static-cdn.jtvnw.net/jtv_user_pictures/1pacov1-profile_image-27553cbf333e7c6d-300x300.jpeg","id":36885577,"image_url_medium":"http://static-cdn.jtvnw.net/jtv_user_pictures/1pacov1-profile_image-27553cbf333e7c6d-150x150.jpeg","producer":false,"image_url_small":"http://static-cdn.jtvnw.net/jtv_user_pictures/1pacov1-profile_image-27553cbf333e7c6d-70x70.jpeg","embed_code":" <object
121
+ type=\"application/x-shockwave-flash\" height=\"295\" width=\"353\" id=\"live_embed_player_flash\"
122
+ data=\"http://www.justin.tv/widgets/live_embed_player.swf?channel=1pacov1\"
123
+ bgcolor=\"#000000\"><param name=\"allowFullScreen\" value=\"true\" /><param
124
+ name=\"allowscriptaccess\" value=\"always\" /><param name=\"movie\" value=\"http://www.justin.tv/widgets/live_embed_player.swf\"
125
+ /><param name=\"flashvars\" value=\"auto_play=false&channel=1pacov1&start_volume=25\"
126
+ /></object>\n","image_url_tiny":"http://static-cdn.jtvnw.net/jtv_user_pictures/1pacov1-profile_image-27553cbf333e7c6d-50x50.jpeg","language":"en","login":"1pacov1"},"abuse_reported":false,"site_count":2,"featured":false,"video_bitrate":2203.8984375,"language":"en","video_height":1200,"broadcaster":"unknown_rtmp","meta_game":"League
127
+ of Legends","id":"4892530608","channel_view_count":3749,"geo":"US","video_width":1920,"up_time":"Sun
128
+ Feb 17 15:35:18 2013","audio_codec":"uncompressed","broadcast_part":3,"stream_type":"live","embed_enabled":false,"channel_subscription":false,"video_codec":"AVC"},{"stream_count":1,"name":"live_user_sakezz","embed_count":0,"format":"live","channel_count":1,"category":"gaming","title":"SaKezZ
129
+ - League of Legends","channel":{"screen_cap_url_huge":"http://static-cdn.jtvnw.net/previews/live_user_sakezz-630x473.jpg","timezone":"America/Los_Angeles","tags":null,"category_title":"Gaming","subcategory":null,"category":"gaming","views_count":"1288","screen_cap_url_large":"http://static-cdn.jtvnw.net/previews/live_user_sakezz-320x240.jpg","status":"SaKezZ
130
+ - League of Legends","embed_enabled":true,"image_url_huge":"http://static-cdn.jtvnw.net/jtv_user_pictures/sakezz-profile_image-171738ff9825d95a-600x600.jpeg","channel_url":"http://www.justin.tv/sakezz","subcategory_title":null,"title":"sakezz","screen_cap_url_small":"http://static-cdn.jtvnw.net/previews/live_user_sakezz-70x53.jpg","mature":false,"screen_cap_url_medium":"http://static-cdn.jtvnw.net/previews/live_user_sakezz-150x113.jpg","image_url_large":"http://static-cdn.jtvnw.net/jtv_user_pictures/sakezz-profile_image-171738ff9825d95a-300x300.jpeg","id":22479648,"image_url_medium":"http://static-cdn.jtvnw.net/jtv_user_pictures/sakezz-profile_image-171738ff9825d95a-150x150.jpeg","producer":false,"image_url_small":"http://static-cdn.jtvnw.net/jtv_user_pictures/sakezz-profile_image-171738ff9825d95a-70x70.jpeg","embed_code":" <object
131
+ type=\"application/x-shockwave-flash\" height=\"295\" width=\"353\" id=\"live_embed_player_flash\"
132
+ data=\"http://www.justin.tv/widgets/live_embed_player.swf?channel=sakezz\"
133
+ bgcolor=\"#000000\"><param name=\"allowFullScreen\" value=\"true\" /><param
134
+ name=\"allowscriptaccess\" value=\"always\" /><param name=\"movie\" value=\"http://www.justin.tv/widgets/live_embed_player.swf\"
135
+ /><param name=\"flashvars\" value=\"auto_play=false&channel=sakezz&start_volume=25\"
136
+ /></object>\n","image_url_tiny":"http://static-cdn.jtvnw.net/jtv_user_pictures/sakezz-profile_image-171738ff9825d95a-50x50.jpeg","language":"en","login":"sakezz"},"abuse_reported":false,"site_count":1,"featured":false,"video_bitrate":2982.7734375,"language":"en","video_height":1080,"broadcaster":"fme","meta_game":"League
137
+ of Legends","id":"4890546032","channel_view_count":1288,"geo":"SE","video_width":1920,"up_time":"Sun
138
+ Feb 17 11:06:44 2013","audio_codec":"aac","broadcast_part":12,"stream_type":"live","embed_enabled":true,"channel_subscription":false,"video_codec":"AVC"},{"stream_count":0,"name":"live_user_weneedarockman","embed_count":0,"format":"live","channel_count":0,"category":"gaming","title":"League
139
+ of Legends","channel":{"screen_cap_url_huge":"http://static-cdn.jtvnw.net/previews/live_user_weneedarockman-630x473.jpg","timezone":"America/Los_Angeles","tags":null,"category_title":"Gaming","subcategory":null,"category":"gaming","views_count":"717","screen_cap_url_large":"http://static-cdn.jtvnw.net/previews/live_user_weneedarockman-320x240.jpg","status":"League
140
+ of Legends","embed_enabled":true,"image_url_huge":"http://www-cdn.jtvnw.net/images/xarth/404_user_600x600.png","channel_url":"http://www.justin.tv/weneedarockman","subcategory_title":null,"title":"weneedarockman","screen_cap_url_small":"http://static-cdn.jtvnw.net/previews/live_user_weneedarockman-70x53.jpg","mature":null,"screen_cap_url_medium":"http://static-cdn.jtvnw.net/previews/live_user_weneedarockman-150x113.jpg","image_url_large":"http://www-cdn.jtvnw.net/images/xarth/404_user_300x300.png","id":35825143,"image_url_medium":"http://www-cdn.jtvnw.net/images/xarth/404_user_150x150.png","producer":false,"image_url_small":"http://www-cdn.jtvnw.net/images/xarth/404_user_70x70.png","embed_code":" <object
141
+ type=\"application/x-shockwave-flash\" height=\"295\" width=\"353\" id=\"live_embed_player_flash\"
142
+ data=\"http://www.justin.tv/widgets/live_embed_player.swf?channel=weneedarockman\"
143
+ bgcolor=\"#000000\"><param name=\"allowFullScreen\" value=\"true\" /><param
144
+ name=\"allowscriptaccess\" value=\"always\" /><param name=\"movie\" value=\"http://www.justin.tv/widgets/live_embed_player.swf\"
145
+ /><param name=\"flashvars\" value=\"auto_play=false&channel=weneedarockman&start_volume=25\"
146
+ /></object>\n","image_url_tiny":"http://www-cdn.jtvnw.net/images/xarth/404_user_50x50.png","language":"en","login":"weneedarockman"},"abuse_reported":false,"site_count":0,"featured":false,"video_bitrate":240.0546875,"language":"en","video_height":540,"broadcaster":"fme","meta_game":"League
147
+ of Legends","id":"4892988912","channel_view_count":717,"geo":"US","video_width":960,"up_time":"Sun
148
+ Feb 17 16:41:58 2013","audio_codec":"uncompressed","broadcast_part":1,"stream_type":"live","embed_enabled":false,"channel_subscription":false,"video_codec":"AVC"},{"stream_count":0,"name":"live_user_emby666","embed_count":0,"format":"live","channel_count":0,"category":"gaming","title":"League
149
+ Of Legends","channel":{"screen_cap_url_huge":"http://static-cdn.jtvnw.net/previews/live_user_emby666-630x473.jpg","timezone":"Europe/Amsterdam","tags":null,"category_title":"Gaming","subcategory":null,"category":"gaming","views_count":"12","screen_cap_url_large":"http://static-cdn.jtvnw.net/previews/live_user_emby666-320x240.jpg","status":"League
150
+ Of Legends","embed_enabled":true,"image_url_huge":"http://www-cdn.jtvnw.net/images/xarth/404_user_600x600.png","channel_url":"http://www.justin.tv/emby666","subcategory_title":null,"title":"emby666","screen_cap_url_small":"http://static-cdn.jtvnw.net/previews/live_user_emby666-70x53.jpg","mature":null,"screen_cap_url_medium":"http://static-cdn.jtvnw.net/previews/live_user_emby666-150x113.jpg","image_url_large":"http://www-cdn.jtvnw.net/images/xarth/404_user_300x300.png","id":32583435,"image_url_medium":"http://www-cdn.jtvnw.net/images/xarth/404_user_150x150.png","producer":false,"image_url_small":"http://www-cdn.jtvnw.net/images/xarth/404_user_70x70.png","embed_code":" <object
151
+ type=\"application/x-shockwave-flash\" height=\"295\" width=\"353\" id=\"live_embed_player_flash\"
152
+ data=\"http://www.justin.tv/widgets/live_embed_player.swf?channel=emby666\"
153
+ bgcolor=\"#000000\"><param name=\"allowFullScreen\" value=\"true\" /><param
154
+ name=\"allowscriptaccess\" value=\"always\" /><param name=\"movie\" value=\"http://www.justin.tv/widgets/live_embed_player.swf\"
155
+ /><param name=\"flashvars\" value=\"auto_play=false&channel=emby666&start_volume=25\"
156
+ /></object>\n","image_url_tiny":"http://www-cdn.jtvnw.net/images/xarth/404_user_50x50.png","language":"en","login":"emby666"},"abuse_reported":false,"site_count":0,"featured":false,"video_bitrate":504.6484375,"language":"en","video_height":720,"broadcaster":"fme","meta_game":"League
157
+ of Legends","id":"4892526848","channel_view_count":12,"geo":"BE","video_width":1280,"up_time":"Sun
158
+ Feb 17 15:34:43 2013","audio_codec":"???","broadcast_part":3,"stream_type":"live","embed_enabled":false,"channel_subscription":false,"video_codec":"AVC"}]'
159
+ http_version:
160
+ recorded_at: Mon, 18 Feb 2013 00:50:18 GMT
161
+ recorded_with: VCR 2.4.0
@@ -0,0 +1,59 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://api.justin.tv/stream/summary
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="6ab87bbe6525e7caf17e5b15501bd83f", oauth_signature="tsFSUOPWlnFGxnXByHRune2KUDY%3D",
16
+ oauth_signature_method="HMAC-SHA1", oauth_timestamp="1361148616", 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:50:16 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:3347
38
+ X-Runtime:
39
+ - '0.013318'
40
+ X-Geo:
41
+ - US
42
+ X-Request-Id:
43
+ - e351f4150bb9fd137fe9ce2231e90aa9
44
+ Etag:
45
+ - '"f1c3feb253d25f8586de0e4c601b0e72"'
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
+ Front-End-Https:
53
+ - 'off'
54
+ body:
55
+ encoding: UTF-8
56
+ string: '{"average_bitrate":0,"streams_count":5919,"viewers_count":"249095"}'
57
+ http_version:
58
+ recorded_at: Mon, 18 Feb 2013 00:50:16 GMT
59
+ recorded_with: VCR 2.4.0
@@ -0,0 +1,88 @@
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
@@ -0,0 +1,67 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://api.justin.tv/user/show/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="53b44e1307f9e784ec75834268ab4268", oauth_signature="EGRah0KsBHniur2LAknv%2BjgbKR0%3D",
16
+ oauth_signature_method="HMAC-SHA1", oauth_timestamp="1361148593", 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 twice1:3353
38
+ X-Runtime:
39
+ - '0.034573'
40
+ X-Geo:
41
+ - US
42
+ X-Request-Id:
43
+ - 836655b5ef8582cb6c51c2a7fa27b577
44
+ Etag:
45
+ - '"f635a8225b58c33368b9fc616ab68187"'
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
+ Front-End-Https:
53
+ - 'off'
54
+ body:
55
+ encoding: UTF-8
56
+ string: '{"location":"Illinois, USA","image_url_huge":"http://static-cdn.jtvnw.net/jtv_user_pictures/augury-profile_image-fed592481d356caa-600x600.jpeg","favorite_quotes":"\"CANDAY!\"
57
+ -Brandon505\r\n\"Do a bearrel roll!\" -Brad (4PP)\r\n\"That''s some Ring shit!\"
58
+ -Brad (4PP)","image_url_large":"http://static-cdn.jtvnw.net/jtv_user_pictures/augury-profile_image-fed592481d356caa-300x300.jpeg","sex":"Male","id":8764896,"broadcaster":null,"image_url_medium":"http://static-cdn.jtvnw.net/jtv_user_pictures/augury-profile_image-fed592481d356caa-150x150.jpeg","image_url_small":"http://static-cdn.jtvnw.net/jtv_user_pictures/augury-profile_image-fed592481d356caa-70x70.jpeg","pro_account":false,"embed_code":" <object
59
+ type=\"application/x-shockwave-flash\" height=\"295\" width=\"353\" id=\"live_embed_player_flash\"
60
+ data=\"http://www.justin.tv/widgets/live_embed_player.swf?channel=augury\"
61
+ bgcolor=\"#000000\"><param name=\"allowFullScreen\" value=\"true\" /><param
62
+ name=\"allowscriptaccess\" value=\"always\" /><param name=\"movie\" value=\"http://www.justin.tv/widgets/live_embed_player.swf\"
63
+ /><param name=\"flashvars\" value=\"auto_play=false&channel=augury&start_volume=25\"
64
+ /></object>\n","name":null,"image_url_tiny":"http://static-cdn.jtvnw.net/jtv_user_pictures/augury-profile_image-fed592481d356caa-50x50.jpeg","login":"augury"}'
65
+ http_version:
66
+ recorded_at: Mon, 18 Feb 2013 00:49:54 GMT
67
+ recorded_with: VCR 2.4.0
@@ -1,11 +1,12 @@
1
1
  require 'vcr'
2
- require 'fakeweb'
2
+ require 'webmock'
3
3
 
4
4
  VCR.configure do |c|
5
5
  c.cassette_library_dir = 'spec/vcr_cassettes'
6
- c.hook_into :fakeweb
6
+ c.hook_into :webmock
7
+ c.configure_rspec_metadata!
7
8
  end
8
9
 
9
10
  RSpec.configure do |c|
10
- c.extend VCR::RSpec::Macros
11
+ c.treat_symbols_as_metadata_keys_with_true_values = true
11
12
  end
metadata CHANGED
@@ -1,126 +1,111 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jtv
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.beta1
5
- prerelease: 6
4
+ version: 1.0.0
6
5
  platform: ruby
7
6
  authors:
8
7
  - David Ratajczak
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-01-19 00:00:00.000000000 Z
11
+ date: 2013-02-18 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: rake
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ! '>='
17
+ - - '>='
20
18
  - !ruby/object:Gem::Version
21
19
  version: '0'
22
20
  type: :development
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ! '>='
24
+ - - '>='
28
25
  - !ruby/object:Gem::Version
29
26
  version: '0'
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: rspec
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
- - - ! '>='
31
+ - - '>='
36
32
  - !ruby/object:Gem::Version
37
33
  version: '0'
38
34
  type: :development
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
- - - ! '>='
38
+ - - '>='
44
39
  - !ruby/object:Gem::Version
45
40
  version: '0'
46
41
  - !ruby/object:Gem::Dependency
47
42
  name: vcr
48
43
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
44
  requirements:
51
- - - ! '>='
45
+ - - '>='
52
46
  - !ruby/object:Gem::Version
53
47
  version: '0'
54
48
  type: :development
55
49
  prerelease: false
56
50
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
51
  requirements:
59
- - - ! '>='
52
+ - - '>='
60
53
  - !ruby/object:Gem::Version
61
54
  version: '0'
62
55
  - !ruby/object:Gem::Dependency
63
- name: fakeweb
56
+ name: webmock
64
57
  requirement: !ruby/object:Gem::Requirement
65
- none: false
66
58
  requirements:
67
- - - ! '>='
59
+ - - '>='
68
60
  - !ruby/object:Gem::Version
69
61
  version: '0'
70
62
  type: :development
71
63
  prerelease: false
72
64
  version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
65
  requirements:
75
- - - ! '>='
66
+ - - '>='
76
67
  - !ruby/object:Gem::Version
77
68
  version: '0'
78
69
  - !ruby/object:Gem::Dependency
79
70
  name: faraday
80
71
  requirement: !ruby/object:Gem::Requirement
81
- none: false
82
72
  requirements:
83
- - - ! '>='
73
+ - - '>='
84
74
  - !ruby/object:Gem::Version
85
75
  version: '0'
86
76
  type: :runtime
87
77
  prerelease: false
88
78
  version_requirements: !ruby/object:Gem::Requirement
89
- none: false
90
79
  requirements:
91
- - - ! '>='
80
+ - - '>='
92
81
  - !ruby/object:Gem::Version
93
82
  version: '0'
94
83
  - !ruby/object:Gem::Dependency
95
84
  name: json
96
85
  requirement: !ruby/object:Gem::Requirement
97
- none: false
98
86
  requirements:
99
- - - ! '>='
87
+ - - '>='
100
88
  - !ruby/object:Gem::Version
101
89
  version: '0'
102
90
  type: :runtime
103
91
  prerelease: false
104
92
  version_requirements: !ruby/object:Gem::Requirement
105
- none: false
106
93
  requirements:
107
- - - ! '>='
94
+ - - '>='
108
95
  - !ruby/object:Gem::Version
109
96
  version: '0'
110
97
  - !ruby/object:Gem::Dependency
111
98
  name: simple_oauth
112
99
  requirement: !ruby/object:Gem::Requirement
113
- none: false
114
100
  requirements:
115
- - - ! '>='
101
+ - - '>='
116
102
  - !ruby/object:Gem::Version
117
103
  version: '0'
118
104
  type: :runtime
119
105
  prerelease: false
120
106
  version_requirements: !ruby/object:Gem::Requirement
121
- none: false
122
107
  requirements:
123
- - - ! '>='
108
+ - - '>='
124
109
  - !ruby/object:Gem::Version
125
110
  version: '0'
126
111
  description: Ruby wrapper for the Justin.tv and Twitch.tv API
@@ -139,14 +124,17 @@ files:
139
124
  - Rakefile
140
125
  - jtv.gemspec
141
126
  - lib/jtv.rb
127
+ - lib/jtv/channel.rb
142
128
  - lib/jtv/client.rb
143
129
  - lib/jtv/configuration.rb
144
130
  - lib/jtv/defaults.rb
145
131
  - lib/jtv/stream.rb
146
132
  - lib/jtv/user.rb
147
133
  - lib/jtv/version.rb
134
+ - spec/features/channel_spec.rb
148
135
  - spec/features/stream_spec.rb
149
136
  - spec/features/user_spec.rb
137
+ - spec/jtv/channel_spec.rb
150
138
  - spec/jtv/client_spec.rb
151
139
  - spec/jtv/configuration_spec.rb
152
140
  - spec/jtv/defaults_spec.rb
@@ -154,43 +142,46 @@ files:
154
142
  - spec/jtv/user_spec.rb
155
143
  - spec/jtv_spec.rb
156
144
  - spec/spec_helper.rb
157
- - spec/vcr_cassettes/Jtv_Stream/_list.yml
158
- - spec/vcr_cassettes/Jtv_Stream/_search.yml
159
- - spec/vcr_cassettes/Jtv_Stream/_summary.yml
160
- - spec/vcr_cassettes/Jtv_User/_favorites.yml
161
- - spec/vcr_cassettes/Jtv_User/_user_show.yml
145
+ - spec/vcr_cassettes/Jtv_Channel/_archives/returns_an_array_of_archives_for_given_channel.yml
146
+ - spec/vcr_cassettes/Jtv_Channel/_channel_show/provides_information_for_a_given_channel.yml
147
+ - spec/vcr_cassettes/Jtv_Channel/_chat_embed/returns_an_iframe_for_chat.yml
148
+ - spec/vcr_cassettes/Jtv_Channel/_embed/returns_a_string_containing_an_embed_object.yml
149
+ - spec/vcr_cassettes/Jtv_Channel/_fans/fetches_fans_for_a_given_channel.yml
150
+ - spec/vcr_cassettes/Jtv_Stream/_list/returns_a_list_of_streams_for_a_category.yml
151
+ - spec/vcr_cassettes/Jtv_Stream/_search/returns_streams_based_on_search_query.yml
152
+ - spec/vcr_cassettes/Jtv_Stream/_summary/returns_a_summary_of_Jutstin_tv_data.yml
153
+ - spec/vcr_cassettes/Jtv_User/_favorites/fetches_favorites_from_user.yml
154
+ - spec/vcr_cassettes/Jtv_User/_user_show/fetches_information_on_user.yml
162
155
  - spec/vcr_config.rb
163
156
  homepage: http://mockra.com
164
157
  licenses:
165
158
  - MIT
159
+ metadata: {}
166
160
  post_install_message:
167
161
  rdoc_options: []
168
162
  require_paths:
169
163
  - lib
170
164
  required_ruby_version: !ruby/object:Gem::Requirement
171
- none: false
172
165
  requirements:
173
- - - ! '>='
166
+ - - '>='
174
167
  - !ruby/object:Gem::Version
175
168
  version: '0'
176
- segments:
177
- - 0
178
- hash: -1875216035123816737
179
169
  required_rubygems_version: !ruby/object:Gem::Requirement
180
- none: false
181
170
  requirements:
182
- - - ! '>'
171
+ - - '>='
183
172
  - !ruby/object:Gem::Version
184
- version: 1.3.1
173
+ version: '0'
185
174
  requirements: []
186
175
  rubyforge_project:
187
- rubygems_version: 1.8.24
176
+ rubygems_version: 2.0.0.rc.2
188
177
  signing_key:
189
- specification_version: 3
178
+ specification_version: 4
190
179
  summary: Justin.tv and Twitch.tv API library
191
180
  test_files:
181
+ - spec/features/channel_spec.rb
192
182
  - spec/features/stream_spec.rb
193
183
  - spec/features/user_spec.rb
184
+ - spec/jtv/channel_spec.rb
194
185
  - spec/jtv/client_spec.rb
195
186
  - spec/jtv/configuration_spec.rb
196
187
  - spec/jtv/defaults_spec.rb
@@ -198,9 +189,14 @@ test_files:
198
189
  - spec/jtv/user_spec.rb
199
190
  - spec/jtv_spec.rb
200
191
  - spec/spec_helper.rb
201
- - spec/vcr_cassettes/Jtv_Stream/_list.yml
202
- - spec/vcr_cassettes/Jtv_Stream/_search.yml
203
- - spec/vcr_cassettes/Jtv_Stream/_summary.yml
204
- - spec/vcr_cassettes/Jtv_User/_favorites.yml
205
- - spec/vcr_cassettes/Jtv_User/_user_show.yml
192
+ - spec/vcr_cassettes/Jtv_Channel/_archives/returns_an_array_of_archives_for_given_channel.yml
193
+ - spec/vcr_cassettes/Jtv_Channel/_channel_show/provides_information_for_a_given_channel.yml
194
+ - spec/vcr_cassettes/Jtv_Channel/_chat_embed/returns_an_iframe_for_chat.yml
195
+ - spec/vcr_cassettes/Jtv_Channel/_embed/returns_a_string_containing_an_embed_object.yml
196
+ - spec/vcr_cassettes/Jtv_Channel/_fans/fetches_fans_for_a_given_channel.yml
197
+ - spec/vcr_cassettes/Jtv_Stream/_list/returns_a_list_of_streams_for_a_category.yml
198
+ - spec/vcr_cassettes/Jtv_Stream/_search/returns_streams_based_on_search_query.yml
199
+ - spec/vcr_cassettes/Jtv_Stream/_summary/returns_a_summary_of_Jutstin_tv_data.yml
200
+ - spec/vcr_cassettes/Jtv_User/_favorites/fetches_favorites_from_user.yml
201
+ - spec/vcr_cassettes/Jtv_User/_user_show/fetches_information_on_user.yml
206
202
  - spec/vcr_config.rb