labimotion 1.3.0.rc5 → 1.3.0.1

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: 1544df427f4bbeeac189991d5dba50f8759e4ccc869b864edcee7479ba455bac
4
- data.tar.gz: 5113e6ceffe6908efb4767cdffc3721131903d07668722e22e6503197bafc181
3
+ metadata.gz: b0a2d70b1aee4937bb6ef17f4890586a56b43afbaef882b35405f0a4d9ba29bd
4
+ data.tar.gz: aa3ba75ff7343570d28e7821b4bea93088e99515075c909aea54c938a92c847a
5
5
  SHA512:
6
- metadata.gz: c1111378004a5bea4f3ac3a1e2056eb3003db3f21dc8887813d97d4a73ffa8df0473b72bd2c3c6450c50ce9b1a30d736303b34c156bb50124ca58ee09e43b151
7
- data.tar.gz: 8ced73f30bea84693d46de94398e621badda9419d77432da3f81eb6d0aef0fc64c06e41cb80d18859936eeb773fdb77a5a6bc623aff0d6a0effd6132fa603042
6
+ metadata.gz: 22328a5f03a0e00afea8f06aa5fd82d6eee4b800c60892ab20f933b47ab815137429b9586fd3486938e0f9aa20276f4481cc4f2cc2be038636401ad819a0eccb
7
+ data.tar.gz: d613a1b16e9b906166943ccb58296abedd9beabee374b5aade1b5f38d9648ac1cd38acae52ea5ae32624605fe7f54efd486a86d1044b2eb64ac69b03efffe6eb
@@ -9,9 +9,8 @@ module Labimotion
9
9
  before_save :check_identifier
10
10
  end
11
11
 
12
-
13
12
  def check_identifier
14
- self.identifier = identifier || SecureRandom.uuid
13
+ self.identifier = identifier || SecureRandom.uuid if self.has_attribute?(:identifier)
15
14
  end
16
15
 
17
16
  def create_klasses_revision(current_user)
@@ -44,11 +44,11 @@ module Labimotion
44
44
  "position": 35,
45
45
  "placeholder": "amount of substance",
46
46
  "units": [
47
- { "key": "mol", "label": "mol (M)", "nm": 1 },
48
- { "key": "mmol", "label": "mmol (mM)", "nm": 1000 },
49
- { "key": "umol", "label": "µmol (µM)", "nm": 1000000 },
50
- { "key": "nmol", "label": "nmol (nM)", "nm": 1.0e9 },
51
- { "key": "pmol", "label": "pmol (pM)", "nm": 1.0e12 }
47
+ { "key": "mol", "label": "mol", "nm": 1 },
48
+ { "key": "mmol", "label": "mmol", "nm": 1000 },
49
+ { "key": "umol", "label": "µmol", "nm": 1000000 },
50
+ { "key": "nmol", "label": "nmol", "nm": 1.0e9 },
51
+ { "key": "pmol", "label": "pmol", "nm": 1.0e12 }
52
52
  ]
53
53
  },
54
54
  {
@@ -59,11 +59,11 @@ module Labimotion
59
59
  "position": 40,
60
60
  "placeholder": "molarity",
61
61
  "units": [
62
- { "key": "mol_l", "label": "mol/L (M/L)", "nm": 1 },
63
- { "key": "mmol_l", "label": "mmol/L (mM/L)", "nm": 1000 },
64
- { "key": "umol_l", "label": "µmol/L (µM/L)", "nm": 1000000 },
65
- { "key": "nmol_l", "label": "nmol/L (nM/L)", "nm": 1000000000 },
66
- { "key": "pmol_l", "label": "pmol/L (pM/L)", "nm": 1000000000000 }
62
+ { "key": "mol_l", "label": "mol/L", "nm": 1 },
63
+ { "key": "mmol_l", "label": "mmol/L", "nm": 1000 },
64
+ { "key": "umol_l", "label": "µmol/L", "nm": 1000000 },
65
+ { "key": "nmol_l", "label": "nmol/L", "nm": 1000000000 },
66
+ { "key": "pmol_l", "label": "pmol/L", "nm": 1000000000000 }
67
67
  ]
68
68
  },
69
69
  {
@@ -168,6 +168,15 @@ module Labimotion
168
168
  "placeholder": "Electric Charge in C",
169
169
  "units": [{ "key": "ec_c", "label": "C", "nm": 1 }]
170
170
  },
171
+ {
172
+ "type": "numeric",
173
+ "field": "electric_charge_mol",
174
+ "label": "Electric Charge per mol",
175
+ "default": "",
176
+ "position": 85,
177
+ "placeholder": "Electric Charge per mol",
178
+ "units": [{ "key": "ec_mol", "label": "C/mol", "nm": 1 }]
179
+ },
171
180
  {
172
181
  "type": "numeric",
173
182
  "field": "electric_field",
@@ -206,12 +215,12 @@ module Labimotion
206
215
  {
207
216
  "type": "numeric",
208
217
  "field": "faraday",
209
- "label": "Faraday",
218
+ "label": "Faraday (Fd)",
210
219
  "default": "",
211
220
  "position": 95,
212
- "placeholder": "Faraday",
221
+ "placeholder": "Faraday (Fd)",
213
222
  "units": [
214
- { "key": "faraday", "label": "C/m", "nm": 1 }
223
+ { "key": "faraday", "label": "Fd", "nm": 1 }
215
224
  ]
216
225
  },
217
226
  {
@@ -2,5 +2,5 @@
2
2
 
3
3
  ## Labimotion Version
4
4
  module Labimotion
5
- VERSION = '1.3.0.rc5'
5
+ VERSION = '1.3.0.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.rc5
4
+ version: 1.3.0.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-15 00:00:00.000000000 Z
12
+ date: 2024-04-24 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -121,9 +121,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
121
121
  version: '0'
122
122
  required_rubygems_version: !ruby/object:Gem::Requirement
123
123
  requirements:
124
- - - ">"
124
+ - - ">="
125
125
  - !ruby/object:Gem::Version
126
- version: 1.3.1
126
+ version: '0'
127
127
  requirements: []
128
128
  rubygems_version: 3.1.6
129
129
  signing_key: