Lokalise APIv2 Ruby SDK

Ruby interface for the Lokalise APIv2 that represents returned data as Ruby objects.

View the Project on GitHub lokalise/ruby-lokalise-api




Contributing

  1. Fork the repository.
  2. Create a topic branch.
  3. Implement your feature or bug fix.
  4. Don’t forget to add specs and make sure they pass by running rspec ..
  5. Make sure your code complies with the style guide by running rubocop. rubocop -a can automatically fix most issues for you.
  6. If necessary, add documentation for your feature or bug fix.
  7. Commit and push your changes.
  8. Submit a pull request.

Running tests

  1. Copypaste .env.example file as .env. Put your API token inside. The .env file is excluded from version control so your token is safe. All in all, we use pre-recorded VCR cassettes, so the actual API requests won’t be sent. However, providing at least some token is required.
  2. Run rspec .. Observe test results and code coverage.

Previewing the docs locally

  1. Clone the repo.
  2. cd docs
  3. bundle exec jekyll serve --baseurl=''.
  4. Navigate to http://localhost:4000 and observe the docs.