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 +4 -4
- data/lib/vv/file_methods.rb +5 -2
- data/lib/vv/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fc9816ffbbb65a857dd88d262e89cf58e3bd1d042a24469c24e31d31efbb07f8
|
4
|
+
data.tar.gz: c175c89043baa6b315acb9322dc90ca61d7131db7557eb20b996ee2826b04e18
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 47b2d6ec988b9d3fffa651fea830ff0d557b38f4d2ca97e82c25b1045ecfdae87818c679d1075966b684f2564b404c7a012947ddfb7e3373e28337eeecd2e075
|
7
|
+
data.tar.gz: ec330016777d295065e1ce3dd36dbf0b81ec7bfb8597d3479bc9241bceab77c2b2abe2781dd65a835c9b5cb59a9aab0a5c2658955dd32644d67d883c4a0c9d6a
|
data/lib/vv/file_methods.rb
CHANGED
@@ -34,7 +34,10 @@ module VV
|
|
34
34
|
end
|
35
35
|
|
36
36
|
def repo_directory missing_throws_exception: true
|
37
|
-
|
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
|
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
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
|
+
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-
|
11
|
+
date: 2018-12-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|