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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bd4464a0bd9145130472ed8f8abe11c595e3e5065a44e083d7a41ef26a315dad
4
- data.tar.gz: a81d26ab41cfb8ff340eb30a39f6d878503481378757ca4cc480db89c147bd07
3
+ metadata.gz: 4fb04473ae856fc8d68bd65c38b26a6955e8e6277f33af5f52b9d37955573a3d
4
+ data.tar.gz: c0ee2f61094d7b81257ca7a6fbab69dddd17b751dafdc7342993dfea31422f60
5
5
  SHA512:
6
- metadata.gz: 23d30c3094d7c243733190ca8e02231159968027a3d3b30eb72c0d8fb0694ecde85bb0b7c3327b86021a624bfa96890f33315d8acb134f67396124068c4bcee2
7
- data.tar.gz: ec899b94e25402f6a22ba6e9ecca3be4ced60f763ed4108d3f206d6f054449ce3f6d3b3b1eab4b4cc47053532c3320756d382d5a11bc2c41b966c51fbaf6be3c
6
+ metadata.gz: e53b486c8784406e0782085d939bfefd8703992465f34dc46638e75dffeaf8180d13212fd04cd9182b939997d7c66d21f1ddb5ddce8ad01b6d5308358c6c70be
7
+ data.tar.gz: b7912c6db89a35abff7e5349b02b9cff4240ca8d9baa7d3b8f870d3544020714000f69fdfcdcbc709f8a73476e2370a3c3beecbd3cceb601c2d3640782f076f4
@@ -0,0 +1 @@
1
+ custom: https://www.buymeacoffee.com/guilhermesad
@@ -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']
@@ -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.present? ? Player.new(self, response) : nil
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.
@@ -1,3 +1,3 @@
1
1
  module RSpotify
2
- VERSION = '2.9.0'.freeze
2
+ VERSION = '2.9.1'.freeze
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.9.0
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-07 00:00:00.000000000 Z
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"