inih 0.1.0 → 1.0.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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/inih.rb +3 -3
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2eb22c1756d5f3bc81e3f29cb73df77c292db0cf
4
- data.tar.gz: 6cce3dc18f13b86a42b89d397a25989c173893b5
3
+ metadata.gz: ee2047ce0fc9436fd2d639907a9008da48d94d0e
4
+ data.tar.gz: 78058c73425b825e3ba7cd0a2f220a8ccc831a6f
5
5
  SHA512:
6
- metadata.gz: 17a976d8a68fe06056611e3c73e2e7c4def3d364e2afc35548b2327218558ab465495b85f6069859bd3f9cd1abc151b8e7f6d95b16490f8ac1308f98f9463314
7
- data.tar.gz: eadf9ccc7dd215b18ded6e60424b098010edbfb53358f0618cbda9289dc62bcbd4402e3bcd84fbb4da1035effb2287731004fc49fd87259ba19f7691ee242a8d
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 = "0.1.0"
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\d+\Z/ then Integer v
26
- when /\A\d+\.\d+\Z/ then Float v
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
 
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: 0.1.0
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - William Woodruff