web_translate_it 2.7.1 → 2.7.3

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: 269b89b988031ffdaa8bb761411e0e93f12be4e415b48c4b6877d104ee241f06
4
- data.tar.gz: 51706b4f7ed1d249d67050f32fd81de7c6ede08cf763ab7faaa33b5619aa9c9e
3
+ metadata.gz: 92adb002b0df15870368f976f18aaaa8f360b456517ea5d9e7448c44bc82e455
4
+ data.tar.gz: c2511b8b3f37936d476e2af8f0e23f5dfb60831466f7dad70de9d587fa174a3e
5
5
  SHA512:
6
- metadata.gz: d36a9194b73e6b9fe21c720874c2e86308944b909901cdcbb72e2dd7978dd05f42d40bfa2a0dfbdd11439781b0bed0b069a72b72eb4f7089fd42398e1151c7a3
7
- data.tar.gz: aa9e14cace635cc65b209be7d3e25a969d303ee79b47f64aebfd2572ba47a3531190f70286ca046e90c6210f20ecd7bca45c8c41a47a390dfcb2fd937d1a36bb
6
+ metadata.gz: 5f2085374587cbe5a78ded34b5675ee56d26658bd16529149268952fa93c606b39008d6bd73f96a77b7e5eb21c7058ac8ce864fb17d5dce9e022c856f2f162e5
7
+ data.tar.gz: 40df440171537d90c6cf54a7ae3499b042a4727f28150c7817f9b24c814844b5e3e03177019d8140952bfd814cf7aa55df542b4b6bd665837468257daf55e4e7
data/history.md CHANGED
@@ -1,3 +1,11 @@
1
+ ## Version 2.7.3 / 2022-10-28
2
+
3
+ * Relax dependency on `multipart_post`. Also made sure that wti works with `multipart_post >= 2.0.0 and < 2.3`.
4
+
5
+ ## Version 2.7.2 / 2022-10-14
6
+
7
+ * Specify a minimum version for dependency `multipart_post`.
8
+
1
9
  ## Version 2.7.1 / 2022-10-14
2
10
 
3
11
  * Potential fix potential for issue `uninitialized constant WebTranslateIt::TranslationFile::Multipart`.
@@ -96,7 +96,7 @@ module WebTranslateIt
96
96
  if File.exist?(file_path)
97
97
  if force || (remote_checksum != local_checksum)
98
98
  File.open(file_path) do |file|
99
- params = {'file' => Multipart::Post::UploadIO.new(file, 'text/plain', file.path), 'merge' => merge, 'ignore_missing' => ignore_missing, 'label' => label, 'low_priority' => low_priority, 'minor_changes' => minor_changes}
99
+ params = {'file' => ::Multipart::Post::UploadIO.new(file, 'text/plain', file.path), 'merge' => merge, 'ignore_missing' => ignore_missing, 'label' => label, 'low_priority' => low_priority, 'minor_changes' => minor_changes}
100
100
  params['name'] = destination_path unless destination_path.nil?
101
101
  params['rename_others'] = rename_others
102
102
  request = Net::HTTP::Put::Multipart.new(api_url, params)
@@ -1,4 +1,5 @@
1
1
  require 'fileutils'
2
+ require 'multipart/post'
2
3
  require 'yaml'
3
4
  require 'erb'
4
5
  require 'net/http'
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: 2.7.1
4
+ version: 2.7.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Edouard Briere
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-10-14 00:00:00.000000000 Z
11
+ date: 2022-10-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: multi_json
@@ -114,7 +114,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
114
114
  - !ruby/object:Gem::Version
115
115
  version: '0'
116
116
  requirements: []
117
- rubygems_version: 3.3.21
117
+ rubygems_version: 3.3.23
118
118
  signing_key:
119
119
  specification_version: 4
120
120
  summary: A CLI tool to sync locale files with WebTranslateIt.com.