Skip to content
This repository has been archived by the owner on Dec 9, 2022. It is now read-only.

Commit

Permalink
Fix Spotify::Util.enum_value! in JRuby (see jruby/jruby#1954)
Browse files Browse the repository at this point in the history
  • Loading branch information
Burgestrand committed Sep 6, 2014
1 parent cce6272 commit af15f7b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/spotify.rb
Expand Up @@ -2,6 +2,7 @@
require 'ffi'
require 'spotify/monkey_patches/ffi_pointer'
require 'spotify/monkey_patches/ffi_buffer'
require 'spotify/monkey_patches/ffi_enums'

require 'libspotify'
require 'performer'
Expand Down
4 changes: 4 additions & 0 deletions lib/spotify/monkey_patches/ffi_enums.rb
@@ -0,0 +1,4 @@
# Fix for https://github.com/jruby/jruby/issues/1954
unless FFI::Enums.method_defined?(:default)
FFI::Enums.send(:attr_accessor, :default)
end

0 comments on commit af15f7b

Please sign in to comment.