gondler 0.4.0 → 0.4.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
  SHA1:
3
- metadata.gz: 2b03e013b9322bd0faafabde124037f99ea9ca05
4
- data.tar.gz: 9f94b158384ffa4485b7c2672310d1f89730f77f
3
+ metadata.gz: ffb22088c50d2f5dfc3e1825ff1a3e50f197e0c7
4
+ data.tar.gz: 985ac3c3e4af4fb8fbf3f4e679a511ff12b7964f
5
5
  SHA512:
6
- metadata.gz: 3ed581159fee0c15c4838b8b69d050a54b64e6dbad32033c08eac334c0f64aa377341abe419c86703daacdc52f59518588a6290c827ca05e0d6bcd668528d38c
7
- data.tar.gz: c7ace8ed50f1b1ae183712c45efda57819490f8d054a935dae9eb5b394fd264cc1cc4f3ef2bbbd1c57a81b494b16cca65c8b7cc10f9317b83cfdbc5cb20e7583
6
+ metadata.gz: 2f40be168bd9fac514dea219dfb9eb7dac7e165b670ff6b2dbb1a46b64e3acd7fa8c8550ba59dec30a5e7464150f2ed2c1f3450a6a4bef839e6ae8d73b0bbf63
7
+ data.tar.gz: c1141b9bfec3be84bda8a4f0683006cbbb271fdd9e40c575195802cb0f8715c70a75044a39ad36fdd77b7d6c74ed38b52e0849b474408146a776ab2aeb89dde7
data/README.md CHANGED
@@ -26,6 +26,8 @@ like gom's Gomfile
26
26
  ```ruby
27
27
  itself 'github.com/rosylilly/test'
28
28
 
29
+ autodetect
30
+
29
31
  gom 'github.com/golang/glog'
30
32
  package 'github.com/golang/glog'
31
33
 
@@ -69,10 +69,16 @@ module Gondler
69
69
  deps = `go list -f '{{join .Deps "\\n"}}' ./...`.strip.split(/\n+/)
70
70
 
71
71
  deps.each do |dep|
72
- gom(dep) unless dep.include?('.')
72
+ gom(dep) if external?(dep)
73
73
  end
74
74
  end
75
75
 
76
+ private
77
+
78
+ def external?(pkg)
79
+ pkg.include?('.') && (@itself.to_s.empty? || !pkg.include?(@itself.to_s))
80
+ end
81
+
76
82
  class NotFound < StandardError
77
83
  def initialize(gomfile)
78
84
  @gomfile = gomfile
@@ -1,3 +1,3 @@
1
1
  module Gondler
2
- VERSION = '0.4.0'
2
+ VERSION = '0.4.1'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gondler
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sho Kusano
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-12 00:00:00.000000000 Z
11
+ date: 2015-03-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake