config_reader 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/History.txt CHANGED
@@ -1,3 +1,7 @@
1
+ == 0.0.2 2008-09-10
2
+ * have find_config return the file if it exists instead of looking in . and
3
+ ./config
4
+
1
5
  == 0.0.1 2008-08-06
2
6
 
3
7
  * 1 major enhancement:
@@ -2,7 +2,7 @@ module ConfigReader
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 0
4
4
  MINOR = 0
5
- TINY = 1
5
+ TINY = 2
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
data/lib/config_reader.rb CHANGED
@@ -49,6 +49,8 @@ class ConfigReader
49
49
  end
50
50
 
51
51
  def find_config
52
+ return @config_file if File.exist?(@config_file)
53
+
52
54
  %w( . config ).each do |dir|
53
55
  config_file = File.join(dir, @config_file)
54
56
  return config_file if File.exist?(config_file)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: config_reader
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Moen
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-08-06 00:00:00 -05:00
12
+ date: 2008-09-10 00:00:00 -05:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency