twitch 0.1.0 → 0.1.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 23781ae0fb82fe7205a8b07bd14a47f5bbdcf6bd
4
- data.tar.gz: fafa98561b1df4230c13ebe7ff385291f0d71764
3
+ metadata.gz: e01cfa52014420d7bca4357d604ffeeea8fe3158
4
+ data.tar.gz: dc7a066938e2164ab2208024b5c14b622f626fa0
5
5
  SHA512:
6
- metadata.gz: 36478d840ee2ead80c59612f88ab5392e418e273ccbaa014e2c2895629fbeb379fcc9068adff451c7f829e83e1a9b82e5f70fdae7d599ac7678bbfed69bace46
7
- data.tar.gz: c57d5129e3163d0c78522fc3d08eb2e735558663d94c063f588a4fc413530ba3c102591aa32f7e2d73efd54b066e17a67cea2f6d0a7b3bcd0a0677691a8a4645
6
+ metadata.gz: c875b08cd678e419352b89edf524c00f31f434ca503b19c1d39af63fcbf8bc2b29919024df3fd55e74a4ab909cb6fb3fe443f7015bc3ef0473de1a76b19cb63b
7
+ data.tar.gz: 9231a9be8cc99411e0050e7e74c2795507b1f2b718d2ed39ffba27a00c2b38702382013067a608b89a9e0c8e2f0e87386308c6ed6e4feac2fa9942dd003e6055
@@ -212,8 +212,9 @@ module Twitch
212
212
  def followed_streams(options = {})
213
213
  return false unless @access_token
214
214
 
215
+ options[:oauth_token] = @access_token
215
216
  query = build_query_string(options)
216
- path = "/streams/followed?oauth_token=#{@access_token}"
217
+ path = "/streams/followed"
217
218
  url = @base_url + path + query
218
219
 
219
220
  get(url)
@@ -274,8 +275,9 @@ module Twitch
274
275
  end
275
276
 
276
277
  def subscribed?(username, channel, options = {})
278
+ options[:oauth_token] = @access_token
277
279
  query = build_query_string(options)
278
- path = "/users/#{username}/subscriptions/#{channel}?oauth_token=#{@access_token}"
280
+ path = "/users/#{username}/subscriptions/#{channel}"
279
281
  url = @base_url + path + query
280
282
 
281
283
  get(url)
@@ -284,8 +286,9 @@ module Twitch
284
286
  def followed_videos(options ={})
285
287
  return false unless @access_token
286
288
 
289
+ options[:oauth_token] = @access_token
287
290
  query = build_query_string(options)
288
- path = "/videos/followed?oauth_token=#{@access_token}"
291
+ path = "/videos/followed"
289
292
  url = @base_url + path + query
290
293
 
291
294
  get(url)
@@ -303,8 +306,9 @@ module Twitch
303
306
  # Blocks
304
307
 
305
308
  def blocks(username, options = {})
309
+ options[:oauth_token] = @access_token
306
310
  query = build_query_string(options)
307
- path = "/users/#{username}/blocks?oauth_token=#{@access_token}"
311
+ path = "/users/#{username}/blocks"
308
312
  url = @base_url + path + query
309
313
 
310
314
  get(url)
@@ -3,7 +3,7 @@ module Twitch
3
3
  module VERSION
4
4
  MAJOR = 0
5
5
  MINOR = 1
6
- TINY = 0
6
+ TINY = 1
7
7
 
8
8
  STRING = [MAJOR, MINOR, TINY].compact.join(".")
9
9
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: twitch
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dustin Lakin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-05-28 00:00:00.000000000 Z
11
+ date: 2015-09-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty