spotify-client 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/spotify/exceptions.rb +1 -1
- data/lib/spotify/version.rb +1 -1
- data/lib/spotify_client.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dc71af94660fd73b0624feb29b4542890a5fa7de
|
4
|
+
data.tar.gz: cd8443b6b50843c77301a19cb503f2f98f4dddf4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b1f20abaa5c18114d2d19c3524ca07ef451c1c82129d5b3d7addf4190ba9a8d0a11818db43c4eb7fa632d3e745bf1727bdc145b6ee5e05b1fa09ea8fc145d137
|
7
|
+
data.tar.gz: 9e943f920ff8e05926517a37bb176c9ff73c9027ddafadd218cb8a71d611fdd0ac4927efbcb14e81b223343587a013504c8606ad1743e5041ac8677a196b9bdd
|
data/lib/spotify/exceptions.rb
CHANGED
@@ -3,7 +3,7 @@ module Spotify
|
|
3
3
|
class Error < StandardError; end
|
4
4
|
class AuthenticationError < Error; end
|
5
5
|
class HTTPError < Error; end
|
6
|
-
class
|
6
|
+
class InsufficientClientScopeError < Error; end
|
7
7
|
class BadRequest < Error; end
|
8
8
|
class ResourceNotFound < Error; end
|
9
9
|
end
|
data/lib/spotify/version.rb
CHANGED
data/lib/spotify_client.rb
CHANGED
@@ -174,7 +174,7 @@ module Spotify
|
|
174
174
|
rescue Excon::Errors::BadRequest => exception
|
175
175
|
raise(BadRequest, "Error: #{exception.message}")
|
176
176
|
rescue Excon::Errors::Forbidden => exception
|
177
|
-
raise(
|
177
|
+
raise(InsufficientClientScopeError, "Error: #{exception.message}")
|
178
178
|
rescue Excon::Errors::Unauthorized => exception
|
179
179
|
raise(AuthenticationError, "Error: #{exception.message}")
|
180
180
|
rescue Excon::Errors::Error => exception
|