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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c4d765e04744af371120ff8963b4435a5cded507
4
- data.tar.gz: 3070c25de18589db4dde7e1154553c7911ebc036
3
+ metadata.gz: 83e7698616e31bde137f07cd2e54b5d0efb5f327
4
+ data.tar.gz: d75478e075a77720bc0d22192a1dc4bd656ed6ae
5
5
  SHA512:
6
- metadata.gz: 3848b5b30accf802fcd4e8ae8d93431852ffa3a9eeb87e671e04d5cef3af9b42a185bc3dca5d2c590a7e988410b9a7298521ffe1d4369ea15cb99b6588d001a3
7
- data.tar.gz: 5570e0b772767c7c74a995b61e36089bb3c906283c6f294a0aa991b63717d988421eacf9c8860d239e5f79d3823e3e9266cfeea9041734f799a75d26bcd35598
6
+ metadata.gz: 2ccb307aa4e7ef6ceeac41e8e2f854c1ef16f7d13b79af0ff2f14e5970a3bda2ca8b642ffc5dad4a554692418b7df914f8edbd46c30f1c68a88a071ec5d89360
7
+ data.tar.gz: 8f498be36e7c89eaed4478ed0aea71bddd1a4072d320ba6c2e42bea16f1401c2c11d5f47fc4dfccc000b0a2e862dad30711f2cd1e3234037e2f5f24bcd6105d1
@@ -1,5 +1,5 @@
1
1
  Dir[(File.expand_path(File.dirname(__FILE__)) + "/agile_notifier/*.rb")].each { |file| require file }
2
2
 
3
3
  module AgileNotifier
4
- VERSION = '3.0.0'
4
+ VERSION = '3.0.1'
5
5
  end
@@ -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' )
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: agile_notifier
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0
4
+ version: 3.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jing Li