systemd_mon 0.0.2 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d4c77a8241786cc39475f30bd269143c00e9bd0c
4
- data.tar.gz: 6769b609787a604d20c9200126630613cf3ec9c8
3
+ metadata.gz: a7ad17272b7fced034b797eda9344a439359dbdb
4
+ data.tar.gz: b1f884f5faca5be9d1d6eeda894deee6e9892c5f
5
5
  SHA512:
6
- metadata.gz: dd86b32951f1e8886dee2206ccd74e5099c0c749977f8d23a0141ed97ce0bc7856124672d2eefd047d2333c281f0f99bd5384f6633804782aa45d1fc7a879ec9
7
- data.tar.gz: 3f16e8e7123370d584eda98181dc19edd219fcff0e3b26f7f52c24e13ee0c4c90916ee7d6f41a66c0be0d9815f4f8fb7ab09f7826acd3289b19b78aa1bd904b9
6
+ metadata.gz: 6899ac03e5b7ab0d8d4b61f9df65e8b2977ccb7532550c407dc37c924965f37d85ba65174c134483fb30be8c32c49020b24cd7995e310e8649315a6720848640
7
+ data.tar.gz: 6b733a9f3d5db422763374628b98f1724ac2ae370a320b1f99f28673cdb7f1744b5aaa9e74bb351535426ea54cbe11ec9af19e904854423eaf6d6abd61420685
data/README.md CHANGED
@@ -12,7 +12,7 @@ It works by subscribing to DBus notifications from Systemd. This means that ther
12
12
  * Ruby > 1.9.3
13
13
  * Systemd (v204 was used in development)
14
14
  * `mail` gem (if email notifier is used)
15
- * `slack-notifier` gem (if slack notifier is used)
15
+ * `slack-notifier` gem > 1.0 (if slack notifier is used)
16
16
 
17
17
  ## Installation
18
18
 
@@ -41,8 +41,7 @@ notifiers:
41
41
  authentication: "plain"
42
42
  enable_starttls_auto: true
43
43
  slack:
44
- team: myteam
45
- token: supersecr3ttoken
44
+ webhook_url: https://hooks.slack.com/services/super/secret/tokenthings
46
45
  channel: mychannel
47
46
  username: doge
48
47
  icon_emoji: ":computer"
@@ -4,7 +4,7 @@ require 'systemd_mon/notifiers/base'
4
4
  begin
5
5
  require 'slack-notifier'
6
6
  rescue LoadError
7
- raise SystemdMon::NotifierDependencyError, "The 'slack-notifier' gem is required by the slack notifier"
7
+ raise SystemdMon::NotifierDependencyError, "The 'slack-notifier' gem (> 1.0) is required by the slack notifier"
8
8
  end
9
9
 
10
10
  module SystemdMon::Notifiers
@@ -12,8 +12,7 @@ module SystemdMon::Notifiers
12
12
  def initialize(*)
13
13
  super
14
14
  self.notifier = ::Slack::Notifier.new(
15
- options.fetch('team'),
16
- options.fetch('token'),
15
+ options.fetch('webhook_url'),
17
16
  channel: options['channel'],
18
17
  username: options['username'],
19
18
  icon_emoji: options['icon_emoji'],
@@ -1,3 +1,3 @@
1
1
  module SystemdMon
2
- VERSION = "0.0.2"
2
+ VERSION = "0.1.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: systemd_mon
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jon Cairns
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-08-29 00:00:00.000000000 Z
11
+ date: 2015-03-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ruby-dbus