vagrant-properties 0.3.1 → 0.4.0

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: f28f636b6a7e89da63a75bfc676d42c167768756
4
- data.tar.gz: 1f14f6126b4c5dc284355df71dbc3b8344ddf54a
3
+ metadata.gz: 213da81f99531c415f04cc62bc1107a110c0cf3c
4
+ data.tar.gz: d87a876a3f33e125876133a5bf00f4ba40f85e1d
5
5
  SHA512:
6
- metadata.gz: 73cbf9bf0c98a40171507b4d6c12839f4f4bb6ae0d9c356960e1935f00b98cc642a0f080673731af3a60abab96625855d006987ac37024f482686c862034bdc1
7
- data.tar.gz: 4b9783af1a158665ec0e0591a72e190c9ba627a716e64634dedfbe2dd871658211df178587ab9b156edca8169c34294d70d416aba8cc5869501f773f3dbac362
6
+ metadata.gz: 18c2d7c0eac2b146e3840098d1d21364b470bc79b2cced1b28e61d46bff2086462f3070587f770ef9c82de54c32a598c4c7b6ab66885fa1361b98a12a81477c6
7
+ data.tar.gz: 020a4b5acfb651bf839c0743b713f3800e172b701046da4919b367d1315b5c63fdb7cba21823d24860e7f0ad8e335d58ecb479fc755b73d33de08fecd992bd06
@@ -43,7 +43,13 @@ module VagrantPlugins
43
43
  matched = repo.match(path_matcher)
44
44
 
45
45
  if ghq?
46
- path = "#{`ghq root`.chop}/#{matched[1..3].join('/')}"
46
+ ghq_root = `ghq root`.chomp
47
+
48
+ if ghq_root == "No help topic for 'root'"
49
+ raise StandardError.new '"ghq root" not found. please update ghq'
50
+ end
51
+
52
+ path = "#{ghq_root}/#{matched[1..3].join('/')}"
47
53
  ghq_get path, repo
48
54
  else
49
55
  path = "../#{matched[3]}"
@@ -1,5 +1,5 @@
1
1
  module VagrantPlugins
2
2
  module Properties
3
- VERSION = '0.3.1'
3
+ VERSION = '0.4.0'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-properties
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - linyows
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-04-07 00:00:00.000000000 Z
11
+ date: 2015-04-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler