collins_auth 0.1.0 → 0.1.1

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 (2) hide show
  1. data/lib/collins_auth.rb +3 -1
  2. metadata +1 -1
data/lib/collins_auth.rb CHANGED
@@ -51,7 +51,9 @@ module Collins
51
51
  end
52
52
 
53
53
  def self.read_config(config_file = nil)
54
- config_file ||= [ENV['COLLINS_CLIENT_CONFIG'], File.join(ENV['HOME'], '.collins.yml'), '/etc/collins.yml', '/var/db/collins.yml'].compact.find do |config_file|
54
+ home_config_file = File.join(ENV['HOME'], '.collins.yml') unless ENV['HOME'].nil?
55
+
56
+ config_file ||= [ENV['COLLINS_CLIENT_CONFIG'], home_config_file, '/etc/collins.yml', '/var/db/collins.yml'].compact.find do |config_file|
55
57
  File.readable? config_file and File.size(config_file) > 0
56
58
  end
57
59
 
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: collins_auth
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.1.0
5
+ version: 0.1.1
6
6
  platform: ruby
7
7
  authors:
8
8
  - Michael Benedict