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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0b97ee960a48914097f872e1b421ada368d5bdee1bb6b05e7f14a36248955020
|
|
4
|
+
data.tar.gz: 5dc30139a5c87ed6cd8a86f3f9c583f3973eceb7cb5fd01ac2c245630815c425
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
-
|
|
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, '
|
|
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, '
|
|
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
|
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
|
|
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-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:
|
|
188
|
+
version: '0'
|
|
189
189
|
requirements: []
|
|
190
190
|
rubygems_version: 3.1.6
|
|
191
191
|
signing_key:
|