dorian-git-tree 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/dorian/git/tree.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 762b4e2cd1593f83a9a6dda5fb0442a4d4ecd8860c6f6adc25720740d33b07a7
|
4
|
+
data.tar.gz: d1f0a23425cee2ffa20a0815b75dd01c424bd45db9bf83921757a2c6ca0a7db0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9211aa65935897be97707376c9b75a0f45d12472a142a9e0c7ba91827e69e20cf3178989e3c79995e720b7a35999af0e589ff29e17c34f55f67e04cc1fedde5f
|
7
|
+
data.tar.gz: 1d7266f1f0f06a985090baa605b4c5c44148345bcc8cd7f3fd5ddaa6d7160e8332d96ed9b8b5f857bbc18b5fa26b4ac4d723db69b8fd1f8391588e801f80d33f
|
data/lib/dorian/git/tree.rb
CHANGED
@@ -17,7 +17,7 @@ module Dorian
|
|
17
17
|
key = ARGV.first || "."
|
18
18
|
files = git_ls_files(key)
|
19
19
|
values = group(files)
|
20
|
-
key = "#{key}/" if values.any? && key != "."
|
20
|
+
key = "#{key}/" if values.any? && key != "." && key[-1] != "/"
|
21
21
|
puts key
|
22
22
|
values.each.with_index do |(value_key, value_values), value_index|
|
23
23
|
print(
|