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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5e6946dc63a485f5939fca1a2c47ad77a17fc3f04e82c6e1c77247cb1a10f59f
4
- data.tar.gz: ac18529425ac578f20d7582e2a90dd9b661dfef4febb87bd847d45ee7ad218dc
3
+ metadata.gz: a3814f22198c851fcfc1aa8bcb7b165884d49b866d43c7a5d9ba9bacaabff193
4
+ data.tar.gz: 61f08b32db57ab66deff15621321566d8f1490003995aa35839cee7ae20dc004
5
5
  SHA512:
6
- metadata.gz: 1c07c8e155b907fe4f8be91f7d6b7c123e4fbb2af9e23c4b7e2b413057f676e2c01a6704b3a853c5f78e268b804c28cc187d1d86322a091a76a647f284c154f0
7
- data.tar.gz: 433c3ead7e0f90ec0f8c9aba9def97990e2bab1b086a581e80daf164d41c6c2c6def543f6a986a04725574dd75ac00f350853f74eabd7bb8b27f5d9771226c37
6
+ metadata.gz: 81adae1122ff942f48f94ac74cf270b8a38b2746f704620c781f7e0c2edfc09cf0e64c9ba99fa1b0def340dae5e8d550ed63dab35481e9f811b9c6b3799adb1b
7
+ data.tar.gz: 8feeec754b0c877d54d60da6f20953bea9442e5c548d305a837919b07a7215f0e2110f2fb49b3db2aa2379dd3daa9ce0fdba8fdc795015753a8fe16482fd35c4
@@ -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
- return name.match(%r{^gopkg\.in/(.*?)(\.v\d+)?$})[1]
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
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'prospectus_golang'
3
- s.version = '0.1.1'
3
+ s.version = '0.1.2'
4
4
  s.date = Time.now.strftime('%Y-%m-%d')
5
5
 
6
6
  s.summary = 'Prospectus helpers for golang'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: prospectus_golang
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Les Aker