labimotion 1.4.0.rc3 → 1.4.0.rc4
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: f38f255a309e305ddfe715e5382c0087acde8a05c42434a8c87c03640ad38772
|
4
|
+
data.tar.gz: a3ed70fa27d008b51f416fbd4ac9a2ce70e1d3cc117bdfa37e31010a62301b98
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e80ca22f7120c4d3f34b9eecc37baa2b40a83b7d34409b4598129bb939e1c473ed6fa7fe06c7c2396210dc25571238b1bc51733fafb373e8928c076aa8761fe2
|
7
|
+
data.tar.gz: 70ddf10ed69d7eea7ac3769e3a32dd59b38b3eed052ba232e9cdbadacaa2ef6bab9ea204537390c2abe71f06246ac9eeb650b2731b28d92ad8d1bc0d534d4b38
|
@@ -107,9 +107,9 @@ module Labimotion
|
|
107
107
|
attributes['updated_by'] = current_user.id
|
108
108
|
attributes['sync_by'] = current_user.id
|
109
109
|
attributes['sync_time'] = DateTime.now
|
110
|
-
attr_klass = response.dig('element_klass', {}) # response['element_klass']
|
110
|
+
attr_klass = response['element_klass'] ## response.dig('element_klass', {}) # response['element_klass']
|
111
111
|
validate_klass(attributes, attr_klass)
|
112
|
-
|
112
|
+
|
113
113
|
rescue StandardError => e
|
114
114
|
Labimotion.log_exception(e, current_user)
|
115
115
|
raise e
|
@@ -97,7 +97,10 @@ module Labimotion
|
|
97
97
|
type = "#{field['type']}-#{field['option_layers']}" if field['type'] == Labimotion::FieldType::SELECT || field['type'] == Labimotion::FieldType::SYSTEM_DEFINED
|
98
98
|
|
99
99
|
show_value = field['value'] =~ /\A\d+,\d+\z/ ? field['value']&.gsub(',', '.') : field['value']
|
100
|
-
|
100
|
+
ols_short_form = (field['ontology'] && field['ontology']['short_form']) || ''
|
101
|
+
ols_label = (field['ontology'] && field['ontology']['label']) || ''
|
102
|
+
ols_iri = (field['ontology'] && field['ontology']['iri']) || ''
|
103
|
+
sheet.add_row([' ', field['label'], nil, field['value_system'], field['field'], type, from_device, field['dkey'], nil, ols_short_form, ols_label, ols_iri].freeze)
|
101
104
|
|
102
105
|
case field['type']
|
103
106
|
when Labimotion::FieldType::SELECT
|
@@ -166,7 +169,7 @@ module Labimotion
|
|
166
169
|
end
|
167
170
|
|
168
171
|
def header
|
169
|
-
['Layer Label', 'Field Label', 'Value', 'Unit', 'Name', 'Type', 'Source?', 'Source identifier', 'Source data'].freeze
|
172
|
+
['Layer Label', 'Field Label', 'Value', 'Unit', 'Name', 'Type', 'Source?', 'Source identifier', 'Source data', 'Ontology', 'Ontology Label', 'iri'].freeze
|
170
173
|
end
|
171
174
|
|
172
175
|
def read
|
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.4.0.
|
4
|
+
version: 1.4.0.rc4
|
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-06-
|
12
|
+
date: 2024-06-25 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|