spotify 11.0.1 → 11.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +10 -0
- data/lib/spotify.rb +17 -0
- data/lib/spotify/version.rb +1 -1
- metadata +11 -11
data/CHANGELOG.md
CHANGED
@@ -1,7 +1,14 @@
|
|
1
|
+
[v11.0.2][]
|
2
|
+
-----------
|
3
|
+
- make the error message on missing functions more friendly
|
4
|
+
- fix changelog formatting
|
5
|
+
|
1
6
|
[v11.0.1][]
|
7
|
+
-----------
|
2
8
|
- upgrade to libspotify v11.1.60
|
3
9
|
|
4
10
|
[v11.0.0][]
|
11
|
+
-----------
|
5
12
|
- raise more helpful error on missing libspotify
|
6
13
|
- upgrade to libspotify v11.1.56
|
7
14
|
|
@@ -96,6 +103,9 @@ v0.0.0
|
|
96
103
|
------
|
97
104
|
- release to register rubygems.org name
|
98
105
|
|
106
|
+
[v11.0.2]: https://github.com/Burgestrand/libspotify-ruby/compare/v11.0.1...v11.0.2
|
107
|
+
[v11.0.1]: https://github.com/Burgestrand/libspotify-ruby/compare/v11.0.0...v11.0.1
|
108
|
+
[v11.0.0]: https://github.com/Burgestrand/libspotify-ruby/compare/v10.3.0...v11.0.0
|
99
109
|
[v10.3.0]: https://github.com/Burgestrand/libspotify-ruby/compare/v10.2.2...v10.3.0
|
100
110
|
[v10.2.2]: https://github.com/Burgestrand/libspotify-ruby/compare/v10.2.1...v10.2.2
|
101
111
|
[v10.2.1]: https://github.com/Burgestrand/libspotify-ruby/compare/v10.2.0...v10.2.1
|
data/lib/spotify.rb
CHANGED
@@ -721,4 +721,21 @@ module Spotify
|
|
721
721
|
|
722
722
|
attach_function :inbox_add_ref, :sp_inbox_add_ref, [ :inbox ], :void
|
723
723
|
attach_function :inbox_release, :sp_inbox_release, [ :inbox ], :void
|
724
|
+
|
725
|
+
# Rescue errors thrown when binding to a method that does not exist. Often
|
726
|
+
# this is because of the user using an old version of libspotify, or a new
|
727
|
+
# one. Either way it’s incompatible.
|
728
|
+
rescue FFI::NotFoundError => e
|
729
|
+
puts "An error was thrown when binding to the libspotify C functions. Please
|
730
|
+
make sure you are using an up-to-date libspotify version, compatible with
|
731
|
+
the current version of the Spotify gem.
|
732
|
+
|
733
|
+
Compatible versions of libspotify should be #{API_VERSION}.x.x
|
734
|
+
|
735
|
+
If it still does not work, see the CHANGELOG for information about which
|
736
|
+
libspotify version the gem was last updated to work with on GitHub:
|
737
|
+
https://github.com/Burgestrand/libspotify-ruby/blob/master/CHANGELOG.md
|
738
|
+
".gsub(/^ +/, "")
|
739
|
+
|
740
|
+
raise
|
724
741
|
end
|
data/lib/spotify/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spotify
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 11.0.
|
4
|
+
version: 11.0.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -13,7 +13,7 @@ date: 2012-03-29 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: ffi
|
16
|
-
requirement: &
|
16
|
+
requirement: &70360775894560 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
@@ -24,10 +24,10 @@ dependencies:
|
|
24
24
|
version: 1.0.11
|
25
25
|
type: :runtime
|
26
26
|
prerelease: false
|
27
|
-
version_requirements: *
|
27
|
+
version_requirements: *70360775894560
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
29
|
name: rake
|
30
|
-
requirement: &
|
30
|
+
requirement: &70360775891820 !ruby/object:Gem::Requirement
|
31
31
|
none: false
|
32
32
|
requirements:
|
33
33
|
- - ! '>='
|
@@ -35,10 +35,10 @@ dependencies:
|
|
35
35
|
version: '0'
|
36
36
|
type: :development
|
37
37
|
prerelease: false
|
38
|
-
version_requirements: *
|
38
|
+
version_requirements: *70360775891820
|
39
39
|
- !ruby/object:Gem::Dependency
|
40
40
|
name: yard
|
41
|
-
requirement: &
|
41
|
+
requirement: &70360775890860 !ruby/object:Gem::Requirement
|
42
42
|
none: false
|
43
43
|
requirements:
|
44
44
|
- - ! '>='
|
@@ -46,10 +46,10 @@ dependencies:
|
|
46
46
|
version: '0'
|
47
47
|
type: :development
|
48
48
|
prerelease: false
|
49
|
-
version_requirements: *
|
49
|
+
version_requirements: *70360775890860
|
50
50
|
- !ruby/object:Gem::Dependency
|
51
51
|
name: rbgccxml
|
52
|
-
requirement: &
|
52
|
+
requirement: &70360775906700 !ruby/object:Gem::Requirement
|
53
53
|
none: false
|
54
54
|
requirements:
|
55
55
|
- - ! '>='
|
@@ -57,10 +57,10 @@ dependencies:
|
|
57
57
|
version: '0'
|
58
58
|
type: :development
|
59
59
|
prerelease: false
|
60
|
-
version_requirements: *
|
60
|
+
version_requirements: *70360775906700
|
61
61
|
- !ruby/object:Gem::Dependency
|
62
62
|
name: minitest
|
63
|
-
requirement: &
|
63
|
+
requirement: &70360775906160 !ruby/object:Gem::Requirement
|
64
64
|
none: false
|
65
65
|
requirements:
|
66
66
|
- - ~>
|
@@ -68,7 +68,7 @@ dependencies:
|
|
68
68
|
version: '2.0'
|
69
69
|
type: :development
|
70
70
|
prerelease: false
|
71
|
-
version_requirements: *
|
71
|
+
version_requirements: *70360775906160
|
72
72
|
description: ! " Spotify for Ruby is a primitive wrapper around libspotify using
|
73
73
|
Ruby FFI.\n If all you want is libspotify for Ruby, you should probably use at
|
74
74
|
Hallon\n instead: https://rubygems.org/gems/hallon\n"
|