parseconfig 1.0.0 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/Changelog +4 -0
- data/lib/parseconfig.rb +6 -5
- 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
|
data/lib/parseconfig.rb
CHANGED
@@ -18,7 +18,7 @@
|
|
18
18
|
|
19
19
|
class ParseConfig
|
20
20
|
|
21
|
-
Version = '0.
|
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
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
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)
|