rspotify 2.12.1 → 2.12.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rspotify/user.rb +4 -1
- data/lib/rspotify/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 04012caf5022c9b025580adecc490d30ee09f175bc6c45a9c6e467f988983365
|
4
|
+
data.tar.gz: c8b22753b1bcf23408d15dbac1abcc6c00bd4ab7fcf17ab9bb3995dc62169403
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e291b857cca5ddbf3d3ae4830b16d5cffd076e23244f7dc305aaa01be89b855420aaa48110dfac96c001693b5ed00f4c137def66c32c5553e58cc8b40d106bd9
|
7
|
+
data.tar.gz: 8120e093d6bc7597994a52e2d7d277df932f290a51bdf1f07277454cc2da8d39c69d9e7a6c7f376ed8f65416c7cc1d658047497ffcb75df48d68dbf7aace6c5e
|
data/lib/rspotify/user.rb
CHANGED
@@ -61,8 +61,11 @@ module RSpotify
|
|
61
61
|
private_class_method :extract_custom_headers
|
62
62
|
|
63
63
|
def self.oauth_header(user_id)
|
64
|
+
token = @@users_credentials.dig(user_id, 'token')
|
65
|
+
# Fallback for playlist.add_tracks! if no credentials for the playlist owner exist
|
66
|
+
token ||= @@users_credentials.values.dig(0, 'token')
|
64
67
|
{
|
65
|
-
'Authorization' => "Bearer #{
|
68
|
+
'Authorization' => "Bearer #{token}",
|
66
69
|
'Content-Type' => 'application/json'
|
67
70
|
}
|
68
71
|
end
|
data/lib/rspotify/version.rb
CHANGED
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.12.
|
4
|
+
version: 2.12.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Guilherme Sad
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-05-
|
11
|
+
date: 2024-05-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: omniauth-oauth2
|