rspotify 1.15.2 → 1.15.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2b983cb743b13ec03c5dbf73bed42c54642d924e
4
- data.tar.gz: a1fc61b17501abc0c9cbd4523e01ac7ae06141a1
3
+ metadata.gz: ac94d99639be8181e56d0816720246ce24271c77
4
+ data.tar.gz: 8a67bc4da63c94040d4b5de44995b8146926ea6f
5
5
  SHA512:
6
- metadata.gz: a27378692addb57505824e1dddef6684c2fac543aea3b44dbacbbcc3ab51e508ffb10fae7a74a7ce6f2148c566ca9d620e503ab63a215acc932c38d6f6abfbe9
7
- data.tar.gz: 83253680e40d22dd6aa92d01253066dc883d7ba42e354b44c27830eeeb7f27be7294e97a9fe5a80f2f2d538ea9c3960b5af8d28c45ffca7fea6cd07a334d6185
6
+ metadata.gz: 6d994866793d8269ea071d9a21990d5efffbecc42ff578ec61872ed69bc88cf7156c8b34aa81bdb3657d73495cc90dedc81117009585e6f9b359b31a7a98fa7e
7
+ data.tar.gz: 632426c9171bb4436ead04de17773ada3bb82e1d27871cac3c7700f401928ccad277f75dbd96094d9614ac51c2be3c26a08fb32896d2275eb0ae472072e538cb
@@ -52,8 +52,11 @@ module RSpotify
52
52
  private
53
53
 
54
54
  def send_request(verb, path, *params)
55
- url = path.start_with?("http") ? path : API_URI + path
55
+ url = path.start_with?('http') ? path : API_URI + path
56
+
57
+ url, query = *url.split('?')
56
58
  url = URI::encode(url)
59
+ url << "?#{query}" if query
57
60
 
58
61
  begin
59
62
  response = RestClient.send(verb, url, *params)
@@ -143,7 +143,7 @@ module RSpotify
143
143
  return response
144
144
  end
145
145
 
146
- @snapshot_id = json['snapshot_id']
146
+ @snapshot_id = response['snapshot_id']
147
147
  tracks
148
148
  end
149
149
 
@@ -1,3 +1,3 @@
1
1
  module RSpotify
2
- VERSION = '1.15.2'
2
+ VERSION = '1.15.3'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rspotify
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.15.2
4
+ version: 1.15.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Guilherme Sad
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-09-02 00:00:00.000000000 Z
11
+ date: 2015-10-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: omniauth-oauth2