So you want to contribute code to the OpenSearch Ruby client? Excellent! We're glad you're here. Here's what you need to do.
Fork opensearch-project/opensearch-ruby and clone locally, e.g. git clone https://github.com/[your username]/opensearch-ruby.git
.
Install ruby to continue with the development.
Download and install Docker, required for running integration tests for the repo.
To build and test the ruby-client:
rake bundle:clean
rake bundle:install
bundle exec rake test:unit
To run integration tests for the ruby-client, start an OpenSearch cluster using docker:
cd /opensearch-ruby/opensearch-ruby
export CLUSTER_VERSION=latest
export PORT=9200
export DISABLE_SECURITY=true
./../.github/actions/opensearch/run.sh
And run:
bundle exec rake test:integration
See CONTRIBUTING.