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: 4462059ccf7843ed6aee9d493e2fcadf9cb6675fd2e71652eb8ce670cd3e3630
4
- data.tar.gz: bf3f3b3c664117b679b19ba27171ed37f45371e267a44988e0a709c98b9b66e7
3
+ metadata.gz: 9a72bc36d304bce71f181b4a5b8b5bcb81532cd21c204efee6f75fa3fb85a29f
4
+ data.tar.gz: d9fe725cf70b07074df5a045dcb5025090a1160c3c04621f8d13fe4e14a5cfbc
5
5
  SHA512:
6
- metadata.gz: ec3bfa245f202a31bb6e1a46104296b7ed7eab6500eabc7832adcaf0ded162492d46403459a476f89468ae8a513af83e5f8d23e057efd0820829be745c150e55
7
- data.tar.gz: 04f4c1e4856c2a9909a487dfa4e2764aac737ac76379e892d07fd66da5347be2c55ec94281b7241bae57736c2667fe03250c945930295285b447850b9039fd92
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}").perform_later(attach_ary) unless attach_ary.empty?
172
- TransferFileFromTmpJob.set(queue: "transfer_file_from_tmp_#{current_user.id}").perform_later(attach_ary) unless attach_ary.empty?
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
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Labimotion
4
4
  IS_RAILS5 = true
5
- VERSION = '0.1.14' if Labimotion::IS_RAILS5 == true
5
+ VERSION = '0.1.15' if Labimotion::IS_RAILS5 == true
6
6
  VERSION = '1.0.1' if Labimotion::IS_RAILS5 == false
7
7
  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: 0.1.14
4
+ version: 0.1.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chia-Lin Lin