labimotion 0.1.14 → 0.1.15
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: 9a72bc36d304bce71f181b4a5b8b5bcb81532cd21c204efee6f75fa3fb85a29f
|
|
4
|
+
data.tar.gz: d9fe725cf70b07074df5a045dcb5025090a1160c3c04621f8d13fe4e14a5cfbc
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: dfffccf852420e3d9aac5ec9bb36ce9f10f738a4d814633d0a07a31a3dba9eabd712955dec68b9e18644fc888adf47b6967075b9994e1eb59a6fc4176eb4ffb0
|
|
7
|
+
data.tar.gz: 23c5d2ce7d797a86f29c29c6fcee85dfb78e61dca82a9b0dc4535b9e9098cda085b33089bcd2c2cb72b702df13a8805e29ff93ae27dc1efea7a65e756a37db07
|
|
@@ -23,6 +23,7 @@ module Labimotion
|
|
|
23
23
|
present ek, with: Labimotion::ElementKlassEntity, root: 'klass'
|
|
24
24
|
rescue StandardError => e
|
|
25
25
|
Labimotion.log_exception(e, current_user)
|
|
26
|
+
{ klass: [] }
|
|
26
27
|
end
|
|
27
28
|
end
|
|
28
29
|
|
|
@@ -36,6 +37,7 @@ module Labimotion
|
|
|
36
37
|
present list, with: Labimotion::ElementKlassEntity, root: 'klass'
|
|
37
38
|
rescue StandardError => e
|
|
38
39
|
Labimotion.log_exception(e, current_user)
|
|
40
|
+
{ klass: [] }
|
|
39
41
|
end
|
|
40
42
|
end
|
|
41
43
|
|
|
@@ -176,6 +178,7 @@ module Labimotion
|
|
|
176
178
|
true
|
|
177
179
|
rescue StandardError => e
|
|
178
180
|
Labimotion.log_exception(e, current_user)
|
|
181
|
+
raise e
|
|
179
182
|
end
|
|
180
183
|
end
|
|
181
184
|
|
|
@@ -194,6 +197,9 @@ module Labimotion
|
|
|
194
197
|
desc 'fetch Generic Element Klass from Chemotion Repository'
|
|
195
198
|
get do
|
|
196
199
|
fetch_repo('ElementKlass')
|
|
200
|
+
rescue StandardError => e
|
|
201
|
+
Labimotion.log_exception(e, current_user)
|
|
202
|
+
[]
|
|
197
203
|
end
|
|
198
204
|
end
|
|
199
205
|
|
|
@@ -226,6 +232,7 @@ module Labimotion
|
|
|
226
232
|
deactivate_klass(params)
|
|
227
233
|
rescue StandardError => e
|
|
228
234
|
Labimotion.log_exception(e, current_user)
|
|
235
|
+
raise e
|
|
229
236
|
end
|
|
230
237
|
end
|
|
231
238
|
|
|
@@ -168,8 +168,8 @@ module Labimotion
|
|
|
168
168
|
(attach_ary << att_ary).flatten! unless att_ary&.empty?
|
|
169
169
|
|
|
170
170
|
if Labimotion::IS_RAILS5 == true
|
|
171
|
-
TransferThumbnailToPublicJob.set(queue: "transfer_thumbnail_to_public_#{current_user.id}").
|
|
172
|
-
TransferFileFromTmpJob.set(queue: "transfer_file_from_tmp_#{current_user.id}").
|
|
171
|
+
TransferThumbnailToPublicJob.set(queue: "transfer_thumbnail_to_public_#{current_user.id}").perform_now(attach_ary) unless attach_ary.empty?
|
|
172
|
+
TransferFileFromTmpJob.set(queue: "transfer_file_from_tmp_#{current_user.id}").perform_now(attach_ary) unless attach_ary.empty?
|
|
173
173
|
end
|
|
174
174
|
true
|
|
175
175
|
rescue StandardError => e
|
data/lib/labimotion/version.rb
CHANGED