inih 0.1.0 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/inih.rb +3 -3
- 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: ee2047ce0fc9436fd2d639907a9008da48d94d0e
|
4
|
+
data.tar.gz: 78058c73425b825e3ba7cd0a2f220a8ccc831a6f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9f0c2b08435efcc8be5664053c377e50f0765847baba7dea8cbdb7901a5ba5181e1ae102f3e2bbb584fae20501ee14a6b9578d0fca86929a5015011961fdb687
|
7
|
+
data.tar.gz: c97d6eeb29d6bcfe6b01e542e4c11b714db5bde1d34bcd9fd14a21f01c874056d9c5ae7b97dedd28c56f2f61de5ebc0384d0482111a893caa72c33f8834cde77
|
data/lib/inih.rb
CHANGED
@@ -5,7 +5,7 @@ require_relative "../ext/inih/inih"
|
|
5
5
|
# The primary namespace for {INIH}.
|
6
6
|
module INIH
|
7
7
|
# The current version of ruby-inih.
|
8
|
-
VERSION = "
|
8
|
+
VERSION = "1.0.0"
|
9
9
|
|
10
10
|
# Normalize a parsed INI file's values.
|
11
11
|
# @api private
|
@@ -22,8 +22,8 @@ module INIH
|
|
22
22
|
nv = case v
|
23
23
|
when "true" then true
|
24
24
|
when "false" then false
|
25
|
-
when /\A
|
26
|
-
when /\A
|
25
|
+
when /\A-?\d+\Z/ then Integer v
|
26
|
+
when /\A-?\d+\.\d+\Z/ then Float v
|
27
27
|
else v
|
28
28
|
end
|
29
29
|
|