Skip to content

Commit

Permalink
Merge pull request #5 from lokalise/feature/SRUBY-1_background_proces…
Browse files Browse the repository at this point in the history
…s_support

SRUBY-1 Background process support
  • Loading branch information
bodrovis authored May 18, 2020
2 parents d0826c3 + f20accf commit d8bb794
Show file tree
Hide file tree
Showing 80 changed files with 1,322 additions and 341 deletions.
4 changes: 2 additions & 2 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@
8. [Submit a pull request.][pr]

[fork]: http://help.github.com/fork-a-repo/
[branch]: http://learn.github.com/p/branching.html
[pr]: http://help.github.com/send-pull-requests/
[branch]: https://help.github.com/en/github/collaborating-with-issues-and-pull-requests/about-branches
[pr]: https://help.github.com/en/github/collaborating-with-issues-and-pull-requests/about-pull-requests
14 changes: 6 additions & 8 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ require:
- rubocop-rspec

AllCops:
TargetRubyVersion: 2.4
TargetRubyVersion: 2.6
NewCops: enable

Layout/SpaceInsideHashLiteralBraces:
EnforcedStyle: no_space
Expand All @@ -25,7 +26,10 @@ Metrics/MethodLength:
Max: 10

Metrics/ModuleLength:
Max: 100
Max: 120

Metrics/ClassLength:
Max: 120

Metrics/ParameterLists:
Max: 5
Expand Down Expand Up @@ -79,9 +83,3 @@ RSpec/FilePath:

RSpec/MessageSpies:
EnforcedStyle: receive

Lint/RaiseException:
Enabled: true

Lint/StructNewOverride:
Enabled: true
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
language: ruby

rvm:
- 2.4.10
- 2.5.8
- 2.6.6
- 2.7.1
Expand Down
23 changes: 21 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,27 @@
# Changelog

## Unreleased

## 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)

Expand Down
Loading

0 comments on commit d8bb794

Please sign in to comment.