gem-src 0.10.0 → 0.10.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/gem-src.gemspec +1 -1
- data/lib/rubygems_plugin.rb +4 -0
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a93c64e073dd8c85650a46788d4b76d85ee40efd455a19d507c0bed311fccbf3
|
|
4
|
+
data.tar.gz: c4a8915c1a6374551a581709b9fd6946968cd23257f384e05acbcf002a950592
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1928ae1489a5240ca0769fa4c14749d9af7ebb1c25f19686ee6f283685ffeee20982c6a4abf270a5602251582473b9c2dfd16b5e6774f76ba3153654ed4fbb97
|
|
7
|
+
data.tar.gz: d6229ad675d2e53bef4d44bdbba1e20f70d1b2b07748a5eb671f23b9bd226bcfe3e622edc9482ea4cc1640d6e207ebb6af19e8e9319650fe368513e6d7bceb96
|
data/gem-src.gemspec
CHANGED
|
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
|
4
4
|
|
|
5
5
|
Gem::Specification.new do |gem|
|
|
6
6
|
gem.name = "gem-src"
|
|
7
|
-
gem.version = '0.10.
|
|
7
|
+
gem.version = '0.10.1'
|
|
8
8
|
gem.authors = ["Akira Matsuda"]
|
|
9
9
|
gem.email = ["ronnie@dio.jp"]
|
|
10
10
|
gem.description = 'Gem.post_install { `git clone gem_source src` }'
|
data/lib/rubygems_plugin.rb
CHANGED
|
@@ -35,6 +35,7 @@ module Gem
|
|
|
35
35
|
end
|
|
36
36
|
|
|
37
37
|
result = git_clone(source_code_uri_from_metadata) ||
|
|
38
|
+
git_clone(github_url(source_code_uri_from_metadata)) ||
|
|
38
39
|
git_clone(@spec.homepage) ||
|
|
39
40
|
git_clone(github_url(@spec.homepage)) ||
|
|
40
41
|
git_clone(source_code_uri) ||
|
|
@@ -100,6 +101,9 @@ module Gem
|
|
|
100
101
|
# https://foo.github.com/bar => https://github.com/foo/bar
|
|
101
102
|
"https://github.com/#{$1}/#{$2}"
|
|
102
103
|
end
|
|
104
|
+
elsif url =~ %r[\A(https?://github\.com/.+/.+)/tree/]
|
|
105
|
+
# https://github.com/foo/bar/tree/v1.2.3
|
|
106
|
+
$1
|
|
103
107
|
end
|
|
104
108
|
end
|
|
105
109
|
|