web_translate_it 3.0.1 → 3.0.2

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: 763173ab98c37816b9d03746034956391be47e7fc7520b329dc13e937e9cc0e2
4
+ data.tar.gz: d0c1deb5d3a520c5dd7a6bef110b6c0df01a2974c44f0ccadf396106d699cd29
5
5
  SHA512:
6
- metadata.gz: 864cbddc7beaf93d1812501a8e8acb57d1247c92472f549db3e49512a65da14f806139f27d1236eecfdf914f9b8b484c57b2a869054a853c9b838099461a19ef
7
- data.tar.gz: 758c10b05573c64e7f45e5f975c647d435ad1b241c316ef944f1278d3b3c7ce861e960096096a39b3e07ebfefa23a899d6ce7b6b35c486f5a9c49b3c7603980a
6
+ metadata.gz: c470dc6a13ce0dcb634c659db02eb0f9cedcb8f3951eaeed80be8361fd4320e77f4ca207d05180ef1304533fd86762e633e343315e34b03042f4ff80b24fdaf7
7
+ data.tar.gz: daac9b145567fa4123f3e1c3bd36319b7265fa4fc9814a60bd3144bda17fda7d0593d59b59ed3b1b2383fcc47d8e959a0d0ba46ff13a61484d500678b62e2886
data/history.md CHANGED
@@ -1,3 +1,11 @@
1
+ ## Version 3.0.2 / 2024-01-08
2
+
3
+ * Fix: Limit the amount of threads used. #294
4
+
5
+ ## Version 3.0.1 / 2023-11-30
6
+
7
+ Fix frozen string literal bug happening when pulling long files names needing truncation. #288
8
+
1
9
  ## Version 3.0.0 / 2023-09-20
2
10
 
3
11
  * 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|
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.0.2
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-01-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: multi_json
@@ -99,7 +99,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
99
99
  - !ruby/object:Gem::Version
100
100
  version: '0'
101
101
  requirements: []
102
- rubygems_version: 3.4.22
102
+ rubygems_version: 3.5.4
103
103
  signing_key:
104
104
  specification_version: 4
105
105
  summary: A CLI tool to sync locale files with WebTranslateIt.com.