inih 1.0.0 → 1.1.0
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/inih.rb +2 -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: 955097b4932e03e5a9d3c034acb1ac0000a4f6e4
|
4
|
+
data.tar.gz: cb64f88be502ca0d07535b54c5bbce5d6364056d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e5bfa5316bee98f31114fabc9f9722c730090325a5e0017db6b8af8a7ad36fb44e94932db3728f4438140927674cb0aa4c35b2f8a33803a57a7dd61d3f637380
|
7
|
+
data.tar.gz: c5f80292eb624a7c75ca42a519c0189a575ead11b5f9c263d80ce12146a33670607e2bca093cab6d64d051e72ef524ec3a44fcec54e3542c889cb54909d66689
|
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 = "1.
|
8
|
+
VERSION = "1.1.0"
|
9
9
|
|
10
10
|
# Normalize a parsed INI file's values.
|
11
11
|
# @api private
|
@@ -20,6 +20,7 @@ module INIH
|
|
20
20
|
def self.normalize_sect(sect)
|
21
21
|
sect.map do |k, v|
|
22
22
|
nv = case v
|
23
|
+
when "" then nil
|
23
24
|
when "true" then true
|
24
25
|
when "false" then false
|
25
26
|
when /\A-?\d+\Z/ then Integer v
|