api-harvester 0.0.3 → 0.0.4

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 (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/harvester/settings.rb +8 -8
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: dc8ef7a9dc5793b2fd06186d813b03a2d59823e4
4
- data.tar.gz: 74a6f1fedc4980a92e5c21c05321b76c75a70e2d
3
+ metadata.gz: 392f9d5ffb1d1ed01363aa11dbb1d297b4e49d17
4
+ data.tar.gz: 8f9c3d9e5d2d87d2cb381ea4df527256c2c8a94c
5
5
  SHA512:
6
- metadata.gz: 7fb3e490ca07a6f5aa8183b9a0e33ee8b3248c0b3377ff064a60a603552b56c2a0fb61a293db1d4de9b3bf0bb5235e0b483abac5a8287fad4fd9cd92ed3aa4d4
7
- data.tar.gz: 06d77bd4b468a0f7a12fdb8d1b3a8c144d084075aaf2a02bb90ec6581989237ce39e337874aeb0c6d49c9f3cce5a0223604b817156c100bc5fd4080b80a0c39b
6
+ metadata.gz: 5c64c334957112dd5d9ddad0d4b77e315a2676677185087f49e385bd3b760511699702376540a19d50256b8d8bb7eb3ac23ee0ede7f455bac015116de70ce271
7
+ data.tar.gz: aa6177229f062988cdfe041ff455f4fac8beb0b281e5fe518206b8f19da619a660031e0647a8c8e01ea16d817c217f273a097b67a2a36fb3c4add248897f80cc
@@ -1,15 +1,15 @@
1
1
  require 'settingslogic'
2
2
  require 'terminal-announce'
3
3
  class Settings < Settingslogic
4
- config_paths = %w(/etc /usr/local/etc ~/.config . ../)
4
+ config_paths = %w(/etc /usr/local/etc ~/.config . ../)
5
5
 
6
- config_paths.each do |config_path|
7
- config_file = File.expand_path "#{ config_path }/harvester.yaml"
8
- source config_file if File.exist? config_file
9
- end
6
+ config_paths.each do |config_path|
7
+ config_file = File.expand_path "#{ config_path }/harvester.yaml"
8
+ source config_file if File.exist? config_file
9
+ end
10
10
 
11
- load!
11
+ load!
12
12
  rescue Errno::ENOENT
13
- Announce.failure "Unable to locate configuration in #{ config_paths }."
14
- abort
13
+ Announce.failure "Unable to locate configuration in #{ config_paths }."
14
+ abort
15
15
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: api-harvester
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kinnan Kwok