Skip to content

Wrong example in the quickstart #16

@aemadrid-twx

Description

@aemadrid-twx

The example in the quickstart is wrong. trying to require turso_libsql fails:

irb(main):002> require 'turso_libsql'
/Users/some_user/.local/share/mise/installs/ruby/3.4.4/lib/ruby/3.4.0/bundled_gems.rb:82:in 'Kernel.require': cannot load such file -- turso_libsql (LoadError)
	from /Users/some_user/.local/share/mise/installs/ruby/3.4.4/lib/ruby/3.4.0/bundled_gems.rb:82:in 'block (2 levels) in Kernel#replace_require'
	from (irb):2:in '<main>'
	from <internal:kernel>:168:in 'Kernel#loop'
	from bin/console:8:in '<main>'

The example should actually be:

irb(main):002> require 'libsql'
=> true

The source problem is that the gem is named turso_libsql but the file to be loaded is libsql. That makes it possible to conflict with the libsql gem.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions