lokalise_rails 7.0.1 → 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: 7d0c8f216f82d224538b9d7e0931f99dff27067c21209a4652f210fc3e4a6dd8
4
- data.tar.gz: bcf43f559a4b2a81b307498641af169ee916e634fe6f0b44ae2e1816df7ba86d
3
+ metadata.gz: 5acb05fa54c4ff1e243de21c053b5154e307709e1bd569fa3dbb363e147e1443
4
+ data.tar.gz: 84714f2c2250a8d81a5671cc6bfaa6735151151bf5c5f6b38ae7f6e13579a3e3
5
5
  SHA512:
6
- metadata.gz: fe926df4a57c93bb325802a7767dfb978e7bddcdd652bff24be9e889e42bff478031d0561bf84cb0f3c2541aa3da87ad8c5d5ad95593761c3bb647ae66eb5670
7
- data.tar.gz: 7e11ac6f31780fc01a1109101ab70fe8a42e6377270198e58050e11af6c98a6e285c4ce79f3c53bb2d1edfd3264ea64d26281e86fda5b4a07fc3b6963f8b0925
6
+ metadata.gz: a457a3fcf4abe0783029f6458a4139b1d24c073b7480f59170f41eaf52fe9989735ffdb4f67ee0a829f29dfa65ca296debb8a32029079816dbfc9621fc8ef662
7
+ data.tar.gz: eb21427d268d3ce61d7c87184f07bc2347174d4a9d54f556b64b87a284309b1d6a91324ade166d0abb6fa8db425e788e0add91b29cee3dc05e1f8d4aaf791c33
data/CHANGELOG.md CHANGED
@@ -1,6 +1,23 @@
1
1
  # Changelog
2
2
 
3
- ## 7.0.1
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
+
15
+ ## 7.1.0 (12-Nov-2024)
16
+
17
+ * Test with Rails 8
18
+ * Various updates
19
+
20
+ ## 7.0.1 (10-May-2024)
4
21
 
5
22
  * Update documentation, minor code tweaks
6
23
 
data/Gemfile CHANGED
@@ -6,13 +6,13 @@ gemspec
6
6
 
7
7
  group :test do
8
8
  gem 'dotenv', '~> 3.0'
9
- gem 'rails', '~> 7.1'
9
+ gem 'rails', '8.0.0'
10
10
  gem 'rake', '~> 13.0'
11
11
  gem 'rspec', '~> 3.6'
12
12
  gem 'rubocop', '~> 1.0'
13
13
  gem 'rubocop-performance', '~> 1.5'
14
14
  gem 'rubocop-rake', '~> 0.6'
15
- gem 'rubocop-rspec', '~> 2.6'
15
+ gem 'rubocop-rspec', '~> 3.0'
16
16
  gem 'simplecov', '~> 0.22'
17
17
  gem 'simplecov-lcov', '~> 0.8'
18
18
  gem 'tzinfo-data', platforms: %i[mingw mswin x64_mingw jruby]
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).
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- if defined?(LokaliseRails) && defined?(LokaliseRails::GlobalConfig)
3
+ if defined?(LokaliseRails::GlobalConfig)
4
4
  LokaliseRails::GlobalConfig.config do |c|
5
5
  # These are mandatory options that you must set before running rake tasks:
6
6
  # c.api_token = ENV['LOKALISE_API_TOKEN']
@@ -13,7 +13,7 @@ if defined?(LokaliseRails) && 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.0.1'
4
+ VERSION = '8.0.0'
5
5
  end
@@ -14,7 +14,7 @@ Gem::Specification.new do |spec|
14
14
  spec.platform = Gem::Platform::RUBY
15
15
  spec.required_ruby_version = '>= 3.0'
16
16
 
17
- spec.files = Dir['README.md', 'LICENSE',
17
+ spec.files = Dir['README.md', 'LICENSE.md',
18
18
  'CHANGELOG.md', 'lib/**/*.rb',
19
19
  'lib/**/*.rake',
20
20
  'lokalise_rails.gemspec', '.github/*.md',
@@ -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.0.1
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-05-10 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
@@ -52,7 +52,7 @@ files:
52
52
  - ".github/PULL_REQUEST_TEMPLATE.md"
53
53
  - CHANGELOG.md
54
54
  - Gemfile
55
- - LICENSE
55
+ - LICENSE.md
56
56
  - README.md
57
57
  - Rakefile
58
58
  - lib/generators/lokalise_rails/install_generator.rb
@@ -84,7 +84,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
84
84
  - !ruby/object:Gem::Version
85
85
  version: '0'
86
86
  requirements: []
87
- rubygems_version: 3.5.10
87
+ rubygems_version: 3.5.23
88
88
  signing_key:
89
89
  specification_version: 4
90
90
  summary: Lokalise integration for Ruby on Rails
File without changes