inih 1.0.0 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/inih.rb +2 -1
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ee2047ce0fc9436fd2d639907a9008da48d94d0e
4
- data.tar.gz: 78058c73425b825e3ba7cd0a2f220a8ccc831a6f
3
+ metadata.gz: 955097b4932e03e5a9d3c034acb1ac0000a4f6e4
4
+ data.tar.gz: cb64f88be502ca0d07535b54c5bbce5d6364056d
5
5
  SHA512:
6
- metadata.gz: 9f0c2b08435efcc8be5664053c377e50f0765847baba7dea8cbdb7901a5ba5181e1ae102f3e2bbb584fae20501ee14a6b9578d0fca86929a5015011961fdb687
7
- data.tar.gz: c97d6eeb29d6bcfe6b01e542e4c11b714db5bde1d34bcd9fd14a21f01c874056d9c5ae7b97dedd28c56f2f61de5ebc0384d0482111a893caa72c33f8834cde77
6
+ metadata.gz: e5bfa5316bee98f31114fabc9f9722c730090325a5e0017db6b8af8a7ad36fb44e94932db3728f4438140927674cb0aa4c35b2f8a33803a57a7dd61d3f637380
7
+ data.tar.gz: c5f80292eb624a7c75ca42a519c0189a575ead11b5f9c263d80ce12146a33670607e2bca093cab6d64d051e72ef524ec3a44fcec54e3542c889cb54909d66689
@@ -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.0.0"
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: inih
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - William Woodruff