web_translate_it 2.7.4 → 2.7.5

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: 2cf961665ffe5011712709893326b9ec48a791ee3849bd06640dac2df96a5c70
4
- data.tar.gz: ccfc17ed10d527814aba5a60b7452994a8b98465c5bea523a777834160105670
3
+ metadata.gz: 9d28dda70be5e71eeb61a269cceedb3f1406640b4e5526bed6f33d239d1b8527
4
+ data.tar.gz: 670de23342b5adbbe052373c918a5b757438d42051c51bd9e7b2dc97c23e78bf
5
5
  SHA512:
6
- metadata.gz: c4f2ae022af39cd0e30f4a1daa82f4e18d4134344f90e99f8dca0a16a4800a28898ac4bec67bb43358fc8c09bf5cfbeb30bd00ea19d38d37babc6fae2da041b0
7
- data.tar.gz: 403d582ec95fc17fb8f464bfc046552fac0f0a572feb0e59bfd27687f8680978a662751fa1f57f6ccf4964924c446ebc59fb50a8857b1b404aba4478ac2ea212
6
+ metadata.gz: 4a7cc04fe367c0b4541b48f1dc08ecda4deedc9891dd4f92f1622060aac4f46cbe6cd0867791f319893e69f2ad50c604684a70c1071168f6b28fbe7d99631315
7
+ data.tar.gz: 22800578ddbe6ccadd5231ede8fc6bdb9a743692eb17235eff3174c3c1d241a5cc1bcf7bf95096572ced08ac71308ed333625b08a700b657457380489b7f82ea
data/history.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## Version 2.7.5 / 2022-11-17
2
+
3
+ * wti now works with `multipart_post = 2.0.0` AND `multipart_post >= 2.2.0`.
4
+
1
5
  ## Version 2.7.4 / 2022-11-01
2
6
 
3
7
  * Remove `low-priority` argument as in `wti push --low-priority` and `wti add --low-priority`. All the file imports in WebTranslateIt.com are now top priority.
@@ -147,7 +147,7 @@ module WebTranslateIt
147
147
  display.push "#{StringUtil.checksumify(local_checksum.to_s)}..[ ]"
148
148
  if File.exist?(file_path)
149
149
  File.open(file_path) do |file|
150
- request = Net::HTTP::Post::Multipart.new(api_url_for_create, {'name' => file_path, 'file' => Multipart::Post::UploadIO.new(file, 'text/plain', file.path)})
150
+ request = ::Net::HTTP::Post::Multipart.new(api_url_for_create, {'name' => file_path, 'file' => Multipart::Post::UploadIO.new(file, 'text/plain', file.path)})
151
151
  WebTranslateIt::Util.add_fields(request)
152
152
  display.push Util.handle_response(http_connection.request(request))
153
153
  puts ArrayUtil.to_columns(display)
@@ -1,5 +1,4 @@
1
1
  require 'fileutils'
2
- require 'multipart/post'
3
2
  require 'yaml'
4
3
  require 'erb'
5
4
  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.4
4
+ version: 2.7.5
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-11-01 00:00:00.000000000 Z
11
+ date: 2022-11-17 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.23
117
+ rubygems_version: 3.3.21
118
118
  signing_key:
119
119
  specification_version: 4
120
120
  summary: A CLI tool to sync locale files with WebTranslateIt.com.