web_translate_it 3.0.1 → 3.1.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: e22896a712b614732ce3add4277542b2856c090a431b3e5f10de10b4856c0f36
4
- data.tar.gz: 139d2226850e033244060ef4691d21126e61a6c1e5de742d3fa91c689cc65e22
3
+ metadata.gz: a410c5520af87fa8446a857f61051afda3c9e9818828ed011b0d1562b4579fd9
4
+ data.tar.gz: 2e7d71a0e9ffa71705da20139be1bb6be24981b32d724b9f0880bdca5db14c36
5
5
  SHA512:
6
- metadata.gz: 864cbddc7beaf93d1812501a8e8acb57d1247c92472f549db3e49512a65da14f806139f27d1236eecfdf914f9b8b484c57b2a869054a853c9b838099461a19ef
7
- data.tar.gz: 758c10b05573c64e7f45e5f975c647d435ad1b241c316ef944f1278d3b3c7ce861e960096096a39b3e07ebfefa23a899d6ce7b6b35c486f5a9c49b3c7603980a
6
+ metadata.gz: 0c5812f7cea5a567985fe983c4cf175e1484a230bd0e4e1a3dfc2c88857cfbc423182dd8356fb3fc3515004f14e0dd4c7e3c90f6e1af8c56f6b52e945c5c7cd7
7
+ data.tar.gz: 9e117a6ee91369ffadf1d0a89e4aa5f7a1aceb329b87426dbf188bffee419dbc37fcb3c3869cdc0a5ef434bcdf2b6a1e1471454389957bff4aa3b9abed0497dc
data/history.md CHANGED
@@ -1,3 +1,16 @@
1
+ ## Version 3.1.0 / 2024-09-19
2
+
3
+ * Remove support for ruby 2.7. Minimum supported ruby version is 3.0. #328
4
+ * Dependency updates.
5
+
6
+ ## Version 3.0.2 / 2024-01-08
7
+
8
+ * Fix: Limit the amount of threads used. #294
9
+
10
+ ## Version 3.0.1 / 2023-11-30
11
+
12
+ Fix frozen string literal bug happening when pulling long files names needing truncation. #288
13
+
1
14
  ## Version 3.0.0 / 2023-09-20
2
15
 
3
16
  * Remove dependency on `multipart_post`. #255
@@ -60,7 +60,7 @@ module WebTranslateIt
60
60
  time = Time.now
61
61
  threads = []
62
62
  n_threads = [(files.size.to_f / 3).ceil, 10].min
63
- files.each_slice(n_threads).each do |file_array|
63
+ files.each_slice((files.size.to_f / n_threads).round).each do |file_array|
64
64
  next if file_array.empty?
65
65
 
66
66
  threads << Thread.new(file_array) do |f_array|
data/readme.md CHANGED
@@ -25,12 +25,12 @@ wti lets you easily sync your language files with [WebTranslateIt.com](https://w
25
25
 
26
26
  ## Installation
27
27
 
28
- You will also need ruby to run `wti`. We require ruby version 2.6 or newer. On Linux or a Mac, it’s already installed. Install [RubyInstaller](http://rubyinstaller.org/) if you’re using Windows. [See detailed installation instructions for Windows users](https://github.com/webtranslateit/webtranslateit/wiki/Install-wti-on-Windows).
28
+ You will also need ruby to run `wti`. We require ruby version 3.0 or newer. On Linux or a Mac, it’s already installed. Install [RubyInstaller](http://rubyinstaller.org/) if you’re using Windows. [See detailed installation instructions for Windows users](https://github.com/webtranslateit/webtranslateit/wiki/Install-wti-on-Windows).
29
29
 
30
30
  ``` bash
31
31
  $ gem install web_translate_it
32
- Fetching: web_translate_it-2.6.4.gem (100%)
33
- Successfully installed web_translate_it-2.6.4
32
+ Fetching: web_translate_it-3.0.2.gem (100%)
33
+ Successfully installed web_translate_it-3.0.2
34
34
  1 gem installed
35
35
  ```
36
36
 
@@ -38,7 +38,7 @@ At this point you should have the `wti` executable working:
38
38
 
39
39
  ``` bash
40
40
  $ wti -v
41
- wti version 2.6.4
41
+ wti version 3.0.2
42
42
  ```
43
43
 
44
44
  We also provide `wti` as a Docker packages. [See our packages and instructions to install](https://github.com/webtranslateit/wti-docker/pkgs/container/wti-docker).
@@ -272,4 +272,4 @@ fr: 100% translated, 100% completed.
272
272
 
273
273
  # License
274
274
 
275
- Copyright (c) 2009-2023 [WebTranslateIt Software S.L](https://webtranslateit.com), released under the MIT License.
275
+ Copyright (c) 2009-2024 [WebTranslateIt Software S.L](https://webtranslateit.com), released under the MIT License.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: web_translate_it
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.1
4
+ version: 3.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Edouard Briere
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-11-30 00:00:00.000000000 Z
11
+ date: 2024-09-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: multi_json
@@ -92,14 +92,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
92
92
  requirements:
93
93
  - - ">="
94
94
  - !ruby/object:Gem::Version
95
- version: '2.7'
95
+ version: '3.0'
96
96
  required_rubygems_version: !ruby/object:Gem::Requirement
97
97
  requirements:
98
98
  - - ">="
99
99
  - !ruby/object:Gem::Version
100
100
  version: '0'
101
101
  requirements: []
102
- rubygems_version: 3.4.22
102
+ rubygems_version: 3.5.19
103
103
  signing_key:
104
104
  specification_version: 4
105
105
  summary: A CLI tool to sync locale files with WebTranslateIt.com.