labimotion 1.0.11 → 1.0.12
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7ddd7650762797d557ff280a60b4bb89bea1a3514941e741f4c0cb8c4b87e4ab
|
4
|
+
data.tar.gz: 146b83a224742e7a75f39c606b71259a0a217dbbea679dc6010be8c11cb7d26e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 91c70dea416babdc050b80793020c614ad4d2ddb07632ffca1186919f9b4e149a98c7f0840b7c2f3c5876d0c75c465f1038fe3392a13a35092d109a92c211b89
|
7
|
+
data.tar.gz: 8e71a05bc1215ce367a80f6e48a2452256b0236d7392cc394229c0bfc18d739d81004e86f5e0a25a8ee3d03c35f30eb32f67715f4437e219f7780d549b79e218
|
@@ -99,9 +99,9 @@ module Labimotion
|
|
99
99
|
wb = @xfile.workbook
|
100
100
|
gds = Labimotion::Dataset.find_by(element_id: id, element_type: 'Container')
|
101
101
|
cds = Container.find(id)
|
102
|
-
cds.attachments.where(aasm_state: 'csv').
|
102
|
+
cds.attachments.where(aasm_state: 'csv').each_with_index do |att, idx|
|
103
103
|
name = File.basename(att.filename, '.csv')
|
104
|
-
sheet = @xfile.workbook.add_worksheet(name: name.slice(0, 25))
|
104
|
+
sheet = @xfile.workbook.add_worksheet(name: "#{name.slice(0, 25)}_#{idx + 1}")
|
105
105
|
|
106
106
|
if Labimotion::IS_RAILS5 == true
|
107
107
|
File.open(att.store.path) do |fi|
|
@@ -22,7 +22,7 @@ module Labimotion
|
|
22
22
|
end
|
23
23
|
|
24
24
|
def exec_converter
|
25
|
-
return if self.has_attribute?(:con_state) == false || con_state.present?
|
25
|
+
return if self.has_attribute?(:con_state) == false || !con_state.present?
|
26
26
|
|
27
27
|
#return if attachable_id.nil?
|
28
28
|
return if Labimotion::IS_RAILS5 == false && self.con_state != Labimotion::ConState::WAIT
|
data/lib/labimotion/version.rb
CHANGED
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.0.
|
4
|
+
version: 1.0.12
|
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: 2023-
|
12
|
+
date: 2023-10-13 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|