libis-tools 0.9.13 → 0.9.14
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 +4 -4
- data/lib/libis/tools/parameter.rb +3 -3
- data/lib/libis/tools/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 512c7276e67c6ac0bd94efa21580539c5a64aa28
|
4
|
+
data.tar.gz: c9b2f0513b64dc7108d39734774e222da6abf0da
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 757f0538365ddff2a5d0e76d13ba68d306fcf99f52c1322069cc2dc8d60b3a3943ef11866823dc3a2ed299023b0e95012b059d06c05993362ebead8355f1501c
|
7
|
+
data.tar.gz: 445171e74e24c53351d31ac4a590d2c709b9a0f4eee6a6e5884294ae6e41a7de89162c5751ed9eeae4a466c39258e200153d31e5e4570f3354342ecf9045f29e
|
@@ -17,7 +17,7 @@ module Libis
|
|
17
17
|
# noinspection RubySuperCallWithoutSuperclassInspection
|
18
18
|
super(*args)
|
19
19
|
self[:options] ||= {}
|
20
|
-
self[:datatype] ||= guess_datatype
|
20
|
+
self[:datatype] ||= guess_datatype
|
21
21
|
end
|
22
22
|
|
23
23
|
def dup
|
@@ -99,8 +99,8 @@ module Libis
|
|
99
99
|
raise ParameterValidationError, "No boolean information in '#{v.to_s}'. " +
|
100
100
|
"Valid values are: '#{TRUE_BOOL.join('\', \'')}" +
|
101
101
|
"' and '#{FALSE_BOOL.join('\', \'')}'."
|
102
|
-
when 'string'
|
103
|
-
return v.to_s
|
102
|
+
when 'string', nil
|
103
|
+
return v.to_s
|
104
104
|
when 'int'
|
105
105
|
return Integer(v)
|
106
106
|
when 'float'
|
data/lib/libis/tools/version.rb
CHANGED