labimotion 2.1.0.rc17 → 2.1.0

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: 2fe076ca6f32c99ea8a3fed2728d3f3f35e7d6ca48692a350ae07eddef5d7453
4
- data.tar.gz: aa98768282d9e3962f35444d97ce4c8b4165b864cef4d5a8c49d0d5e7fdd0222
3
+ metadata.gz: 0b97ee960a48914097f872e1b421ada368d5bdee1bb6b05e7f14a36248955020
4
+ data.tar.gz: 5dc30139a5c87ed6cd8a86f3f9c583f3973eceb7cb5fd01ac2c245630815c425
5
5
  SHA512:
6
- metadata.gz: c7422991be491176c1bfee14269f7f3a473d0c002a5339e74ca17a3fa5157441cca59d772c6792584c5ec9fdc6f729296b7bf8aabd5af37549fc88fc33c8913c
7
- data.tar.gz: 8d3accbf6aa727559b7725bb99b14687f06a258c720732dc28278c8c305f1a0aaf48c1b828f81d55b6c96f04fab79de06b71726393bc602057e02dcb42f17c53
6
+ metadata.gz: abfbd09a8bcab8d5cfc47dea6c6ee098cbd0b54985d16d888f63a5ee2ba6f53673e4a105af59576d689c5b58cefbdde36a1c7649fa760dd4178a999df4975858
7
+ data.tar.gz: af957c39d2675b38d01a0c14c018c49b584c15f6b1785d76f36ca5c2833c408e82e396a88e82bb59d625069ac0dc267b24d91b16f2c8c4ab97de5bc6d77fd77b
@@ -13,9 +13,7 @@ module Labimotion
13
13
  private
14
14
 
15
15
  def process_layers
16
- return unless object&.properties.is_a?(Hash)
17
-
18
- (object.properties[Labimotion::Prop::LAYERS]&.keys || []).each do |key|
16
+ (object&.properties.is_a?(Hash) && (object.properties[Labimotion::Prop::LAYERS]&.keys || [])).each do |key|
19
17
  yield(key, object.properties[Labimotion::Prop::LAYERS][key])
20
18
  end
21
19
  end
@@ -154,13 +154,12 @@ 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, 'rb') do |f|
157
+ File.open(ofile, 'r') 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,
164
163
  timeout: timeout,
165
164
  )
166
165
  end
@@ -307,13 +306,12 @@ module Labimotion
307
306
 
308
307
  def self.create_tables(tmpfile)
309
308
  res = {}
310
- File.open(tmpfile.path, 'rb') do |file|
309
+ File.open(tmpfile.path, 'r') do |file|
311
310
  body = { file: file }
312
311
  response = HTTParty.post(
313
312
  uri('tables'),
314
313
  basic_auth: auth,
315
314
  body: body,
316
- multipart: true,
317
315
  timeout: timeout,
318
316
  )
319
317
  res = response.parsed_response
@@ -2,5 +2,5 @@
2
2
 
3
3
  ## Labimotion Version
4
4
  module Labimotion
5
- VERSION = '2.1.0.rc17'
5
+ VERSION = '2.1.0'
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.rc17
4
+ version: 2.1.0
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-23 00:00:00.000000000 Z
12
+ date: 2026-01-29 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: caxlsx
@@ -183,9 +183,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
183
183
  version: '3.4'
184
184
  required_rubygems_version: !ruby/object:Gem::Requirement
185
185
  requirements:
186
- - - ">"
186
+ - - ">="
187
187
  - !ruby/object:Gem::Version
188
- version: 1.3.1
188
+ version: '0'
189
189
  requirements: []
190
190
  rubygems_version: 3.1.6
191
191
  signing_key: