prospectus_golang 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/prospectus_golang.rb +2 -1
- data/prospectus_golang.gemspec +1 -1
- 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: a3814f22198c851fcfc1aa8bcb7b165884d49b866d43c7a5d9ba9bacaabff193
|
4
|
+
data.tar.gz: 61f08b32db57ab66deff15621321566d8f1490003995aa35839cee7ae20dc004
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 81adae1122ff942f48f94ac74cf270b8a38b2746f704620c781f7e0c2edfc09cf0e64c9ba99fa1b0def340dae5e8d550ed63dab35481e9f811b9c6b3799adb1b
|
7
|
+
data.tar.gz: 8feeec754b0c877d54d60da6f20953bea9442e5c548d305a837919b07a7215f0e2110f2fb49b3db2aa2379dd3daa9ce0fdba8fdc795015753a8fe16482fd35c4
|
data/lib/prospectus_golang.rb
CHANGED
@@ -52,7 +52,8 @@ module ProspectusGolang
|
|
52
52
|
when %r{^golang\.org/x/}
|
53
53
|
return "golang/#{name.split('/').last}"
|
54
54
|
when /^gopkg\.in/
|
55
|
-
|
55
|
+
path = name.match(%r{^gopkg\.in/(.*?)(\.v\d+)?$})[1]
|
56
|
+
return path.include?('/') ? path : "go-#{path}/#{path}"
|
56
57
|
end
|
57
58
|
raise "Name not parsed properly: #{name}"
|
58
59
|
end
|
data/prospectus_golang.gemspec
CHANGED