sr-scripts 0.1.9 → 0.1.10

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.
@@ -1,5 +1,5 @@
1
1
  module Sr
2
2
  module Scripts
3
- VERSION = "0.1.9"
3
+ VERSION = "0.1.10"
4
4
  end
5
5
  end
data/lib/sr-scripts.rb CHANGED
@@ -6,10 +6,12 @@ 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 File.exists? File.expand_path('~/.sr-scripts.yml')
10
+ return YAML.load_file File.expand_path('~/.sr-scripts.yml')
9
11
  elsif File.exists? '/etc/sr-scripts.yml'
10
12
  return YAML.load_file '/etc/sr-scripts.yml'
11
13
  else
12
- puts "Config File Is Missing: searching for ./.sr-scripts.yml or /etc/sr-scripts.yml"
14
+ puts "Config File Is Missing: searching for ./.sr-scripts.yml, ~/.sr-scripts.yml or /etc/sr-scripts.yml"
13
15
  exit 1
14
16
  end
15
17
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 9
9
- version: 0.1.9
8
+ - 10
9
+ version: 0.1.10
10
10
  platform: ruby
11
11
  authors:
12
12
  - Davy Campano