# Changelog ## 3.0.0 (14-May-20) * **Breaking change** Uploading files in the background is now a preferred method, and the only method in version 3. Synchronous uploading is still supported and allowed in version 2 but will be removed in the near future. Find more info [in the docs](https://github.com/lokalise/ruby-lokalise-api#upload-translation-file). * Added support for [background import](https://github.com/lokalise/ruby-lokalise-api#upload-translation-file). Background import will return a queued process with the status of the job: ```ruby queued_process = @client.upload_file project_id, data: 'Base-64 encoded data... ZnI6DQogI...', filename: 'my_file.yml', lang_iso: 'en' queued_process.status # => 'queued' # ...after some time... queued_process = queued_process.reload_data queued_process.status # => 'finished' ``` * Added support for [`QueuedProcess` endpoint](https://app.lokalise.com/api2docs/curl/#resource-queued-processes) * Many resources now respond to the `reload_data` method which fetches new data from the API * Various code improvements * Test against more recent Rubies * Fixed documentation links in code comments ## 2.10.0 (28-Feb-20) * Added methods to [regenerate webhook secret](https://lokalise.com/api2docs/curl/#transition-regenerate-a-webhook-secret-patch): + `@client.regenerate_webhook_secret(project_id, webhook_id)` + `webhook.regenerate_secret` * API base URL is now `https://api.lokalise.com/api2/` instead of `https://api.lokalise.co/api2/` ## 2.9.0.1 (21-Jan-20) * Make JSON dependency version less strict * Test against Ruby 2.7.0 ## 2.9.0 (05-Jan-20) * Fixed a couple of bugs * Updated Faraday to version 1 ## 2.8.0 (13-Nov-19) * Added methods to [merge branches](https://lokalise.com/api2docs/curl/#transition-merge-a-branch-post): + `branch.merge params` + `client.merge_branch project_id, branch_id, params` ## 2.7.0 (30-Oct-19) * Added [`Branch` endpoint](https://lokalise.co/api2docs/curl/#resource-branches) ## 2.6.1 (27-Sep-19) * Update dependencies * Update tests for the latest Faraday (0.16) ## 2.6.0 (21-Aug-19) * Added [`Webhook` endpoint](https://lokalise.co/api2docs/curl/#resource-webhooks) (thanks to [@snkashis](https://github.com/snkashis) for help!) ## 2.5.0 (01-Aug-19) * Added `:timeout` and `:open_timeout` options for the client [to customize request timeouts](https://github.com/lokalise/ruby-lokalise-api#setting-timeouts) * [Added explanations](https://github.com/lokalise/ruby-lokalise-api#choosing-adapter) on how to change a default adapter ## 2.4.0 (31-Jul-19) * Remove MultiJson dependency and allow to use a [custom JSON parser](https://github.com/lokalise/ruby-lokalise-api#customizing-json-parser) ## 2.3.0 (17-Jul-19) * Incorporated latest API changes * Added support for [`TranslationStatus` endpoint](https://lokalise.co/api2docs/curl/#resource-translation-statuses) ## 2.2.0 (19-May-19) * Added support for [`TeamUserGroup` endpoint](https://lokalise.co/api2docs/curl/#resource-team-user-groups) * Enhancements to method chaining ## 2.1.1 (17-May-19) * Incorporate API updates (new attributes, mostly creation and update timestamps) * Remove trailing slash from request URLs * Updated cassettes and target Rubies (for Travis) ## 2.1.0 (19-Mar-19) * Add support for `Order`, `TranslationProvider`, and `PaymentCard` endpoints ## 2.0.1 (21-Feb-19) * Bump dependencies * Use more direct approach to sending `DELETE` requests with bodies. It seems like Faraday team [decided to abandon the idea of writing delete request one-liners](https://github.com/lostisland/faraday/issues/693#issuecomment-466086832), so we'll stick with another approach ## 2.0.0 (14-Dec-18) * Major re-write of internal stuff * Introduce method chaining * Rename all `#delete` interface methods to `#destroy` ## 1.1.0 (11-Dec-18) * Added methods to work with pagination (`next_page?`, `last_page?`, `prev_page?`, `first_page?`, `next_page`, `prev_page`) ## 1.0.1 (10-Dec-18) * Fixed incorrect build ## 1.0.0 (10-Dec-18) * Initial release