jtv 1.0.0 → 1.0.1
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.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/.travis.yml +3 -0
- data/CHANGELOG.md +3 -0
- data/README.md +2 -2
- data/Rakefile +2 -0
- data/lib/jtv/channel.rb +4 -2
- data/lib/jtv/stream.rb +2 -2
- data/lib/jtv/version.rb +1 -1
- data/spec/features/channel_spec.rb +3 -3
- data/spec/features/stream_spec.rb +1 -1
- data/spec/jtv/channel_spec.rb +5 -3
- data/spec/jtv/stream_spec.rb +3 -2
- data/spec/vcr_cassettes/Jtv_Channel/_archives/returns_an_array_of_archives_for_given_channel.yml +32 -35
- data/spec/vcr_cassettes/Jtv_Channel/_channel_show/provides_information_for_a_given_channel.yml +35 -32
- data/spec/vcr_cassettes/Jtv_Channel/_chat_embed/returns_an_iframe_for_chat.yml +11 -28
- data/spec/vcr_cassettes/Jtv_Channel/_embed/returns_a_string_containing_an_embed_object.yml +18 -28
- data/spec/vcr_cassettes/Jtv_Channel/_fans/fetches_fans_for_a_given_channel.yml +346 -174
- data/spec/vcr_cassettes/Jtv_Stream/_list/returns_a_list_of_streams_for_a_category.yml +1656 -555
- data/spec/vcr_cassettes/Jtv_Stream/_search/returns_streams_based_on_search_query.yml +327 -124
- data/spec/vcr_cassettes/Jtv_Stream/_summary/returns_a_summary_of_Jutstin_tv_data.yml +15 -23
- metadata +4 -3
@@ -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.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="f25116e138a63a6406db3ab48e628bef", oauth_signature="ZtZy1hHJurMLwWSKNxvE3u01UKI%3D",
|
16
|
+
oauth_signature_method="HMAC-SHA1", oauth_timestamp="1368407743", 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:
|
@@ -24,36 +24,28 @@ http_interactions:
|
|
24
24
|
Server:
|
25
25
|
- nginx
|
26
26
|
Date:
|
27
|
-
- Mon,
|
27
|
+
- Mon, 13 May 2013 01:15:42 GMT
|
28
28
|
Content-Type:
|
29
29
|
- application/json
|
30
30
|
Transfer-Encoding:
|
31
31
|
- chunked
|
32
32
|
Connection:
|
33
33
|
- close
|
34
|
-
|
35
|
-
-
|
36
|
-
|
37
|
-
-
|
38
|
-
|
39
|
-
-
|
40
|
-
|
41
|
-
-
|
42
|
-
X-Request-Id:
|
43
|
-
- e351f4150bb9fd137fe9ce2231e90aa9
|
44
|
-
Etag:
|
45
|
-
- '"f1c3feb253d25f8586de0e4c601b0e72"'
|
46
|
-
X-Ua-Compatible:
|
47
|
-
- IE=Edge,chrome=1
|
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
|
48
42
|
Cache-Control:
|
49
|
-
-
|
50
|
-
X-Rack-Cache:
|
51
|
-
- miss
|
43
|
+
- max-age=30
|
52
44
|
Front-End-Https:
|
53
45
|
- 'off'
|
54
46
|
body:
|
55
47
|
encoding: UTF-8
|
56
|
-
string: '{"average_bitrate":0,"
|
48
|
+
string: '{"average_bitrate": 0, "viewers_count": 209078, "streams_count": 6165}'
|
57
49
|
http_version:
|
58
|
-
recorded_at: Mon,
|
50
|
+
recorded_at: Mon, 13 May 2013 01:15:44 GMT
|
59
51
|
recorded_with: VCR 2.4.0
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jtv
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Ratajczak
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-05-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -117,6 +117,7 @@ extra_rdoc_files: []
|
|
117
117
|
files:
|
118
118
|
- .gitignore
|
119
119
|
- .rspec
|
120
|
+
- .travis.yml
|
120
121
|
- CHANGELOG.md
|
121
122
|
- Gemfile
|
122
123
|
- LICENSE
|
@@ -173,7 +174,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
173
174
|
version: '0'
|
174
175
|
requirements: []
|
175
176
|
rubyforge_project:
|
176
|
-
rubygems_version: 2.0.
|
177
|
+
rubygems_version: 2.0.2
|
177
178
|
signing_key:
|
178
179
|
specification_version: 4
|
179
180
|
summary: Justin.tv and Twitch.tv API library
|