Skip to content

Latest commit

 

History

History
72 lines (49 loc) · 1.08 KB

DEVELOPER.md

File metadata and controls

72 lines (49 loc) · 1.08 KB

Run the lintr

Modify .rubocop_todo.yml as you fix issues. Generate a new config file with rubocop --auto-gen-config as needed.

docker run -it -v $(pwd):/source --entrypoint bash ruby:3.3-slim
apt-get update
apt-get install -y gcc make

gem install rubocop
cd /source
rubocop

Run tests locally

docker run -it -v $(pwd):/source --entrypoint bash ruby:3.3-slim
apt-get update
apt-get install -y gcc make

gem install rspec
cd /source
bundle install
rspec tests

Run a single example

docker run -it -v $(pwd):/source --entrypoint bash ruby:3.3-slim

cd /source
bundle install
gem build rosette_api.gemspec
gem install rosette_api-*.gem
cd examples

ruby ping.rb ${API_KEY}

Run all examples

docker run -it -v $(pwd):/source --entrypoint bash ruby:3.3-slim

cd /source
bundle install
gem build rosette_api.gemspec
gem install rosette_api-*.gem
cd examples

for example in $(ls *.rb); do ruby ${example} ${API_KEY}; done

Build the gem

gem build rosette_api.gemspec

Install the gem

gem install rosette_api-*.gem