sr-scripts 0.1.12 → 0.1.13

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,5 @@
1
1
  module Sr
2
2
  module Scripts
3
- VERSION = "0.1.12"
3
+ VERSION = "0.1.13"
4
4
  end
5
5
  end
data/lib/sr-scripts.rb CHANGED
@@ -6,7 +6,7 @@ module SrScripts
6
6
  def self.get
7
7
  if File.exists? '.sr-scripts.yml'
8
8
  return YAML.load_file '.sr-scripts.yml'
9
- elsif ENV["HOME"]
9
+ elsif ENV["HOME"] && File.exists?(File.expand_path('~/.sr-scripts.yml'))
10
10
  return YAML.load_file File.expand_path('~/.sr-scripts.yml')
11
11
  elsif File.exists? '/etc/sr-scripts.yml'
12
12
  return YAML.load_file '/etc/sr-scripts.yml'
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 12
9
- version: 0.1.12
8
+ - 13
9
+ version: 0.1.13
10
10
  platform: ruby
11
11
  authors:
12
12
  - Davy Campano
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2012-03-25 00:00:00 -04:00
17
+ date: 2012-03-26 00:00:00 -04:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency