labimotion 2.1.0.rc16 → 2.1.0.rc17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/labimotion/libs/converter.rb +4 -2
- data/lib/labimotion/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2fe076ca6f32c99ea8a3fed2728d3f3f35e7d6ca48692a350ae07eddef5d7453
|
|
4
|
+
data.tar.gz: aa98768282d9e3962f35444d97ce4c8b4165b864cef4d5a8c49d0d5e7fdd0222
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c7422991be491176c1bfee14269f7f3a473d0c002a5339e74ca17a3fa5157441cca59d772c6792584c5ec9fdc6f729296b7bf8aabd5af37549fc88fc33c8913c
|
|
7
|
+
data.tar.gz: 8d3accbf6aa727559b7725bb99b14687f06a258c720732dc28278c8c305f1a0aaf48c1b828f81d55b6c96f04fab79de06b71726393bc602057e02dcb42f17c53
|
|
@@ -154,12 +154,13 @@ module Labimotion
|
|
|
154
154
|
ofile = Rails.root.join(data[:f], data[:a].filename)
|
|
155
155
|
FileUtils.cp(data[:a].attachment_url, ofile)
|
|
156
156
|
|
|
157
|
-
File.open(ofile, '
|
|
157
|
+
File.open(ofile, 'rb') do |f|
|
|
158
158
|
body = { file: f }
|
|
159
159
|
response = HTTParty.post(
|
|
160
160
|
uri('conversions'),
|
|
161
161
|
basic_auth: auth,
|
|
162
162
|
body: body,
|
|
163
|
+
multipart: true,
|
|
163
164
|
timeout: timeout,
|
|
164
165
|
)
|
|
165
166
|
end
|
|
@@ -306,12 +307,13 @@ module Labimotion
|
|
|
306
307
|
|
|
307
308
|
def self.create_tables(tmpfile)
|
|
308
309
|
res = {}
|
|
309
|
-
File.open(tmpfile.path, '
|
|
310
|
+
File.open(tmpfile.path, 'rb') do |file|
|
|
310
311
|
body = { file: file }
|
|
311
312
|
response = HTTParty.post(
|
|
312
313
|
uri('tables'),
|
|
313
314
|
basic_auth: auth,
|
|
314
315
|
body: body,
|
|
316
|
+
multipart: true,
|
|
315
317
|
timeout: timeout,
|
|
316
318
|
)
|
|
317
319
|
res = response.parsed_response
|
data/lib/labimotion/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: labimotion
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.1.0.
|
|
4
|
+
version: 2.1.0.rc17
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Chia-Lin Lin
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2026-01-
|
|
12
|
+
date: 2026-01-23 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: caxlsx
|