configtoolkit 2.3.1 → 2.3.2
Sign up to get free protection for your applications and to get access to all the features.
- data/Hash.txt +1 -1
- data/History.txt +3 -0
- data/README.txt +6 -1
- data/lib/configtoolkit/baseconfig.rb +2 -0
- data/lib/configtoolkit/version.rb +1 -1
- metadata +3 -3
data/Hash.txt
CHANGED
@@ -127,4 +127,4 @@ When run, the program produces:
|
|
127
127
|
}
|
128
128
|
|
129
129
|
The Hash dumped from the second config:
|
130
|
-
{:production=>{:www=>{:addresses=>[#<URI::HTTP:
|
130
|
+
{:production=>{:www=>{:addresses=>[#<URI::HTTP:0xb7ceefd4 URL:http://www.designingpatterns.com>, #<URI::HTTP:0xb7ceef5c URL:http://tokyo.designingpatterns.com>], :num_cpus=>64, :os=>{:version=>10.0, :name=>"Solaris"}, :behind_firewall=>true, :contains_sensitive_data=>true}}}
|
data/History.txt
CHANGED
data/README.txt
CHANGED
@@ -914,6 +914,8 @@ class BaseConfig
|
|
914
914
|
# the reader's value if it's true or false.
|
915
915
|
#
|
916
916
|
return raw_value
|
917
|
+
elsif((value_class == Float) && (raw_value.class <= Integer))
|
918
|
+
return raw_value.to_f
|
917
919
|
elsif(raw_value.class == String)
|
918
920
|
#
|
919
921
|
# Some readers only may return Strings and leave it up to
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: configtoolkit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.3.
|
4
|
+
version: 2.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- DesigningPatterns
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date:
|
12
|
+
date: 2011-05-01 00:00:00 -04:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -50,7 +50,7 @@ dependencies:
|
|
50
50
|
requirements:
|
51
51
|
- - ">="
|
52
52
|
- !ruby/object:Gem::Version
|
53
|
-
version: 0.
|
53
|
+
version: 0.7.0
|
54
54
|
version:
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: hoe
|