- Ruby: Version 3.1 or higher
- Bundler: Version 2.2 or higher
- Postgres database with Lantern extensions installed
-
Fork this repository to your own GitHub account and then clone it to your local device.
git clone https://github.com/your-username/lantern-ruby.git cd lantern-ruby
-
Install dependencies.
bundle config set path 'vendor/bundle' bundle install
-
Set the environment variables in a
.env
file or in the environment.DATABASE_URL= # Required COHERE_TOKEN= OPENAI_TOKEN=
To check for linting errors:
bundle exec rubocop
To automatically fix linting errors:
bundle exec rubocop -a
Run all tests:
bundle exec rake test
Run a specific test:
bundle exec rake test TEST=test/path/to/your_test_file.rb
To build the gem:
bundle exec rake build
To release a new version, update the version number in version.rb
, and then run:
bundle exec rake release