Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does not work with ruby 3.1.1 #21

Open
mrkamel opened this issue Feb 13, 2023 · 1 comment
Open

Does not work with ruby 3.1.1 #21

mrkamel opened this issue Feb 13, 2023 · 1 comment

Comments

@mrkamel
Copy link

mrkamel commented Feb 13, 2023

It seems leveldb doesnt work with ruby 3.1.1

irb(main):001:0> RUBY_VERSION
=> "3.1.1"
irb(main):001:0> require "leveldb"
/usr/local/bundle/gems/fiddler-rb-0.1.2/lib/fiddler.rb:51:in `initialize': wrong number of arguments (given 5, expected 3..4) (ArgumentError)
	from /usr/local/bundle/gems/fiddler-rb-0.1.2/lib/fiddler.rb:51:in `new'
	from /usr/local/bundle/gems/fiddler-rb-0.1.2/lib/fiddler.rb:51:in `cdef'
	from /usr/local/bundle/gems/leveldb-0.1.9/lib/native.rb:12:in `<module:Native>'
	from /usr/local/bundle/gems/leveldb-0.1.9/lib/native.rb:4:in `<module:LevelDB>'
	from /usr/local/bundle/gems/leveldb-0.1.9/lib/native.rb:3:in `<top (required)>'
	from <internal:/usr/local/lib/ruby/site_ruby/3.1.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
	from <internal:/usr/local/lib/ruby/site_ruby/3.1.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
	from /usr/local/bundle/gems/leveldb-0.1.9/lib/leveldb.rb:1:in `<top (required)>'

running on alpine3.15 with leveldb-dev and snappy-dev installed

@bo-tato
Copy link

bo-tato commented Aug 17, 2023

it's from the change in ruby3 in handling of keyword arguments, I made tiny change here and it's working

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants