jtv 1.0.0.alpha1 → 1.0.0.beta1
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +2 -0
- data/README.md +24 -0
- data/jtv.gemspec +1 -0
- data/lib/jtv/client.rb +2 -0
- data/lib/jtv/user.rb +11 -0
- data/lib/jtv/version.rb +1 -1
- data/spec/features/stream_spec.rb +3 -3
- data/spec/features/user_spec.rb +22 -0
- data/spec/jtv/client_spec.rb +6 -0
- data/spec/jtv/user_spec.rb +21 -0
- data/spec/vcr_cassettes/Jtv_Stream/_summary.yml +13 -13
- data/spec/vcr_cassettes/Jtv_User/_favorites.yml +110 -0
- data/spec/vcr_cassettes/{Jtv_Stream.yml → Jtv_User/_user_show.yml} +25 -14
- metadata +31 -6
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -94,6 +94,30 @@ channels first.
|
|
94
94
|
The first argument is your search query, and you can also pass limit and offset
|
95
95
|
as params.
|
96
96
|
|
97
|
+
### User
|
98
|
+
|
99
|
+
#### Show
|
100
|
+
|
101
|
+
Returns extended information for a user, specified by user id or login.
|
102
|
+
|
103
|
+
```ruby
|
104
|
+
Jtv.user_show 'mockra'
|
105
|
+
# {"id"=>22056792...}
|
106
|
+
```
|
107
|
+
|
108
|
+
Pass in a user's login.
|
109
|
+
|
110
|
+
#### Favorites
|
111
|
+
|
112
|
+
Get all channels who are favorites of a user.
|
113
|
+
|
114
|
+
```ruby
|
115
|
+
Jtv.favorites 'mockra'
|
116
|
+
# [{}]
|
117
|
+
```
|
118
|
+
|
119
|
+
Pass in a user's login.
|
120
|
+
|
97
121
|
## Contributing
|
98
122
|
|
99
123
|
Contributions and feedback are more than welcome and highly encouraged.
|
data/jtv.gemspec
CHANGED
data/lib/jtv/client.rb
CHANGED
@@ -3,11 +3,13 @@ require 'json'
|
|
3
3
|
require 'faraday'
|
4
4
|
require 'jtv/defaults'
|
5
5
|
require 'jtv/stream'
|
6
|
+
require 'jtv/user'
|
6
7
|
|
7
8
|
module Jtv
|
8
9
|
class Client
|
9
10
|
include Jtv::Defaults
|
10
11
|
include Jtv::Stream
|
12
|
+
include Jtv::User
|
11
13
|
|
12
14
|
def initialize args = {}
|
13
15
|
args.each do |key, value|
|
data/lib/jtv/user.rb
ADDED
data/lib/jtv/version.rb
CHANGED
@@ -6,8 +6,8 @@ describe Jtv::Stream do
|
|
6
6
|
use_vcr_cassette
|
7
7
|
|
8
8
|
it 'fetches a live channel' do
|
9
|
-
summary = Jtv.summary
|
10
|
-
expect(summary['
|
9
|
+
summary = Jtv.summary
|
10
|
+
expect(summary['streams_count']).to be > 0
|
11
11
|
end
|
12
12
|
end
|
13
13
|
|
@@ -17,7 +17,7 @@ describe Jtv::Stream do
|
|
17
17
|
it 'returns a list of streams for a category' do
|
18
18
|
list = Jtv.list category: 'gaming'
|
19
19
|
expect(list.count).to eq 50
|
20
|
-
expect(list.first['
|
20
|
+
expect(list.first['category']).to match(/gaming/i)
|
21
21
|
end
|
22
22
|
end
|
23
23
|
|
@@ -0,0 +1,22 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
require 'vcr_config'
|
3
|
+
|
4
|
+
describe Jtv::User do
|
5
|
+
describe '#user_show' do
|
6
|
+
use_vcr_cassette
|
7
|
+
|
8
|
+
it 'fetches information on user' do
|
9
|
+
user = Jtv.user_show 'augury'
|
10
|
+
expect(user['login']).to eq 'augury'
|
11
|
+
end
|
12
|
+
end
|
13
|
+
|
14
|
+
describe '#favorites' do
|
15
|
+
use_vcr_cassette
|
16
|
+
|
17
|
+
it 'fetches favorites from user' do
|
18
|
+
user = Jtv.favorites 'augury'
|
19
|
+
expect(user.first['language']).to eq 'en'
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
data/spec/jtv/client_spec.rb
CHANGED
@@ -23,6 +23,12 @@ describe Jtv::Client do
|
|
23
23
|
expect(client).to respond_to :list
|
24
24
|
expect(client).to respond_to :search
|
25
25
|
end
|
26
|
+
end
|
26
27
|
|
28
|
+
context 'when including user' do
|
29
|
+
it 'has access to show and favorites' do
|
30
|
+
expect(client).to respond_to :user_show
|
31
|
+
expect(client).to respond_to :favorites
|
32
|
+
end
|
27
33
|
end
|
28
34
|
end
|
@@ -0,0 +1,21 @@
|
|
1
|
+
require_relative '../../lib/jtv/user'
|
2
|
+
|
3
|
+
class Client; include Jtv::User; end
|
4
|
+
|
5
|
+
describe Jtv::User do
|
6
|
+
let(:client) { Client.new }
|
7
|
+
|
8
|
+
describe '#user_show' do
|
9
|
+
it 'sends path with user to get' do
|
10
|
+
client.should_receive(:get).with 'user/show/test.json'
|
11
|
+
client.user_show 'test'
|
12
|
+
end
|
13
|
+
end
|
14
|
+
|
15
|
+
describe '#favorites' do
|
16
|
+
it 'sends favorites path with user to get' do
|
17
|
+
client.should_receive(:get).with 'user/favorites/test.json'
|
18
|
+
client.favorites 'test'
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: http://api.justin.tv/stream/summary
|
5
|
+
uri: http://api.justin.tv/stream/summary
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -12,8 +12,8 @@ http_interactions:
|
|
12
12
|
user-agent:
|
13
13
|
- Jtv Gem
|
14
14
|
authorization:
|
15
|
-
- OAuth oauth_nonce="
|
16
|
-
oauth_signature_method="HMAC-SHA1", oauth_timestamp="
|
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
17
|
accept-encoding:
|
18
18
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
19
19
|
response:
|
@@ -27,7 +27,7 @@ http_interactions:
|
|
27
27
|
bmdpbng=
|
28
28
|
!binary "ZGF0ZQ==":
|
29
29
|
- !binary |-
|
30
|
-
|
30
|
+
U2F0LCAxOSBKYW4gMjAxMyAwMDoxODoxMiBHTVQ=
|
31
31
|
!binary "Y29udGVudC10eXBl":
|
32
32
|
- !binary |-
|
33
33
|
YXBwbGljYXRpb24vanNvbg==
|
@@ -42,16 +42,19 @@ http_interactions:
|
|
42
42
|
MjAwIE9L
|
43
43
|
!binary "dmlh":
|
44
44
|
- !binary |-
|
45
|
-
|
46
|
-
!binary "
|
45
|
+
VHdpY2UgMC4yIHR3aWNlMzozMzQ4
|
46
|
+
!binary "eC1ydW50aW1l":
|
47
47
|
- !binary |-
|
48
|
-
|
48
|
+
MC4wMDc1NTU=
|
49
49
|
!binary "eC1nZW8=":
|
50
50
|
- !binary |-
|
51
51
|
VVM=
|
52
|
+
!binary "eC1yZXF1ZXN0LWlk":
|
53
|
+
- !binary |-
|
54
|
+
OTU1OWMxZDM4ZWJiODkzYWNiNjkxZWM3NGYxNzk4MzY=
|
52
55
|
!binary "ZXRhZw==":
|
53
56
|
- !binary |-
|
54
|
-
|
57
|
+
IjRjYjU5NmM4YjhlODNkMDljZGZiZDA0M2FiNDFhYTY0Ig==
|
55
58
|
!binary "eC11YS1jb21wYXRpYmxl":
|
56
59
|
- !binary |-
|
57
60
|
SUU9RWRnZSxjaHJvbWU9MQ==
|
@@ -61,9 +64,6 @@ http_interactions:
|
|
61
64
|
!binary "eC1yYWNrLWNhY2hl":
|
62
65
|
- !binary |-
|
63
66
|
bWlzcw==
|
64
|
-
!binary "eC1ydW50aW1l":
|
65
|
-
- !binary |-
|
66
|
-
MC4wMDgxMDE=
|
67
67
|
!binary "ZnJvbnQtZW5kLWh0dHBz":
|
68
68
|
- !binary |-
|
69
69
|
b2Zm
|
@@ -74,8 +74,8 @@ http_interactions:
|
|
74
74
|
encoding: ASCII-8BIT
|
75
75
|
string: !binary |-
|
76
76
|
H4sIAAAAAAAAA6tWSixLLUpMT41PyiwpSixJVbIy0FEqLilKTcwtjk/OL80r
|
77
|
-
|
77
|
+
UbIyMzIGCpZlppanFsEFlYzMTMwsTZVqAUijEPhDAAAA
|
78
78
|
http_version: !binary |-
|
79
79
|
MS4x
|
80
|
-
recorded_at:
|
80
|
+
recorded_at: Sat, 19 Jan 2013 00:18:12 GMT
|
81
81
|
recorded_with: VCR 2.4.0
|
@@ -0,0 +1,110 @@
|
|
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/tB5EqmjNO4WniEw9lsks6nQRoQ4oXhCEIMPYiQ2h11znWG
|
86
|
+
OX987zNvM7vzbhNVaHD6Dp0H6FKxBG/1M/T+raJbNEJ/YJHIDL3FGdUfYLMZ
|
87
|
+
zFaQgBRzDQdnWEb/kcJm5M9r9xUVRmEO06o0x0QWwthkTaLTaO57Nku7ZbMq
|
88
|
+
qtR+cdFEgbeZztqiYZDYSeTP/LDNN5GJ9YPg71wubikxyGxzenHj4DznDAqF
|
89
|
+
SeFuRnolyd8lXtNRyrFe3ThoRdlyZWDiZB7CsGSJWcEoCAMYsQS+VsVcl1Vd
|
90
|
+
yXFrm2CDYUITXVmW49tCQ4WNzdqFhZbUNFehbz3WZforWWEhKL/YqyxwulgS
|
91
|
+
yaWChX/wqr8b58V5jhXOkIA02Zg4l+UlXIHr6rTBZo15YX+x5Q5D95ABpIbl
|
92
|
+
BhNCte6ZYF5CRRwwyiRkuTfx4WEeWLQ6ujVWOzsojIzt0V5UVff8s4fzHIpZ
|
93
|
+
mXgteQHnMAnr9d064S9urH7cqz+O1XEKMJh4m8nU3ip7pZsdWkXpqns3/3uZ
|
94
|
+
tWaNfoEK1SoH165WrU4jBgntESSqkuFDIjXgyh7BfeR5G/i0GnkvbUOEchBs
|
95
|
+
QArDVjV6AGkTUGOkO/wh5XKE4AMIHj5t8AYvrUAHkYcAY1Tb/1AWKGNESS1T
|
96
|
+
gwQThoJQI3tLKvRKgRqgolwHSEuxRWuWUFn/r9cpGUObhdxA6XG5ZAKcHCpL
|
97
|
+
gFlSEKpqWn48ORr8F8rSRYReOJD6L2uDH7UFkj2Ca6Mozuy9/nr070Wxi/2U
|
98
|
+
RMQnaeJ75DT0FrTBfl69Q76U+sO91rivvd7R/gqbFZIperOBZwpQDUbN4aKf
|
99
|
+
rl79DBtsSV/fgR7of8uoAmK6r6lRkhmYukv7wD+dR7NwX2wHKMeBS9sLdJ/y
|
100
|
+
URTO/XDyrWO+i/E73zu+d6fyZGDvFduDid7ZPi7Kh9/8luH3FWfARdyn2HC3
|
101
|
+
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
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: http://api.justin.tv/
|
5
|
+
uri: http://api.justin.tv/user/show/augury.json
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -12,8 +12,8 @@ http_interactions:
|
|
12
12
|
user-agent:
|
13
13
|
- Jtv Gem
|
14
14
|
authorization:
|
15
|
-
- OAuth oauth_nonce="
|
16
|
-
oauth_signature_method="HMAC-SHA1", oauth_timestamp="
|
15
|
+
- OAuth oauth_nonce="97226ce4b530ec085c3d7450e7ce2a64", oauth_signature="1Om%2BMSIoNXMohwOqN0RiBUzLukQ%3D",
|
16
|
+
oauth_signature_method="HMAC-SHA1", oauth_timestamp="1358556562", oauth_version="1.0"
|
17
17
|
accept-encoding:
|
18
18
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
19
19
|
response:
|
@@ -27,7 +27,7 @@ http_interactions:
|
|
27
27
|
bmdpbng=
|
28
28
|
!binary "ZGF0ZQ==":
|
29
29
|
- !binary |-
|
30
|
-
|
30
|
+
U2F0LCAxOSBKYW4gMjAxMyAwMDo0OToyMiBHTVQ=
|
31
31
|
!binary "Y29udGVudC10eXBl":
|
32
32
|
- !binary |-
|
33
33
|
YXBwbGljYXRpb24vanNvbg==
|
@@ -42,16 +42,19 @@ http_interactions:
|
|
42
42
|
MjAwIE9L
|
43
43
|
!binary "dmlh":
|
44
44
|
- !binary |-
|
45
|
-
|
46
|
-
!binary "
|
45
|
+
VHdpY2UgMC4yIHR3aWNlMTozMzQ3
|
46
|
+
!binary "eC1ydW50aW1l":
|
47
47
|
- !binary |-
|
48
|
-
|
48
|
+
MC4wMTkyNTY=
|
49
49
|
!binary "eC1nZW8=":
|
50
50
|
- !binary |-
|
51
51
|
VVM=
|
52
|
+
!binary "eC1yZXF1ZXN0LWlk":
|
53
|
+
- !binary |-
|
54
|
+
OWYyYTE1YmIwZjJhZTEwN2M3NzA1ZTAxZTc0YmNkZjA=
|
52
55
|
!binary "ZXRhZw==":
|
53
56
|
- !binary |-
|
54
|
-
|
57
|
+
IjAxODlmZmFkMzgyYWNlYTc1MDIyNGNkNTZhYTg5YWVhIg==
|
55
58
|
!binary "eC11YS1jb21wYXRpYmxl":
|
56
59
|
- !binary |-
|
57
60
|
SUU9RWRnZSxjaHJvbWU9MQ==
|
@@ -61,9 +64,6 @@ http_interactions:
|
|
61
64
|
!binary "eC1yYWNrLWNhY2hl":
|
62
65
|
- !binary |-
|
63
66
|
bWlzcw==
|
64
|
-
!binary "eC1ydW50aW1l":
|
65
|
-
- !binary |-
|
66
|
-
MC4wMDgxMDE=
|
67
67
|
!binary "ZnJvbnQtZW5kLWh0dHBz":
|
68
68
|
- !binary |-
|
69
69
|
b2Zm
|
@@ -73,9 +73,20 @@ http_interactions:
|
|
73
73
|
body:
|
74
74
|
encoding: ASCII-8BIT
|
75
75
|
string: !binary |-
|
76
|
-
|
77
|
-
|
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
|
78
89
|
http_version: !binary |-
|
79
90
|
MS4x
|
80
|
-
recorded_at:
|
91
|
+
recorded_at: Sat, 19 Jan 2013 00:49:22 GMT
|
81
92
|
recorded_with: VCR 2.4.0
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jtv
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.0.
|
4
|
+
version: 1.0.0.beta1
|
5
5
|
prerelease: 6
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,8 +9,24 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-01-
|
12
|
+
date: 2013-01-19 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: rake
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '0'
|
22
|
+
type: :development
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ! '>='
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '0'
|
14
30
|
- !ruby/object:Gem::Dependency
|
15
31
|
name: rspec
|
16
32
|
requirement: !ruby/object:Gem::Requirement
|
@@ -127,18 +143,22 @@ files:
|
|
127
143
|
- lib/jtv/configuration.rb
|
128
144
|
- lib/jtv/defaults.rb
|
129
145
|
- lib/jtv/stream.rb
|
146
|
+
- lib/jtv/user.rb
|
130
147
|
- lib/jtv/version.rb
|
131
148
|
- spec/features/stream_spec.rb
|
149
|
+
- spec/features/user_spec.rb
|
132
150
|
- spec/jtv/client_spec.rb
|
133
151
|
- spec/jtv/configuration_spec.rb
|
134
152
|
- spec/jtv/defaults_spec.rb
|
135
153
|
- spec/jtv/stream_spec.rb
|
154
|
+
- spec/jtv/user_spec.rb
|
136
155
|
- spec/jtv_spec.rb
|
137
156
|
- spec/spec_helper.rb
|
138
|
-
- spec/vcr_cassettes/Jtv_Stream.yml
|
139
157
|
- spec/vcr_cassettes/Jtv_Stream/_list.yml
|
140
158
|
- spec/vcr_cassettes/Jtv_Stream/_search.yml
|
141
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
|
142
162
|
- spec/vcr_config.rb
|
143
163
|
homepage: http://mockra.com
|
144
164
|
licenses:
|
@@ -153,6 +173,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
153
173
|
- - ! '>='
|
154
174
|
- !ruby/object:Gem::Version
|
155
175
|
version: '0'
|
176
|
+
segments:
|
177
|
+
- 0
|
178
|
+
hash: -1875216035123816737
|
156
179
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
157
180
|
none: false
|
158
181
|
requirements:
|
@@ -161,21 +184,23 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
161
184
|
version: 1.3.1
|
162
185
|
requirements: []
|
163
186
|
rubyforge_project:
|
164
|
-
rubygems_version: 1.8.
|
187
|
+
rubygems_version: 1.8.24
|
165
188
|
signing_key:
|
166
189
|
specification_version: 3
|
167
190
|
summary: Justin.tv and Twitch.tv API library
|
168
191
|
test_files:
|
169
192
|
- spec/features/stream_spec.rb
|
193
|
+
- spec/features/user_spec.rb
|
170
194
|
- spec/jtv/client_spec.rb
|
171
195
|
- spec/jtv/configuration_spec.rb
|
172
196
|
- spec/jtv/defaults_spec.rb
|
173
197
|
- spec/jtv/stream_spec.rb
|
198
|
+
- spec/jtv/user_spec.rb
|
174
199
|
- spec/jtv_spec.rb
|
175
200
|
- spec/spec_helper.rb
|
176
|
-
- spec/vcr_cassettes/Jtv_Stream.yml
|
177
201
|
- spec/vcr_cassettes/Jtv_Stream/_list.yml
|
178
202
|
- spec/vcr_cassettes/Jtv_Stream/_search.yml
|
179
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
|
180
206
|
- spec/vcr_config.rb
|
181
|
-
has_rdoc:
|