Burgestrand/libspotify-ruby — Issue #5: FFI fails due to libspotify 10 deprecation
Author: mblbruce
Created: 2011-11-20 13:42:03+00:00
State: open

First of all, thanks for making this gem (and Hallon). I'm sure they will prove excellent as soon as I get them running =o)

When trying out your example on http://burgestrand.se/articles/hallon-delicious-ruby-bindings-to-libspotify.html, FFI fails with:

/opt/local/lib/ruby1.9/gems/1.9.1/gems/ffi-1.0.11/lib/ffi/library.rb:249:in `attach_function': Function 'sp_session_num_friends' not found in [/Library/Frameworks/libspotify.framework/libspotify] (FFI::NotFoundError)
from /opt/local/lib/ruby1.9/gems/1.9.1/gems/spotify-9.0.1/lib/spotify.rb:245:in `'

It seems that Spotify has deprecated the functionality to list friends, and as of libspotify 10 it is gone altogether from the lib (details at http://developer.spotify.com/blog/archives/2011/11/01/libspotify-10-is-available/). I first inspected the dylib, then checked the API docs, then found that Spotify blog post... Gone with the wind. And I can't find any place to download libspotify 9, so I can't use your bindings at all right now. I was wondering if you'd like to remove the deprecated stuff from libspotify-ruby (and Hallon if applicable)? Thanks again!