labimotion 1.1.3 → 1.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/labimotion/libs/converter.rb +2 -3
- data/lib/labimotion/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 75c0801b117991ca8b6dc96daebfedbfdbdc7d40e31bb8c78fbc3f1089eaff91
|
4
|
+
data.tar.gz: 5f67c104d53b3388549064ab3c8e7bebe5df7d39d1075c3d5c42dce5eee9e07e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a0c036e9a1fc5f3b44130a2e7bf0038f2d0476461ca6a18994564752cf42737486c4d67ec61a0d698af9f28e92bf04c506035954d13b8dbdd2f5a67722c4b694
|
7
|
+
data.tar.gz: 32721efb59f25ed9c2b5ec853987416e2073ab3612881541a9e1e79d2134076998ed18a29cec4efac778f121e6faa3e27d72f0d44e34653e01e9c79e3bebaf95
|
@@ -262,7 +262,6 @@ module Labimotion
|
|
262
262
|
end
|
263
263
|
new_prop.dig('layers', 'general', 'fields')&.each_with_index do |fi, idx|
|
264
264
|
if fi['field'] == 'creator' && current_user.present?
|
265
|
-
fi['label'] = fi['label']
|
266
265
|
fi['value'] = current_user.name
|
267
266
|
fi['system'] = current_user.name
|
268
267
|
new_prop['layers']['general']['fields'][idx] = fi
|
@@ -273,13 +272,13 @@ module Labimotion
|
|
273
272
|
if fi['field'] == 'id'
|
274
273
|
fi['value'] = element.id
|
275
274
|
fi['system'] = element.id
|
276
|
-
new_prop['layers']['
|
275
|
+
new_prop['layers']['sample_details']['fields'][idx] = fi
|
277
276
|
end
|
278
277
|
|
279
278
|
if fi['field'] == 'label'
|
280
279
|
fi['value'] = element.short_label
|
281
280
|
fi['system'] = element.short_label
|
282
|
-
new_prop['layers']['
|
281
|
+
new_prop['layers']['sample_details']['fields'][idx] = fi
|
283
282
|
end
|
284
283
|
end
|
285
284
|
dataset.properties = new_prop
|
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.1.
|
4
|
+
version: 1.1.4
|
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-
|
12
|
+
date: 2024-02-15 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|