parseconfig 1.0.0 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/Changelog +4 -0
  2. data/lib/parseconfig.rb +6 -5
  3. metadata +2 -2
data/Changelog CHANGED
@@ -1,3 +1,7 @@
1
+ Tue Jun 12, 2012 - v1.0.2
2
+ - Re-enable get_value() as it seems some projects are still using it.
3
+ That said, get_value() *will* be removed in the future at some point.
4
+
1
5
  Tue Jun 12, 2012 - v1.0.0
2
6
  - Resolved Issue #3, Config files not closed properly.
3
7
  - Resolved Issue #7, Added basic rspec testing
@@ -18,7 +18,7 @@
18
18
 
19
19
  class ParseConfig
20
20
 
21
- Version = '0.5.3'
21
+ Version = '1.0.2'
22
22
 
23
23
  attr_accessor :config_file, :params, :groups
24
24
 
@@ -92,10 +92,11 @@ class ParseConfig
92
92
  #
93
93
  # DEPRECATED - will be removed in future versions
94
94
  #
95
- #def get_value(param)
96
- # puts "ParseConfig Deprecation Warning: get_value() is deprecated."
97
- # return self.params[param]
98
- #end
95
+ def get_value(param)
96
+ puts "ParseConfig Deprecation Warning: get_value() is deprecated. Use " + \
97
+ "config['param'] or config['group']['param'] instead."
98
+ return self.params[param]
99
+ end
99
100
 
100
101
  # This method is a shortcut to accessing the @params variable
101
102
  def [](param)
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 1
7
7
  - 0
8
- - 0
9
- version: 1.0.0
8
+ - 2
9
+ version: 1.0.2
10
10
  platform: ruby
11
11
  authors:
12
12
  - BJ Dierkes