gem-src 0.10.0 → 0.10.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
  SHA256:
3
- metadata.gz: 70651b92bbaa9d17a2f084c7e2ff97adf2b40a2ebe4ec00deae616afec1fe995
4
- data.tar.gz: 5ac36fd408e1b1f96945986c6f4bef28d737b2ef8e0d8b9e66a913c16a76dede
3
+ metadata.gz: a93c64e073dd8c85650a46788d4b76d85ee40efd455a19d507c0bed311fccbf3
4
+ data.tar.gz: c4a8915c1a6374551a581709b9fd6946968cd23257f384e05acbcf002a950592
5
5
  SHA512:
6
- metadata.gz: 1ac67aa2d4b6f7ac57ffebb80e1ebed510477117dc9e3ce3573d51d9b9b146ab2152dbdf6ad3928220e7ac6d6353808687d1548f6e310a0730def45826ba24e1
7
- data.tar.gz: 9e2818b0389ab44f3cf537ecfcf85c00adb77d9d59edad7010ca7471aabf411403aeedb97fc4426651e372bcb788b741239f7fb9122603953544397c500ee531
6
+ metadata.gz: 1928ae1489a5240ca0769fa4c14749d9af7ebb1c25f19686ee6f283685ffeee20982c6a4abf270a5602251582473b9c2dfd16b5e6774f76ba3153654ed4fbb97
7
+ data.tar.gz: d6229ad675d2e53bef4d44bdbba1e20f70d1b2b07748a5eb671f23b9bd226bcfe3e622edc9482ea4cc1640d6e207ebb6af19e8e9319650fe368513e6d7bceb96
@@ -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.0'
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` }'
@@ -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
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gem-src
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.0
4
+ version: 0.10.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Akira Matsuda