arvicco-avalon 0.0.18 → 0.0.19

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/lib/avalon/config.rb CHANGED
@@ -3,6 +3,14 @@ module Avalon
3
3
  class Config
4
4
  extend Utils # Helper methods
5
5
 
6
+ DEFAULT_SOUNDS = {
7
+ failure: 'Glass.aiff',
8
+ restart: 'Frog.aiff',
9
+ temp_high: 'Ping.aiff',
10
+ block_found: ['Dog.aiff', 'Purr.aiff', 'Dog.aiff'],
11
+ block_updated: ['Purr.aiff', 'Purr.aiff', 'Purr.aiff']
12
+ }
13
+
6
14
  def self.load env
7
15
  config_file = find_file( '../../../config/monitor.yml', '~/.avalon/monitor.yml')
8
16
 
@@ -13,6 +21,7 @@ module Avalon
13
21
  @config[:block_file] = find_file( '../../../config/blocks.yml', '~/.avalon/blocks.yml') ||
14
22
  File.expand_path('~/.avalon/blocks.yml')
15
23
 
24
+ @config[:alert_sounds] = DEFAULT_SOUNDS.merge(@config[:alert_sounds] || {})
16
25
  end
17
26
 
18
27
  def self.[] key
@@ -1,3 +1,3 @@
1
1
  module Avalon
2
- VERSION = "0.0.18"
2
+ VERSION = "0.0.19"
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.18
4
+ version: 0.0.19
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-06-24 00:00:00.000000000 Z
12
+ date: 2013-06-25 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: faraday