guard-webhook-notifier 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/guard-webhook-notifier/notifier.rb +1 -4
- data/lib/guard-webhook-notifier/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 93f9261a80253a3242732280bfe44594fca47516
|
4
|
+
data.tar.gz: b936d173f805087c1f3f755261b4a4b834678b9e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0db97c14e6197d547b73e4c6cb3de612f428d56aede10b568085908c3a2838bb49fde3dab7f2816d5cd9c4ee4367ff4ce49df1ae1b3025ad73897a36e8de2b0f
|
7
|
+
data.tar.gz: 60c9206a9ccccc514d5079fe6c377de7a331e7ebfd42984761fb4bf0e0c7ba473ace9d80fa8948caca77e8a34ebdf8a191083e49258fde91afe70a4d72ab089a
|
@@ -6,8 +6,7 @@ module GuardWebHookNotifier
|
|
6
6
|
class Notifier < Guard::Notifier::Base
|
7
7
|
DEFAULTS = {
|
8
8
|
user_agent: "GuardWebHookNotifier/#{VERSION}",
|
9
|
-
url: "http://10.0.2.2:4001/"
|
10
|
-
timeout: 1
|
9
|
+
url: "http://10.0.2.2:4001/"
|
11
10
|
}
|
12
11
|
|
13
12
|
def initialize(opts = {})
|
@@ -28,8 +27,6 @@ module GuardWebHookNotifier
|
|
28
27
|
req.headers["Content-Type"] = "application/json"
|
29
28
|
req.headers["User-Agent"] = opts[:user_agent]
|
30
29
|
req.body = { message: message, options: opts }.to_json
|
31
|
-
req.options.timeout = opts[:timeout]
|
32
|
-
req.options.open_timeout = opts[:timeout]
|
33
30
|
end
|
34
31
|
end
|
35
32
|
end
|