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 +4 -4
- data/lib/gem_updater/source_page_parser.rb +7 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 27c7996ff42a2e3eda3fba91eeb45442a8307381
|
4
|
+
data.tar.gz: b0127a223f6a8a2bccc06e63ef3968f8bec7a5cd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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 = {
|
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.
|
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-
|
11
|
+
date: 2016-05-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|