jtv 1.0.0.beta1 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/CHANGELOG.md +3 -0
- data/README.md +65 -0
- data/jtv.gemspec +1 -1
- data/lib/jtv/channel.rb +23 -0
- data/lib/jtv/client.rb +2 -0
- data/lib/jtv/version.rb +1 -1
- data/spec/features/channel_spec.rb +48 -0
- data/spec/features/stream_spec.rb +4 -10
- data/spec/features/user_spec.rb +2 -6
- data/spec/jtv/channel_spec.rb +44 -0
- data/spec/jtv/client_spec.rb +10 -0
- data/spec/vcr_cassettes/Jtv_Channel/_archives/returns_an_array_of_archives_for_given_channel.yml +70 -0
- data/spec/vcr_cassettes/Jtv_Channel/_channel_show/provides_information_for_a_given_channel.yml +69 -0
- data/spec/vcr_cassettes/Jtv_Channel/_chat_embed/returns_an_iframe_for_chat.yml +63 -0
- data/spec/vcr_cassettes/Jtv_Channel/_embed/returns_a_string_containing_an_embed_object.yml +63 -0
- data/spec/vcr_cassettes/Jtv_Channel/_fans/fetches_fans_for_a_given_channel.yml +209 -0
- data/spec/vcr_cassettes/Jtv_Stream/_list/returns_a_list_of_streams_for_a_category.yml +591 -0
- data/spec/vcr_cassettes/Jtv_Stream/_search/returns_streams_based_on_search_query.yml +161 -0
- data/spec/vcr_cassettes/Jtv_Stream/_summary/returns_a_summary_of_Jutstin_tv_data.yml +59 -0
- data/spec/vcr_cassettes/Jtv_User/_favorites/fetches_favorites_from_user.yml +88 -0
- data/spec/vcr_cassettes/Jtv_User/_user_show/fetches_information_on_user.yml +67 -0
- data/spec/vcr_config.rb +4 -3
- metadata +48 -52
- data/spec/vcr_cassettes/Jtv_Stream/_list.yml +0 -408
- data/spec/vcr_cassettes/Jtv_Stream/_search.yml +0 -156
- data/spec/vcr_cassettes/Jtv_Stream/_summary.yml +0 -81
- data/spec/vcr_cassettes/Jtv_User/_favorites.yml +0 -110
- data/spec/vcr_cassettes/Jtv_User/_user_show.yml +0 -92
@@ -1,81 +0,0 @@
|
|
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="053d3259ac27b9b35f470f2b80a0c725", oauth_signature="De6kdCYb%2BjoEzrh8QLa63FO%2FSpk%3D",
|
16
|
-
oauth_signature_method="HMAC-SHA1", oauth_timestamp="1358554691", 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: !binary |-
|
23
|
-
T0s=
|
24
|
-
headers:
|
25
|
-
!binary "c2VydmVy":
|
26
|
-
- !binary |-
|
27
|
-
bmdpbng=
|
28
|
-
!binary "ZGF0ZQ==":
|
29
|
-
- !binary |-
|
30
|
-
U2F0LCAxOSBKYW4gMjAxMyAwMDoxODoxMiBHTVQ=
|
31
|
-
!binary "Y29udGVudC10eXBl":
|
32
|
-
- !binary |-
|
33
|
-
YXBwbGljYXRpb24vanNvbg==
|
34
|
-
!binary "dHJhbnNmZXItZW5jb2Rpbmc=":
|
35
|
-
- !binary |-
|
36
|
-
Y2h1bmtlZA==
|
37
|
-
!binary "Y29ubmVjdGlvbg==":
|
38
|
-
- !binary |-
|
39
|
-
Y2xvc2U=
|
40
|
-
!binary "c3RhdHVz":
|
41
|
-
- !binary |-
|
42
|
-
MjAwIE9L
|
43
|
-
!binary "dmlh":
|
44
|
-
- !binary |-
|
45
|
-
VHdpY2UgMC4yIHR3aWNlMzozMzQ4
|
46
|
-
!binary "eC1ydW50aW1l":
|
47
|
-
- !binary |-
|
48
|
-
MC4wMDc1NTU=
|
49
|
-
!binary "eC1nZW8=":
|
50
|
-
- !binary |-
|
51
|
-
VVM=
|
52
|
-
!binary "eC1yZXF1ZXN0LWlk":
|
53
|
-
- !binary |-
|
54
|
-
OTU1OWMxZDM4ZWJiODkzYWNiNjkxZWM3NGYxNzk4MzY=
|
55
|
-
!binary "ZXRhZw==":
|
56
|
-
- !binary |-
|
57
|
-
IjRjYjU5NmM4YjhlODNkMDljZGZiZDA0M2FiNDFhYTY0Ig==
|
58
|
-
!binary "eC11YS1jb21wYXRpYmxl":
|
59
|
-
- !binary |-
|
60
|
-
SUU9RWRnZSxjaHJvbWU9MQ==
|
61
|
-
!binary "Y2FjaGUtY29udHJvbA==":
|
62
|
-
- !binary |-
|
63
|
-
bXVzdC1yZXZhbGlkYXRlLCBwcml2YXRlLCBtYXgtYWdlPTA=
|
64
|
-
!binary "eC1yYWNrLWNhY2hl":
|
65
|
-
- !binary |-
|
66
|
-
bWlzcw==
|
67
|
-
!binary "ZnJvbnQtZW5kLWh0dHBz":
|
68
|
-
- !binary |-
|
69
|
-
b2Zm
|
70
|
-
!binary "Y29udGVudC1lbmNvZGluZw==":
|
71
|
-
- !binary |-
|
72
|
-
Z3ppcA==
|
73
|
-
body:
|
74
|
-
encoding: ASCII-8BIT
|
75
|
-
string: !binary |-
|
76
|
-
H4sIAAAAAAAAA6tWSixLLUpMT41PyiwpSixJVbIy0FEqLilKTcwtjk/OL80r
|
77
|
-
UbIyMzIGCpZlppanFsEFlYzMTMwsTZVqAUijEPhDAAAA
|
78
|
-
http_version: !binary |-
|
79
|
-
MS4x
|
80
|
-
recorded_at: Sat, 19 Jan 2013 00:18:12 GMT
|
81
|
-
recorded_with: VCR 2.4.0
|
@@ -1,110 +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="babbda4003e3f414cfc155579ecba8c8", oauth_signature="3AMUOG67XZIemcHEPf1W7ewmOfw%3D",
|
16
|
-
oauth_signature_method="HMAC-SHA1", oauth_timestamp="1358556562", 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: !binary |-
|
23
|
-
T0s=
|
24
|
-
headers:
|
25
|
-
!binary "c2VydmVy":
|
26
|
-
- !binary |-
|
27
|
-
bmdpbng=
|
28
|
-
!binary "ZGF0ZQ==":
|
29
|
-
- !binary |-
|
30
|
-
U2F0LCAxOSBKYW4gMjAxMyAwMDo0OToyMiBHTVQ=
|
31
|
-
!binary "Y29udGVudC10eXBl":
|
32
|
-
- !binary |-
|
33
|
-
YXBwbGljYXRpb24vanNvbg==
|
34
|
-
!binary "dHJhbnNmZXItZW5jb2Rpbmc=":
|
35
|
-
- !binary |-
|
36
|
-
Y2h1bmtlZA==
|
37
|
-
!binary "Y29ubmVjdGlvbg==":
|
38
|
-
- !binary |-
|
39
|
-
Y2xvc2U=
|
40
|
-
!binary "c3RhdHVz":
|
41
|
-
- !binary |-
|
42
|
-
MjAwIE9L
|
43
|
-
!binary "dmlh":
|
44
|
-
- !binary |-
|
45
|
-
VHdpY2UgMC4yIHR3aWNlMjozMzQx
|
46
|
-
!binary "eC1ydW50aW1l":
|
47
|
-
- !binary |-
|
48
|
-
MC4wMzIxOTI=
|
49
|
-
!binary "eC1nZW8=":
|
50
|
-
- !binary |-
|
51
|
-
VVM=
|
52
|
-
!binary "eC1yZXF1ZXN0LWlk":
|
53
|
-
- !binary |-
|
54
|
-
ZDg5NDFmYjdmYTkzN2UzMzEyMDQyN2Y0ZDY0MjdkOTI=
|
55
|
-
!binary "ZXRhZw==":
|
56
|
-
- !binary |-
|
57
|
-
ImRmMmUzODA2ZWIyYzA1NzQyMjU2MTYyZTc0YzQ1NGVjIg==
|
58
|
-
!binary "eC11YS1jb21wYXRpYmxl":
|
59
|
-
- !binary |-
|
60
|
-
SUU9RWRnZSxjaHJvbWU9MQ==
|
61
|
-
!binary "Y2FjaGUtY29udHJvbA==":
|
62
|
-
- !binary |-
|
63
|
-
bXVzdC1yZXZhbGlkYXRlLCBwcml2YXRlLCBtYXgtYWdlPTA=
|
64
|
-
!binary "eC1yYWNrLWNhY2hl":
|
65
|
-
- !binary |-
|
66
|
-
bWlzcw==
|
67
|
-
!binary "c2V0LWNvb2tpZQ==":
|
68
|
-
- !binary |-
|
69
|
-
bGFuZ3VhZ2U9ZW47IGRvbWFpbj0udHdpdGNoLnR2OyBwYXRoPS87IGV4cGly
|
70
|
-
ZXM9V2VkLCAxOS1KYW4tMjAzMyAwMDo0OToyMiBHTVQ=
|
71
|
-
!binary "ZnJvbnQtZW5kLWh0dHBz":
|
72
|
-
- !binary |-
|
73
|
-
b2Zm
|
74
|
-
!binary "Y29udGVudC1lbmNvZGluZw==":
|
75
|
-
- !binary |-
|
76
|
-
Z3ppcA==
|
77
|
-
body:
|
78
|
-
encoding: ASCII-8BIT
|
79
|
-
string: !binary |-
|
80
|
-
H4sIAAAAAAAAA+2XbW/bNhDHvwqrAd2GxZZkWXIcJB3Wh3R9FywY9qIpBJqi
|
81
|
-
bGYUKZCUZW/od+9RD5Ecu4OyOikKNIADE+bxeLzj/8d7/6+jiaJUxATncaF4
|
82
|
-
nNGEFZlz5qyMyc9cVxtsGBmRRIxvzVqUY0GNmyu6ZrTULmdrGheaqjiVhco5
|
83
|
-
3lKVy4RgbUZ+6G18Pxjf5kvnxOFYLAu8pLAyFTA2zHA7mF5VRuiqtoJfdLEg
|
84
|
-
2NClVFvnTBScnzjd2FnijAm7IM0WNImpwAtOE+fMqIKeOCwDF1Uchgkw/88o
|
85
|
-
IJ567zkjplBUu/tB5EqmjNO4WniEw9lsks6nQRoQ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Lbsbydl98f9PdPe8Pwmzh0fbwrqOtmF1Z46arxo1j8KG3j3m7hTOo8FWcLOC
|
102
|
-
165Un2ct9Ehdh3033wr516Nrt+1duCan09lpiqPpLKFJFPrH7akHez3cS0/g
|
103
|
-
CvyC6CZHf2GlmFTIdREK1vASq1D7u+3WoMlZIXgAocvCAISf9Zi7312/KZTM
|
104
|
-
qfuSKg7vtPvI9YMw9I8F3C72fd4G3mw6nU/9bx24dzF+523H27tDeTLcdqX2
|
105
|
-
YNr25ekR++bBQnDcfnmw20fpkzvvT8LawcEe7Ivr/qTtX/tl0aG00tOPHz4B
|
106
|
-
gh0r9bcWAAA=
|
107
|
-
http_version: !binary |-
|
108
|
-
MS4x
|
109
|
-
recorded_at: Sat, 19 Jan 2013 00:49:22 GMT
|
110
|
-
recorded_with: VCR 2.4.0
|
@@ -1,92 +0,0 @@
|
|
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="97226ce4b530ec085c3d7450e7ce2a64", oauth_signature="1Om%2BMSIoNXMohwOqN0RiBUzLukQ%3D",
|
16
|
-
oauth_signature_method="HMAC-SHA1", oauth_timestamp="1358556562", 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: !binary |-
|
23
|
-
T0s=
|
24
|
-
headers:
|
25
|
-
!binary "c2VydmVy":
|
26
|
-
- !binary |-
|
27
|
-
bmdpbng=
|
28
|
-
!binary "ZGF0ZQ==":
|
29
|
-
- !binary |-
|
30
|
-
U2F0LCAxOSBKYW4gMjAxMyAwMDo0OToyMiBHTVQ=
|
31
|
-
!binary "Y29udGVudC10eXBl":
|
32
|
-
- !binary |-
|
33
|
-
YXBwbGljYXRpb24vanNvbg==
|
34
|
-
!binary "dHJhbnNmZXItZW5jb2Rpbmc=":
|
35
|
-
- !binary |-
|
36
|
-
Y2h1bmtlZA==
|
37
|
-
!binary "Y29ubmVjdGlvbg==":
|
38
|
-
- !binary |-
|
39
|
-
Y2xvc2U=
|
40
|
-
!binary "c3RhdHVz":
|
41
|
-
- !binary |-
|
42
|
-
MjAwIE9L
|
43
|
-
!binary "dmlh":
|
44
|
-
- !binary |-
|
45
|
-
VHdpY2UgMC4yIHR3aWNlMTozMzQ3
|
46
|
-
!binary "eC1ydW50aW1l":
|
47
|
-
- !binary |-
|
48
|
-
MC4wMTkyNTY=
|
49
|
-
!binary "eC1nZW8=":
|
50
|
-
- !binary |-
|
51
|
-
VVM=
|
52
|
-
!binary "eC1yZXF1ZXN0LWlk":
|
53
|
-
- !binary |-
|
54
|
-
OWYyYTE1YmIwZjJhZTEwN2M3NzA1ZTAxZTc0YmNkZjA=
|
55
|
-
!binary "ZXRhZw==":
|
56
|
-
- !binary |-
|
57
|
-
IjAxODlmZmFkMzgyYWNlYTc1MDIyNGNkNTZhYTg5YWVhIg==
|
58
|
-
!binary "eC11YS1jb21wYXRpYmxl":
|
59
|
-
- !binary |-
|
60
|
-
SUU9RWRnZSxjaHJvbWU9MQ==
|
61
|
-
!binary "Y2FjaGUtY29udHJvbA==":
|
62
|
-
- !binary |-
|
63
|
-
bXVzdC1yZXZhbGlkYXRlLCBwcml2YXRlLCBtYXgtYWdlPTA=
|
64
|
-
!binary "eC1yYWNrLWNhY2hl":
|
65
|
-
- !binary |-
|
66
|
-
bWlzcw==
|
67
|
-
!binary "ZnJvbnQtZW5kLWh0dHBz":
|
68
|
-
- !binary |-
|
69
|
-
b2Zm
|
70
|
-
!binary "Y29udGVudC1lbmNvZGluZw==":
|
71
|
-
- !binary |-
|
72
|
-
Z3ppcA==
|
73
|
-
body:
|
74
|
-
encoding: ASCII-8BIT
|
75
|
-
string: !binary |-
|
76
|
-
H4sIAAAAAAAAA7VU227TQBD9FbNIBaQkdps6baO2qFBV4gFUUXhAsmRN1hN7
|
77
|
-
w3jX7MVOhPh3xjGB3l54yEor7dozc87MnpmfQtVQYh4s5V7pjZiLyvtmHsfO
|
78
|
-
g1dyLAs9WflWdxONPuZTHhzavFHSB4suhlAGuxk31iwVYb6NNl5ikZ4dHZ8e
|
79
|
-
FtN0JgHGabJOk8mqwVKM7iG6Goj2BHmSrE/+QpKRnI3RjPWBSGmj3Cj6enfF
|
80
|
-
bJbQGqs85j+C8ejYIhPvrz5dX317kYlo/M6CLoxOkzSzmc7EtYkgWiBYixRZ
|
81
|
-
Q7SzKqLXx7e3bwarLxX4Vy5ypsbos9Jl5CrlH1n2lSjE/PRkdnx6NhuJhTVQ
|
82
|
-
SHAerZjrQDQSWC+wyKUpkGlFvM7NYoXSR37T4EUmoGlIDZnF67GrjPzeQcv1
|
83
|
-
J3AVs69QlZVnw6OzlK+dKnzFt2k65Zsq+EiqxXyAaQg2/LI73wI8sMEfNXRd
|
84
|
-
N1kFxxKZ+DbmQCV6Fz/xnrhu+VZWoDXSxSANRlqU0pCxHO1lsl2ZuDxvwEId
|
85
|
-
aai3iRCZ7oZzvpMWkcsctUCh/+NtQL7Gzzk4aVXjQUp07p4LUAeb/sNjp9q0
|
86
|
-
qg+2i/3/uT0TdFuvFuwDBsGbvK/nxRLI4cHDihxwa1mft4YCJ3+UDkHj4Wkv
|
87
|
-
My3ut0iNhQr1nnrkkPuS99PGrELZS24fo2CWJGveO0yHawb6CIScdq+Gnfb/
|
88
|
-
zSUCuzc2U2bDe8eGTKn6ITFIlxnxXMtZYCZoL+bbx/z1G9n8kQEzBQAA
|
89
|
-
http_version: !binary |-
|
90
|
-
MS4x
|
91
|
-
recorded_at: Sat, 19 Jan 2013 00:49:22 GMT
|
92
|
-
recorded_with: VCR 2.4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