gem_updater 2.0 → 2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4c799ef8e779d441c2f1940dda9bbe41c32161fe
4
- data.tar.gz: e6db5b7de7ff754a7852379b9799db135e856591
3
+ metadata.gz: 33285c76c02447a7111769943821d229a547d1c0
4
+ data.tar.gz: 8046bbfcd6a407a379b51e9caac6e949e2a9cc4c
5
5
  SHA512:
6
- metadata.gz: b79fbc4b4db34b1b04914d011781b121da8e8b00fda9f5dcb39dc5c43c97b7c8632294f2ee56290deadaaf4ef432b1fe8c0b4635dba062e346c832802fec18f4
7
- data.tar.gz: c4a335696813660297bdf16038814c6a4ddcba6ca215767a0f0c17183d7c08678d93b9cc5d019f120b4a4fed624f8cb56027896060a7421e43e78dca8ae53ec5
6
+ metadata.gz: 3761497e76cff609e439f066fad398cb3b8fd8fa6685aa9f0a7855c300a4233cb5ab97e353a297eed029903aff1471e7ba78ca10c552922b3907ad56f3489f21
7
+ data.tar.gz: 88fc3690e43c0af23087e83ccc3f0b3c220a5bb5bf0e4a9da26206fc0dfe8ef623b8565afb7fdf26915dd9f5a924703e0d33758ecade921b2a89474955e0b357
@@ -27,13 +27,13 @@ module GemUpdater
27
27
  #
28
28
  # @return [String, nil] URL of changelog
29
29
  def changelog
30
+ return unless uri
31
+
30
32
  @changelog ||= begin
31
- if uri
32
- Bundler.ui.warn "Looking for a changelog in #{uri}"
33
- doc = Nokogiri::HTML(open(uri))
33
+ Bundler.ui.warn "Looking for a changelog in #{uri}"
34
+ doc = Nokogiri::HTML(open(uri))
34
35
 
35
- find_changelog(doc)
36
- end
36
+ find_changelog(doc)
37
37
 
38
38
  rescue OpenURI::HTTPError # Uri points to nothing
39
39
  Bundler.ui.error "Cannot find #{uri}"
@@ -41,6 +41,9 @@ module GemUpdater
41
41
  rescue Errno::ETIMEDOUT # timeout
42
42
  Bundler.ui.error "#{uri} is down"
43
43
  false
44
+ rescue ArgumentError => e # x-oauth-basic raises userinfo not supported. [RFC3986]
45
+ Bundler.ui.error e
46
+ false
44
47
  end
45
48
  end
46
49
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gem_updater
3
3
  version: !ruby/object:Gem::Version
4
- version: '2.0'
4
+ version: '2.1'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Maxime Demolin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-01-01 00:00:00.000000000 Z
11
+ date: 2017-03-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -100,7 +100,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
100
100
  version: '0'
101
101
  requirements: []
102
102
  rubyforge_project:
103
- rubygems_version: 2.5.2
103
+ rubygems_version: 2.6.8
104
104
  signing_key:
105
105
  specification_version: 4
106
106
  summary: Update your gems and find their changelogs