mgmt 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/bin/mgmt +10 -2
  3. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e0dca341a6b2e3e10a68e4801180d0ccffa6765c
4
- data.tar.gz: d49f1de8ae327fc31b5ad1c521ea4c341ff7ff82
3
+ metadata.gz: 5c6cf9d464638ba78da01af66d7d4959b873c334
4
+ data.tar.gz: 266429d2c96b8984ac542f8227427ec0496e0de9
5
5
  SHA512:
6
- metadata.gz: cf018f3223b6f6ebde93cfcb515aa7e1022b57c4e8d890366baabb7fa8c984cfcb89fc0255208c1e49a6266e7aa0502d129ac5a822df9eb84c3a8da678c05480
7
- data.tar.gz: d2c5a7a62dd93fd5ce5ae3e690bb20294e6e87833b19385516722d57a382740b65f19964b989db7ff08853816c9c4f7c918f093b66542d1a8732ccfc77328e82
6
+ metadata.gz: b5fcd884d9bc32cec893b832caa24765ed8120b5e1a5927613b725c2557e9553d7d237cce189285a2e1ef029dee9be90ab79625aacedf35415684e8db25b775e
7
+ data.tar.gz: 932a0fe8d4be17b7cb39d14139b1ecc46ea9d93946ae9636f1033804120ebcdc74f0caceaa711a03f14dd722872078bec0d32962f84d37a529050c1c54a4e03f
data/bin/mgmt CHANGED
@@ -2,6 +2,7 @@
2
2
 
3
3
  require 'fileutils'
4
4
  require 'tempfile'
5
+ require 'pathname'
5
6
 
6
7
  module MGMT
7
8
  extend self
@@ -9,7 +10,7 @@ module MGMT
9
10
  DEPSFILE = "Gopherfile"
10
11
  LOCKFILE = "Gopherfile.lock"
11
12
  VENDOR = ".vendor"
12
- VERSION = "0.3.0"
13
+ VERSION = "0.3.1"
13
14
 
14
15
  def xputs(code, msg)
15
16
  code = nil if ENV['TERM'] != "xterm"
@@ -70,10 +71,17 @@ module MGMT
70
71
  end
71
72
 
72
73
  def exec(*c)
73
- ENV['GOPATH'] = "#{File.expand_path(VENDOR, ".")}:#{ENV['GOPATH']}"
74
+ ENV['GOPATH'] = [find_vendor, ENV['GOPATH']].join(':')
74
75
  Kernel.exec(*c)
75
76
  end
76
77
 
78
+ def find_vendor
79
+ Pathname.pwd.ascend do |dir|
80
+ vendor = dir.join(VENDOR)
81
+ return vendor if vendor.directory?
82
+ end
83
+ end
84
+
77
85
  class Deps < Array
78
86
 
79
87
  def self.parse(file, field)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mgmt
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dimitrij Denissenko
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-19 00:00:00.000000000 Z
11
+ date: 2015-08-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -57,7 +57,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
57
57
  version: '0'
58
58
  requirements: []
59
59
  rubyforge_project:
60
- rubygems_version: 2.4.6
60
+ rubygems_version: 2.4.7
61
61
  signing_key:
62
62
  specification_version: 4
63
63
  summary: a minimalistic, self-contained, massively opinionated dependency manager