deputy 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. data/VERSION +1 -1
  2. data/deputy.gemspec +2 -2
  3. data/lib/deputy.rb +5 -4
  4. metadata +3 -3
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.1
1
+ 0.1.2
data/deputy.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{deputy}
8
- s.version = "0.1.1"
8
+ s.version = "0.1.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Michael Grosser"]
12
- s.date = %q{2010-06-01}
12
+ s.date = %q{2010-06-02}
13
13
  s.default_executable = %q{deputy}
14
14
  s.email = %q{mirko@dawanda.com}
15
15
  s.executables = ["deputy"]
data/lib/deputy.rb CHANGED
@@ -48,9 +48,10 @@ module Deputy
48
48
  end
49
49
 
50
50
  def self.config
51
- file = File.expand_path('~/.deputy.yml')
52
- YAML.load(File.read(file))
53
- rescue => e
54
- e.message << " -- do you have a #{file} ?"
51
+ home = File.expand_path('~')
52
+ ["#{home}/.deputy.yml", '/etc/deputy.yml'].each do |file|
53
+ return YAML.load(File.read(file)) if File.exist?(file)
54
+ end
55
+ raise "No deputy.yml found in /etc or #{home}"
55
56
  end
56
57
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 1
9
- version: 0.1.1
8
+ - 2
9
+ version: 0.1.2
10
10
  platform: ruby
11
11
  authors:
12
12
  - Michael Grosser
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-06-01 00:00:00 +02:00
17
+ date: 2010-06-02 00:00:00 +02:00
18
18
  default_executable: deputy
19
19
  dependencies: []
20
20