backup 4.1.3 → 4.1.4

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: aa0b144330dcad2a6b8431298f2b67f74a7ef5ea
4
- data.tar.gz: 45e786c86125a2a83620f3ba17c73adb6d144ec0
3
+ metadata.gz: e110afb457f606859adec72aa58acf36f27b7c49
4
+ data.tar.gz: 3e8fc126423d5af081b4310de16be9658f90da96
5
5
  SHA512:
6
- metadata.gz: fc0d62798b5de148dcd56980645875d423fceea53350657f532f7bd5499ae9bd7ee561d691a7a4a4bc7482ff691f94adc776c1f81aaf4f28abded8b5607e71d7
7
- data.tar.gz: 4fed7271602ac403689a93665390d775e059c8d5758346752b35b4002bec1f05f9175704d0d5602c56f4f08b7346a8c72c33f57302dfe2820c9ce049c2c2f6d8
6
+ metadata.gz: 9c355ccc2c69758e0585501d376835bd83edf8be3bd3e248278f87916825e674a891748e5483a4431d000463d6e870587d406578e9a01d2b245b34878afaa19e
7
+ data.tar.gz: 366d9fee95f762c6d9313a52f797f881727d70e0f8a231d47e65b94dc3a8f1d7d0aaf52475d7f38d1dcd03007e2872946f10784661bbac9b2ed8d31c8f1135f6
@@ -7,12 +7,8 @@ module Backup
7
7
  class Slack < Base
8
8
 
9
9
  ##
10
- # The Team name
11
- attr_accessor :team
12
-
13
- ##
14
- # The Integration Token
15
- attr_accessor :token
10
+ # The incoming webhook url
11
+ attr_accessor :webhook_url
16
12
 
17
13
  ##
18
14
  # The channel to send messages to
@@ -151,7 +147,7 @@ module Backup
151
147
  end
152
148
 
153
149
  def uri
154
- @uri ||= "https://#{team}.slack.com/services/hooks/incoming-webhook?token=#{token}"
150
+ @uri ||= webhook_url
155
151
  end
156
152
  end
157
153
  end
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
2
 
3
3
  module Backup
4
- VERSION = '4.1.3'
4
+ VERSION = '4.1.4'
5
5
  end
@@ -6,11 +6,10 @@
6
6
  slack.on_warning = true
7
7
  slack.on_failure = true
8
8
 
9
- # The team name
10
- slack.team = 'my_team'
9
+ # The incoming webhook url
10
+ # https://hooks.slack.com/services/xxxxxxxx/xxxxxxxxx/xxxxxxxxxx
11
+ slack.webhook_url = 'xxxxxxxxxxxxxxxxxxxxxxxx'
11
12
 
12
- # The integration token
13
- slack.token = 'xxxxxxxxxxxxxxxxxxxxxxxx'
14
13
 
15
14
  ##
16
15
  # Optional
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: backup
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.1.3
4
+ version: 4.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael van Rooijen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-11-21 00:00:00.000000000 Z
11
+ date: 2014-12-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable