agile_notifier 3.0.0 → 3.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/agile_notifier.rb +1 -1
- data/lib/agile_notifier/github.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: 83e7698616e31bde137f07cd2e54b5d0efb5f327
|
4
|
+
data.tar.gz: d75478e075a77720bc0d22192a1dc4bd656ed6ae
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2ccb307aa4e7ef6ceeac41e8e2f854c1ef16f7d13b79af0ff2f14e5970a3bda2ca8b642ffc5dad4a554692418b7df914f8edbd46c30f1c68a88a071ec5d89360
|
7
|
+
data.tar.gz: 8f498be36e7c89eaed4478ed0aea71bddd1a4072d320ba6c2e42bea16f1401c2c11d5f47fc4dfccc000b0a2e862dad30711f2cd1e3234037e2f5f24bcd6105d1
|
data/lib/agile_notifier.rb
CHANGED
@@ -15,7 +15,6 @@ module AgileNotifier
|
|
15
15
|
|
16
16
|
def initialize(url, args = {})
|
17
17
|
super
|
18
|
-
@url.gsub!(/github\./, 'api.github.')
|
19
18
|
basic_auth = args.fetch(:basic_auth, nil)
|
20
19
|
access_token = args.fetch(:Authorization, nil)
|
21
20
|
if basic_auth
|
@@ -35,6 +34,7 @@ module AgileNotifier
|
|
35
34
|
availability = false
|
36
35
|
end
|
37
36
|
else
|
37
|
+
@url.gsub!(/github\./, 'api.github.')
|
38
38
|
status_url = url.gsub(/:\/\/api\./, '://status.') + '/api/status.json'
|
39
39
|
status = self.class.get_value('status', status_url)
|
40
40
|
availability = ( status == 'good' )
|