labimotion 1.3.0.1 → 1.3.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b0a2d70b1aee4937bb6ef17f4890586a56b43afbaef882b35405f0a4d9ba29bd
4
- data.tar.gz: aa3ba75ff7343570d28e7821b4bea93088e99515075c909aea54c938a92c847a
3
+ metadata.gz: 45876f170c9ebeb8292483cd8d6de0c56f5b341b22ce861a3994c93a6344e665
4
+ data.tar.gz: ac171314ea6ce8b2c9c04bf03b3f84eddf84c10508381bf088d658a5a511c11e
5
5
  SHA512:
6
- metadata.gz: 22328a5f03a0e00afea8f06aa5fd82d6eee4b800c60892ab20f933b47ab815137429b9586fd3486938e0f9aa20276f4481cc4f2cc2be038636401ad819a0eccb
7
- data.tar.gz: d613a1b16e9b906166943ccb58296abedd9beabee374b5aade1b5f38d9648ac1cd38acae52ea5ae32624605fe7f54efd486a86d1044b2eb64ac69b03efffe6eb
6
+ metadata.gz: caab23ae23ce25b9b4472b23f58ee7b86e3f4fc9813ceac5a9dda0810c053f1fdc1f2f7ada3f294c826091246b167646085301a336c34cb9f72e70f9a3fc854e
7
+ data.tar.gz: 60befb364746e5f8a0ea6ea89fe7713857f61ca20c013b51eb744fb0c9152ef315e83546ccb5a61ec9e33f989be473d16869eec582628651a86e49f0a13489b6
@@ -18,6 +18,9 @@ module Labimotion
18
18
  elsif result[:metadata] == nil
19
19
  Labimotion::ConState::NONE
20
20
  else
21
+ ds = Container.find_by(id: att.attachable_id)
22
+ return if ds.nil? || ds.parent&.container_type != 'analysis'
23
+
21
24
  data = process(att, id, result[:metadata])
22
25
  generate_ds(id, att.attachable_id, data, current_user)
23
26
  Labimotion::ConState::COMPLETED
@@ -9,6 +9,7 @@ module Labimotion
9
9
  before_save :check_identifier
10
10
  end
11
11
 
12
+
12
13
  def check_identifier
13
14
  self.identifier = identifier || SecureRandom.uuid if self.has_attribute?(:identifier)
14
15
  end
@@ -2,5 +2,5 @@
2
2
 
3
3
  ## Labimotion Version
4
4
  module Labimotion
5
- VERSION = '1.3.0.1'
5
+ VERSION = '1.3.1.1'
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: 1.3.0.1
4
+ version: 1.3.1.1
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: 2024-04-24 00:00:00.000000000 Z
12
+ date: 2024-05-07 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails