arvicco-avalon 0.0.6 → 0.0.7

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.
data/README.md CHANGED
@@ -33,6 +33,7 @@ Sample monitor config file for production environment below. Modify it, add your
33
33
  ------- ~/.avalon/monitor.yml --------
34
34
  # Prod configuration (default)
35
35
  prod:
36
+ :status_fails_to_alarm: 2
36
37
  :bitcoind:
37
38
  :ip: 192.168.1.13
38
39
  :rpcuser: jbond
@@ -15,7 +15,7 @@ module Avalon
15
15
  end
16
16
 
17
17
  def config
18
- Avalon::Config[:bitcoind]
18
+ Avalon::Config[:bitcoind] || {}
19
19
  end
20
20
  end
21
21
  end
@@ -11,7 +11,7 @@ module Avalon
11
11
  @config = YAML::load_file(config_file)[env]
12
12
  @config[:environment] = env
13
13
  @config[:block_file] = find_file( '../../../config/blocks.yml',
14
- '~/.avalon/blocks.yml') || '~/.avalon/blocks.yml'
14
+ '~/.avalon/blocks.yml') || File.expand('~/.avalon/blocks.yml')
15
15
 
16
16
  end
17
17
 
@@ -40,7 +40,7 @@ module Avalon
40
40
  @num = ip.split('.').last.to_i
41
41
  @min_speed = min_speed * 1000 # Gh/s to Mh/s
42
42
  @fails = 0
43
- @status_fails_to_alarm = Avalon::Config[:status_fails_to_alarm]
43
+ @status_fails_to_alarm = Avalon::Config[:status_fails_to_alarm] || 2
44
44
  super()
45
45
  end
46
46
 
@@ -1,3 +1,3 @@
1
1
  module Avalon
2
- VERSION = "0.0.6"
2
+ VERSION = "0.0.7"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: arvicco-avalon
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: