rspotify 2.12.0 → 2.12.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9ad5348b6d88e2e2f36d4f8a08a5979e84cf6b09c0674c65ce49095b7536284d
4
- data.tar.gz: 2a369690af6ad4401c081ff980d156fd31eaa853ab5b36a7a0b4bede28ec53e2
3
+ metadata.gz: 6aa870c1626f1912080858169ae6dfaedcaa3d80b1a054b90d045a0674717cbe
4
+ data.tar.gz: 3f3b4138467008192be294bee7afdc0d1c0970bedf6410eb8262fb6567e6b34f
5
5
  SHA512:
6
- metadata.gz: 1a9f861ce328736c47078c3f64b051621e3c442037c9636e24bf64dbde4c85a7efcc0fb3ec7c85db96fb297b41a7f0a37b20446e0ecfa0d1ab8f23d682c1a202
7
- data.tar.gz: 84e5dcfecd734d927b63a79365b5a4dc0669dec8412028322d19944be7f4995d15a0adaaf4287066de66bf6452c29003fd6a2e6cfa29a1bc2d9a9b8da223b09e
6
+ metadata.gz: '09746a6f4b21b8ff50877afaed94c34332e2cb6ac34df5c1a3b599d68cc92bbe8314f287432da0a018d38002d662c9704f784e0662dee7a531d02a54a76e6fc2'
7
+ data.tar.gz: 4574ab6c8f9a6ec06ab058cbdb611179275933fa2a57c755567df6c467a9fb7d017e33a68a1e4b3208c406741832d7009c9ad138b33817b5b115eeb54f961558
@@ -128,8 +128,11 @@ module RSpotify
128
128
 
129
129
  super(options)
130
130
 
131
- @path = "users/#{@owner.instance_variable_get('@id').gsub('?','')}/"
132
- @path << (@href =~ /\/starred$/ ? 'starred' : "playlists/#{@id}")
131
+ @path = if @href =~ /\/starred$/
132
+ "users/#{@owner.instance_variable_get('@id').gsub('?','')}/starred"
133
+ else
134
+ "playlists/#{@id}"
135
+ end
133
136
  end
134
137
 
135
138
  # Adds one or more tracks to a playlist in user's Spotify account. This method is only available when the
@@ -1,3 +1,3 @@
1
1
  module RSpotify
2
- VERSION = '2.12.0'.freeze
2
+ VERSION = '2.12.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.12.0
4
+ version: 2.12.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: 2023-08-20 00:00:00.000000000 Z
11
+ date: 2024-05-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: omniauth-oauth2