Examples can't load library

When I download the gem source and try to run an example from the
root, I get an error (paths slightly elided):

~/Code/ruby/gems/ratatui_ruby/lib/ratatui_ruby.rb:38:in `require_relative': cannot load such file -- ~/Code/ruby/gems/ratatui_ruby/lib/ratatui_ruby/ratatui_ruby (LoadError)
        from ~/Code/ruby/gems/ratatui_ruby/lib/ratatui_ruby.rb:38:in `rescue in <top (required)>'
        from ~/Code/ruby/gems/ratatui_ruby/lib/ratatui_ruby.rb:34:in `<top (required)>'
        from <internal:~/.asdf/installs/ruby/3.2.2/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
        from <internal:~/.asdf/installs/ruby/3.2.2/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
        from examples/widget_box/app.rb:9:in `<main>'
<internal:~/.asdf/installs/ruby/3.2.2/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:85:in `require': cannot load such file -- ratatui_ruby/ratatui_ruby (LoadError)
        from <internal:~/.asdf/installs/ruby/3.2.2/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
        from ~/Code/ruby/gems/ratatui_ruby/lib/ratatui_ruby.rb:35:in `<top (required)>'
        from <internal:~/.asdf/installs/ruby/3.2.2/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
        from <internal:~/.asdf/installs/ruby/3.2.2/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
        from examples/widget_box/app.rb:9:in `<main>'

I admit I don't fully understand how require works, but it seems that
lib/ratatui_ruby.rb:35,38 is trying to require
lib/ratatui_ruby/ratatui_ruby.rb which does not exist.

Really excited that this library exists by the way! Thank you for
making it.

Really excited that this library exists by the way! Thank you for making
it.

Edward (he/him)

When I download the gem source and try to run an example from the root, I get an error (paths slightly elided):

~/Code/ruby/gems/ratatui_ruby/lib/ratatui_ruby.rb:38:in `require_relative': cannot load such file --

Could you please answer a few questions so I can help?

1. Where did you download it from?
    (e.g. rubygems.org, sr.ht, github.com)

2. How did you download it?
    (e.g. cloned the git repository, downloaded and extracted
    a .gem file, downloaded and extracted a zip file)

3. Does your copy of the code have a bin/ directory, and a
    bin/setup file? If so, did you run bin/setup before running
    the example file?

Really excited that this library exists by the way! Thank you for making it.

And I'm really excited I'm not the only one who wants to use
It! Thank you for reaching out.

Thanks for the feedback. I got it working by running bundler.

1. downloaded from sr.ht
2. git clone https://git.sr.ht/~kerrick/ratatui_ruby
3. it does have a bin directory but I didn't see bin/setup. I don't
have mise installed but I saw that bin/setup runs bundler, so I did
that manually.

And now demos work. Thanks again,

Edward (he/him)

Thanks for the feedback. I got it working by running bundler.

I'm glad to hear it!

3. it does have a bin directory but I didn't see bin/setup. I don't have mise installed but I saw that bin/setup runs bundler, so I did that manually.

I'll make a todo to investigate why git clones may
not be including the bin/setup script.

And now demos work. Thanks again,

Please do let me know if you have any more questions
or need help. The project is very new, so it's a bit
lacking in tutorials and documentation.

Oh, to be clear, the script _is_ there, but I did not notice it. If
it's helpful, the convention I see the most is a contributing doc (e.g.
CONTRIBUTING.md) or something in the readme that has instructions on
how to get set up locally.

Edward (he/him)