lokalise_rails 7.1.0 → 8.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: adc84e45664149969dc3b43785c69dcc4c1a25de7758c69e5919fee2a6c05ca6
4
- data.tar.gz: 9bc56d68d164f71817c01fa4c7ef7e9c32db55de2c36e1322554f768936ab9f4
3
+ metadata.gz: 5acb05fa54c4ff1e243de21c053b5154e307709e1bd569fa3dbb363e147e1443
4
+ data.tar.gz: 84714f2c2250a8d81a5671cc6bfaa6735151151bf5c5f6b38ae7f6e13579a3e3
5
5
  SHA512:
6
- metadata.gz: 075afa9c3de13cacf3b99066cd437fd34304ef85bcad5e016c9b7e41345d6f47d4fb3a55c34cbde60d95df59b2d1db22481c53c778276c1b736f733c4b20b255
7
- data.tar.gz: 52f74f3f052b3cb3ab01aba2f899fb6434dc8614683bcd9fcbaab3cbf5bcf55c88a78b76d6b910aa4c24415743259b6ecd9e8feb5bdde7e76fcd58896bf0faa9
6
+ metadata.gz: a457a3fcf4abe0783029f6458a4139b1d24c073b7480f59170f41eaf52fe9989735ffdb4f67ee0a829f29dfa65ca296debb8a32029079816dbfc9621fc8ef662
7
+ data.tar.gz: eb21427d268d3ce61d7c87184f07bc2347174d4a9d54f556b64b87a284309b1d6a91324ade166d0abb6fa8db425e788e0add91b29cee3dc05e1f8d4aaf791c33
data/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # Changelog
2
2
 
3
+ ## 8.0.0 (29-Nov-2024)
4
+
5
+ * **Breaking change**: rename the `timeouts` config option to `additional_client_opts`. It has the same usage but now enables you to set both client timeouts and override the API host to send requests to.
6
+
7
+ ```ruby
8
+ additional_client_opts: {
9
+ open_timeout: 100,
10
+ timeout: 500,
11
+ api_host: 'http://example.com/api'
12
+ }
13
+ ```
14
+
3
15
  ## 7.1.0 (12-Nov-2024)
4
16
 
5
17
  * Test with Rails 8
data/README.md CHANGED
@@ -105,7 +105,7 @@ exporter.export!
105
105
 
106
106
  ### Example: Multiple translation paths
107
107
 
108
- Creating custom import/export script can come in really handy if you have a non-standard setup, for instance, your translation files are stored in multiple directories (not only in the default `./config/locales`. To overcome this problem, create a custom Rake task and provide as many importers/exporters as needed:
108
+ Creating custom import/export script can come in really handy if you have a non-standard setup, for instance, your translation files are stored in multiple directories (not only in the default `./config/locales`). To overcome this problem, create a custom Rake task and provide as many importers/exporters as needed:
109
109
 
110
110
  ```ruby
111
111
  require 'rake'
@@ -146,7 +146,7 @@ LokaliseRails::GlobalConfig.config do |c|
146
146
  c.branch = 'develop'
147
147
 
148
148
  # Provide request timeouts for the Lokalise API client:
149
- c.timeouts = {open_timeout: 5, timeout: 5}
149
+ c.additional_client_opts = {open_timeout: 5, timeout: 5}
150
150
 
151
151
  # Provide maximum number of retries for file exporting:
152
152
  c.max_retries_export = 5
@@ -195,4 +195,4 @@ end
195
195
 
196
196
  ## License
197
197
 
198
- Copyright (c) [Ilya Krukowski](http://bodrovis.tech). License type is [MIT](https://github.com/bodrovis/lokalise_rails/blob/master/LICENSE).
198
+ Copyright (c) [Ilya Krukowski](http://bodrovis.tech). License type is [MIT](https://github.com/bodrovis/lokalise_rails/blob/master/LICENSE.md).
@@ -13,7 +13,7 @@ if defined?(LokaliseRails::GlobalConfig)
13
13
  # c.branch = ''
14
14
 
15
15
  # Provide request timeouts for the Lokalise API client:
16
- # c.timeouts = {open_timeout: nil, timeout: nil}
16
+ # c.additional_client_opts = {open_timeout: nil, timeout: nil}
17
17
 
18
18
  # Provide maximum number of retries for file exporting:
19
19
  # c.max_retries_export = 5
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module LokaliseRails
4
- VERSION = '7.1.0'
4
+ VERSION = '8.0.0'
5
5
  end
@@ -22,7 +22,7 @@ Gem::Specification.new do |spec|
22
22
  spec.extra_rdoc_files = ['README.md']
23
23
  spec.require_paths = ['lib']
24
24
 
25
- spec.add_dependency 'lokalise_manager', '~> 5.0'
25
+ spec.add_dependency 'lokalise_manager', '~> 6.0'
26
26
  spec.add_dependency 'zeitwerk', '~> 2.4'
27
27
 
28
28
  spec.metadata = {
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lokalise_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.1.0
4
+ version: 8.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ilya Krukowski
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-11-12 00:00:00.000000000 Z
11
+ date: 2024-11-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: lokalise_manager
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '5.0'
19
+ version: '6.0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '5.0'
26
+ version: '6.0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: zeitwerk
29
29
  requirement: !ruby/object:Gem::Requirement