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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cee579f8f1e81372d1d47bca8f69401c27c49ed5ca62bc421c514727263ffe61
4
- data.tar.gz: '06383e456270ce72e1ae8759dfac7385a03f123021e06d6b9926008d796c90c4'
3
+ metadata.gz: 2fe076ca6f32c99ea8a3fed2728d3f3f35e7d6ca48692a350ae07eddef5d7453
4
+ data.tar.gz: aa98768282d9e3962f35444d97ce4c8b4165b864cef4d5a8c49d0d5e7fdd0222
5
5
  SHA512:
6
- metadata.gz: 1c7f75d3c7dfd4a39ad88a3bda39a8fae35b7576b50d92def926a2d311a00ee7527246f51071acd47f866c61b036e40c3ab635d2576fa8ec69439354e48cc55a
7
- data.tar.gz: 2a9a70252f5ac05aaecadab4310e7c08c177efc3612053ce01e91326762161b70533175ceef3f877923cb05460a09a2b5e89f973bcf55d587b74b62cf60e2c04
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, 'r') do |f|
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, 'r') do |file|
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
@@ -2,5 +2,5 @@
2
2
 
3
3
  ## Labimotion Version
4
4
  module Labimotion
5
- VERSION = '2.1.0.rc16'
5
+ VERSION = '2.1.0.rc17'
6
6
  end
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.rc16
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-14 00:00:00.000000000 Z
12
+ date: 2026-01-23 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: caxlsx