rspotify 2.1.0 → 2.1.1

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: 3b837a539cae25d32cc6bdfad118ec0ae25de9f4
4
- data.tar.gz: 21153745531d4695bba73613c70535eb9fac7f0f
3
+ metadata.gz: f0f3ca7d527ba24376c7a771944c0d85ea1b19e4
4
+ data.tar.gz: b3f77aa19fef41454edf329812109ab0c4e7de89
5
5
  SHA512:
6
- metadata.gz: 25ffeff226c2c59241faffc769685d00122d62ffb1ea51d21a2faa0d5dd641bcdeca88ffba6d4218447204cfe72df9174739ac2011c2413987bf0ec00e950129
7
- data.tar.gz: '0975e8de9ebdc83fb4778a2229c6a72b33c60639eb9cf64c9df1eb8352291ac0d26f91cfe9304bd5bb5c1d9f2aed2333ebc9c05eece629474424683d5e1b3eb2'
6
+ metadata.gz: c27ab467d8336d1a876fb072e8651970324515f248c6bbac9c8d06dc654efd2cbb1b5b942b1e4ac665eef8b560603593ea08b2a2fda476472b5aa534ecebd8cc
7
+ data.tar.gz: f73fc7fca5c41aac95a8a97f44e85e152bd6b643a632500fa54248990d62fe150cefc5eb9fb0afefbde346a2961355ef150cd9d09153f253ac107a01374a0195
data/lib/rspotify/user.rb CHANGED
@@ -67,7 +67,7 @@ module RSpotify
67
67
  rescue RestClient::Exception => e
68
68
  raise e if e.response !~ /access token expired/
69
69
  refresh_token(user_id)
70
- params[-1] = headers
70
+ params[-1] = oauth_header(user_id).merge(custom_headers)
71
71
  RSpotify.send(:send_request, verb, path, *params)
72
72
  end
73
73
  private_class_method :oauth_header
@@ -1,3 +1,3 @@
1
1
  module RSpotify
2
- VERSION = '2.1.0'
2
+ VERSION = '2.1.1'
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: 2.1.0
4
+ version: 2.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Guilherme Sad
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-04-15 00:00:00.000000000 Z
11
+ date: 2018-06-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: omniauth-oauth2