gem_updater 0.5.0 → 0.5.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: 66ba0cea1b0c09848cc7e9662257d9f9e366b487
4
- data.tar.gz: 20527e80b3fc8da321ef1539a59d4e693aac2885
3
+ metadata.gz: 27c7996ff42a2e3eda3fba91eeb45442a8307381
4
+ data.tar.gz: b0127a223f6a8a2bccc06e63ef3968f8bec7a5cd
5
5
  SHA512:
6
- metadata.gz: 0740383ec2b47aa3d68adeb7f96e49e7bb7210e8c08ae74d02efc9557e3fc0a17e18fa7de9be0bfae404db30a091f0ba5dc09c7fe53d8c1b4c69dd8fb8beb559
7
- data.tar.gz: bb02299d459070caadb163aa9fe2f9624eacd5bd86aca23510844cff14ea5a19d50c52bdce416104194e45d13f51eed3c591808f5b82c95604d800bc6490440d
6
+ metadata.gz: 4636f9b761dbea13911929f99be8c051a698f59b63611ddef544fd5f84296b13ce20a2aab6718be3b4b9c99559d8eae921b8f6e2ca81f47fd7eb28335d45980f
7
+ data.tar.gz: 5e188efb8c1e052d2b829d03921ef0796d4a0993d2e933ff0930a111759d0cb7dbdae7a6b64ecba89bf00a12a971afa8e8bb95f6337d12b819bf91d40260644c
@@ -6,7 +6,11 @@ module GemUpdater
6
6
  # SourcePageParser is responsible for parsing a source page where
7
7
  # the gem code is hosted.
8
8
  class SourcePageParser
9
- HOSTS = { github: /github.com/, bitbucket: /bitbucket.org/ }.freeze
9
+ HOSTS = {
10
+ github: /github.com/,
11
+ bitbucket: /bitbucket.org/,
12
+ rubygems: /rubygems.org/
13
+ }.freeze
10
14
  MARKUP_FILES = %w[.md .rdoc .textile].freeze
11
15
  CHANGELOG_NAMES = %w[changelog ChangeLog history changes news].freeze
12
16
 
@@ -72,6 +76,8 @@ module GemUpdater
72
76
  URI "https://github.com#{uri.path}"
73
77
  when uri.host =~ HOSTS[:bitbucket]
74
78
  URI "https://#{uri.host}#{uri.path}"
79
+ when uri.host =~ HOSTS[:rubygems]
80
+ URI "https://#{uri.host}#{uri.path}"
75
81
  else
76
82
  uri
77
83
  end
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: 0.5.0
4
+ version: 0.5.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: 2016-04-09 00:00:00.000000000 Z
11
+ date: 2016-05-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler