labimotion 1.3.0 → 1.3.1.1

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: 94c2f0242360d6b6fd17c82850b0650fe18f86ccd484b47ce98ae7dfdccd50d1
4
- data.tar.gz: 925eb30692c128d1339f97f96fdfe3b283f251822293fab6f25b9e2cffaedc25
3
+ metadata.gz: 45876f170c9ebeb8292483cd8d6de0c56f5b341b22ce861a3994c93a6344e665
4
+ data.tar.gz: ac171314ea6ce8b2c9c04bf03b3f84eddf84c10508381bf088d658a5a511c11e
5
5
  SHA512:
6
- metadata.gz: b611c37931e15ee233ff01708d2fafa421746b68aa5e63af907a0b811ccc2958b04491c80da4219516bc62db7cad682138af2c999d85a9708eca6a688489e63c
7
- data.tar.gz: 55680523c5140f1bfaffc632147ca1bce2a01969cb3866f1f1caa97681cfac9b497520b9002c9b2302e998792d6c6fd5c9ee50a5746493924982d745e031f8bc
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,9 +9,9 @@ module Labimotion
9
9
  before_save :check_identifier
10
10
  end
11
11
 
12
-
12
+
13
13
  def check_identifier
14
- self.identifier = identifier || SecureRandom.uuid
14
+ self.identifier = identifier || SecureRandom.uuid if self.has_attribute?(:identifier)
15
15
  end
16
16
 
17
17
  def create_klasses_revision(current_user)
@@ -2,5 +2,5 @@
2
2
 
3
3
  ## Labimotion Version
4
4
  module Labimotion
5
- VERSION = '1.3.0'
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
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