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 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:0xb7b802d8 URL:http://www.designingpatterns.com>, #<URI::HTTP:0xb7b80274 URL:http://tokyo.designingpatterns.com>], :num_cpus=>64, :os=>{:version=>10.0, :name=>"Solaris"}, :behind_firewall=>true, :contains_sensitive_data=>true}}}
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}}}
@@ -1,3 +1,6 @@
1
+ === 2.3.2 / 2011-05-01
2
+ Allow Float configuration parameters to accept Integer values (implicit conversion)
3
+
1
4
  === 2.3.1 / 2010-01-30
2
5
  A couple minor changes were made.
3
6
  * Changes to gem specification.
data/README.txt CHANGED
@@ -1,4 +1,9 @@
1
- Object
1
+
2
+
3
+
4
+
5
+ = configtoolkit
6
+ * Project Page: http://rubyforge.org/projects/configtoolkit/
2
7
 
3
8
  == DESCRIPTION:
4
9
  This package makes sourcing information from (parsing) configuration files
@@ -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
@@ -4,7 +4,7 @@ module ConfigToolkit #:nodoc:
4
4
  module VERSION #:nodoc:
5
5
  MAJOR = 2
6
6
  MINOR = 3
7
- TINY = 1
7
+ TINY = 2
8
8
 
9
9
  STRING = [MAJOR, MINOR, TINY].join('.')
10
10
  end
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.1
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: 2010-01-31 00:00:00 -05:00
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.3.0
53
+ version: 0.7.0
54
54
  version:
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: hoe