Skip to content

Latest commit

 

History

History
75 lines (50 loc) · 1.15 KB

CONTRIBUTING.md

File metadata and controls

75 lines (50 loc) · 1.15 KB

Contributing to lantern-ruby

Prerequisites

  • Ruby: Version 3.1 or higher
  • Bundler: Version 2.2 or higher
  • Postgres database with Lantern extensions installed

Installation

  1. 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
  2. Install dependencies.

    bundle config set path 'vendor/bundle'
    bundle install
  3. Set the environment variables in a .env file or in the environment.

    DATABASE_URL= # Required
    COHERE_TOKEN=
    OPENAI_TOKEN=

Style guide

To check for linting errors:

bundle exec rubocop

To automatically fix linting errors:

bundle exec rubocop -a

Running tests

Run all tests:

bundle exec rake test

Run a specific test:

bundle exec rake test TEST=test/path/to/your_test_file.rb

Building the gem

To build the gem:

bundle exec rake build

Release

To release a new version, update the version number in version.rb, and then run:

bundle exec rake release