web_translate_it 2.7.2 → 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: c59f3a4a6ea7997d54567b00007c0606e07b250473678f2fc2a14bf2b73c8cc8
4
- data.tar.gz: 3dd474c5c9e05312122fcd6817478068f11bb5ea4e4fadb743a57b4ca8f24a83
3
+ metadata.gz: 92adb002b0df15870368f976f18aaaa8f360b456517ea5d9e7448c44bc82e455
4
+ data.tar.gz: c2511b8b3f37936d476e2af8f0e23f5dfb60831466f7dad70de9d587fa174a3e
5
5
  SHA512:
6
- metadata.gz: 69b6977f8438f0364261334b1cd1b0b26181b084113dbdd5573d95fe52f33f09a1c0043b7fcaf0f51ff28b8aa5c5728f275bd25726078611a825a6700784fd2a
7
- data.tar.gz: 4b687e74044b6884b3ee13c83e9eafb26d1aee6991d183882d5bfeaa0ae94930003f21db598d78469f910e491d0b16954949b037343e24052a6f78af50a3c859
6
+ metadata.gz: 5f2085374587cbe5a78ded34b5675ee56d26658bd16529149268952fa93c606b39008d6bd73f96a77b7e5eb21c7058ac8ce864fb17d5dce9e022c856f2f162e5
7
+ data.tar.gz: 40df440171537d90c6cf54a7ae3499b042a4727f28150c7817f9b24c814844b5e3e03177019d8140952bfd814cf7aa55df542b4b6bd665837468257daf55e4e7
data/history.md CHANGED
@@ -1,3 +1,7 @@
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
+
1
5
  ## Version 2.7.2 / 2022-10-14
2
6
 
3
7
  * Specify a minimum version for dependency `multipart_post`.
@@ -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.2
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
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '2.2'
33
+ version: '2.0'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '2.2'
40
+ version: '2.0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: optimist
43
43
  requirement: !ruby/object:Gem::Requirement