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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/dorian/git/tree.rb +1 -1
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 04af5c2eb017066ef0c51c4e4a9be09fe0db93fe1910c21dd5d548193f2435c0
4
- data.tar.gz: b5cb32c3cec0101276085e2b10497a5d8a0dacab5ec034229c470cc8afa7e5fd
3
+ metadata.gz: 762b4e2cd1593f83a9a6dda5fb0442a4d4ecd8860c6f6adc25720740d33b07a7
4
+ data.tar.gz: d1f0a23425cee2ffa20a0815b75dd01c424bd45db9bf83921757a2c6ca0a7db0
5
5
  SHA512:
6
- metadata.gz: 156fb05f12b601339ee98bcfa4ad6a208b607748b1743f4b5e123056d428eeb361a18e8b8182b5e0973b409a105319f3e5a0d1c11ceaba51d5e3c860290bdb08
7
- data.tar.gz: 0c2f4230381f94549ec95145735f1816da1db669ef206371be10b6944c2f3076dbdac0c8db0219220ca7fe93ccfe949f7233daf2d7915f46e98714497cdacb30
6
+ metadata.gz: 9211aa65935897be97707376c9b75a0f45d12472a142a9e0c7ba91827e69e20cf3178989e3c79995e720b7a35999af0e589ff29e17c34f55f67e04cc1fedde5f
7
+ data.tar.gz: 1d7266f1f0f06a985090baa605b4c5c44148345bcc8cd7f3fd5ddaa6d7160e8332d96ed9b8b5f857bbc18b5fa26b4ac4d723db69b8fd1f8391588e801f80d33f
@@ -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(
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dorian-git-tree
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dorian Marié