static_config 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -37,7 +37,7 @@ module StaticConfig
37
37
  case env_value
38
38
  when /^\d+$/
39
39
  env_value.to_i
40
- when /^(\d*\.\d+)|(\d+\.\d*)$/
40
+ when /^(\d*\.\d+|\d+\.\d*)$/
41
41
  env_value.to_f
42
42
  when 'true'
43
43
  true
@@ -1,3 +1,3 @@
1
1
  module StaticConfig
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
@@ -39,12 +39,14 @@ describe StaticConfig::Reader::Environment do
39
39
  'MY_CONFIG_FALSE' => 'false',
40
40
  'MY_CONFIG_FLOAT' => '123.45',
41
41
  'MY_CONFIG_STRING' => 'string',
42
+ 'MY_CONFIG_IP' => '10.10.10.10',
42
43
  })
43
44
  it { subject['int'].should == 123 }
44
45
  it { subject['true'].should == true }
45
46
  it { subject['false'].should == false }
46
47
  it { subject['float'].should == 123.45 }
47
48
  it { subject['string'].should == 'string' }
49
+ it { subject['ip'].should == '10.10.10.10' }
48
50
  end
49
51
  end
50
52
 
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: static_config
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.3
5
+ version: 0.0.4
6
6
  platform: ruby
7
7
  authors:
8
8
  - Matt Burke
@@ -10,8 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-11-18 00:00:00 -05:00
14
- default_executable:
13
+ date: 2012-08-07 00:00:00 Z
15
14
  dependencies: []
16
15
 
17
16
  description: Load configuration from yaml and/or environment variables
@@ -52,7 +51,6 @@ files:
52
51
  - spec/static_config/reader/yaml_env_spec.rb
53
52
  - spec/static_config/reader/yaml_file_spec.rb
54
53
  - static_config.gemspec
55
- has_rdoc: true
56
54
  homepage: http://github.com/spraints/static_config
57
55
  licenses: []
58
56
 
@@ -76,7 +74,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
76
74
  requirements: []
77
75
 
78
76
  rubyforge_project: static_config
79
- rubygems_version: 1.6.2
77
+ rubygems_version: 1.8.16
80
78
  signing_key:
81
79
  specification_version: 3
82
80
  summary: Load configuration from yaml and/or environment variables