labimotion 1.3.0.1 → 1.3.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: b0a2d70b1aee4937bb6ef17f4890586a56b43afbaef882b35405f0a4d9ba29bd
4
- data.tar.gz: aa3ba75ff7343570d28e7821b4bea93088e99515075c909aea54c938a92c847a
3
+ metadata.gz: 55758d962c5628b469e7c55a72666411eb4f23a2e55a863b9b75baef02edd9d7
4
+ data.tar.gz: 46497569a5a844d76be344c12f73f156d2cf7fa2af98817d89e0335eaa17292c
5
5
  SHA512:
6
- metadata.gz: 22328a5f03a0e00afea8f06aa5fd82d6eee4b800c60892ab20f933b47ab815137429b9586fd3486938e0f9aa20276f4481cc4f2cc2be038636401ad819a0eccb
7
- data.tar.gz: d613a1b16e9b906166943ccb58296abedd9beabee374b5aade1b5f38d9648ac1cd38acae52ea5ae32624605fe7f54efd486a86d1044b2eb64ac69b03efffe6eb
6
+ metadata.gz: e22f4a946c2729b3ba8adfc702308b38f67fa6a5314eb12c375d0369fa84c0f49eec45984989f15cbc8dee70319f69650f2a67f9b0e988470964840db60dc326
7
+ data.tar.gz: 0ba7d3e49cad20b91e8d8edbaadba114a8bae0d72c07c8b65a74c712fc9b0823a12a9bf9d9d98b9e75dcc9ac14a7c5e8b856eeebeef942dd82a93b6fdedff788
@@ -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,8 +9,9 @@ module Labimotion
9
9
  before_save :check_identifier
10
10
  end
11
11
 
12
+
12
13
  def check_identifier
13
- self.identifier = identifier || SecureRandom.uuid if self.has_attribute?(:identifier)
14
+ self.identifier = identifier || SecureRandom.uuid
14
15
  end
15
16
 
16
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.1'
5
+ VERSION = '1.3.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
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