rspotify 2.9.0 → 2.9.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/FUNDING.yml +1 -0
- data/lib/rspotify/player.rb +2 -0
- data/lib/rspotify/user.rb +1 -1
- data/lib/rspotify/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4fb04473ae856fc8d68bd65c38b26a6955e8e6277f33af5f52b9d37955573a3d
|
4
|
+
data.tar.gz: c0ee2f61094d7b81257ca7a6fbab69dddd17b751dafdc7342993dfea31422f60
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e53b486c8784406e0782085d939bfefd8703992465f34dc46638e75dffeaf8180d13212fd04cd9182b939997d7c66d21f1ddb5ddce8ad01b6d5308358c6c70be
|
7
|
+
data.tar.gz: b7912c6db89a35abff7e5349b02b9cff4240ca8d9baa7d3b8f870d3544020714000f69fdfcdcbc709f8a73476e2370a3c3beecbd3cceb601c2d3640782f076f4
|
data/.github/FUNDING.yml
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
custom: https://www.buymeacoffee.com/guilhermesad
|
data/lib/rspotify/player.rb
CHANGED
@@ -9,6 +9,8 @@ module RSpotify
|
|
9
9
|
@progress = options['progress_ms']
|
10
10
|
@is_playing = options['is_playing']
|
11
11
|
@currently_playing_type = options['currently_playing_type']
|
12
|
+
@context_type = options.dig('context', 'type')
|
13
|
+
@context_uri = options.dig('context', 'uri')
|
12
14
|
|
13
15
|
@track = if options['track']
|
14
16
|
Track.new options['track']
|
data/lib/rspotify/user.rb
CHANGED
@@ -139,7 +139,7 @@ module RSpotify
|
|
139
139
|
url = "me/player"
|
140
140
|
response = User.oauth_get(@id, url)
|
141
141
|
return response if RSpotify.raw_response
|
142
|
-
response
|
142
|
+
response ? Player.new(self, response) : Player.new(self)
|
143
143
|
end
|
144
144
|
|
145
145
|
# Get the current user’s recently played tracks. Requires the *user-read-recently-played* scope.
|
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.9.
|
4
|
+
version: 2.9.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: 2020-07-
|
11
|
+
date: 2020-07-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: omniauth-oauth2
|
@@ -144,6 +144,7 @@ extensions: []
|
|
144
144
|
extra_rdoc_files: []
|
145
145
|
files:
|
146
146
|
- ".editorconfig"
|
147
|
+
- ".github/FUNDING.yml"
|
147
148
|
- ".gitignore"
|
148
149
|
- ".rspec"
|
149
150
|
- ".travis.yml"
|