vv 0.0.4 → 0.0.5

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: 1c48205876964c325525e215eeb44d1102faaacbfdb6eaf7e13f87d8dac12ec8
4
- data.tar.gz: 9cb5aba28717d98ccf01aed2ebbb3702e2018c3adececa15133d74d0f2afad3a
3
+ metadata.gz: fc9816ffbbb65a857dd88d262e89cf58e3bd1d042a24469c24e31d31efbb07f8
4
+ data.tar.gz: c175c89043baa6b315acb9322dc90ca61d7131db7557eb20b996ee2826b04e18
5
5
  SHA512:
6
- metadata.gz: 21870db1e91747311a51a06e485580d6b461896872449cc0fc6000803ca809f293aafc1b51943e0601cc8fb4bb9be7ef04bfd52a281361ad1c35c61b57cf2d0d
7
- data.tar.gz: a45e0f33c37dd46011270b2da869b5790703e7ab4e5c79fb2d073e7222544b65c7851649991a21769b30234ef34cc255c647e63b4b80670842f5a9b5c5892346
6
+ metadata.gz: 47b2d6ec988b9d3fffa651fea830ff0d557b38f4d2ca97e82c25b1045ecfdae87818c679d1075966b684f2564b404c7a012947ddfb7e3373e28337eeecd2e075
7
+ data.tar.gz: ec330016777d295065e1ce3dd36dbf0b81ec7bfb8597d3479bc9241bceab77c2b2abe2781dd65a835c9b5cb59a9aab0a5c2658955dd32644d67d883c4a0c9d6a
@@ -34,7 +34,10 @@ module VV
34
34
  end
35
35
 
36
36
  def repo_directory missing_throws_exception: true
37
- directory_fragments = File.vv_split self.file_directory
37
+ _path = caller_locations(1)[0].path
38
+ _file_directory = File.expand_path(File.dirname(_path))
39
+
40
+ directory_fragments = File.vv_split _file_directory
38
41
 
39
42
  while directory_fragments.any?
40
43
  current_directory = File.join directory_fragments
@@ -57,7 +60,7 @@ module VV
57
60
  end
58
61
 
59
62
  def file_directory
60
- File.dirname caller_locations[0].path
63
+ File.expand_path(File.dirname(caller_locations[0].path))
61
64
  end
62
65
 
63
66
  def file
data/lib/vv/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module VV
2
- VERSION = '0.0.4'
2
+ VERSION = '0.0.5'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vv
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Zach Aysan
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-12-13 00:00:00.000000000 Z
11
+ date: 2018-12-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake