treely 1.0.5 → 1.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/treely.rb +1 -1
- data/lib/treely/tree.rb +2 -2
- 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: 3ada2893182b188a97d04a1844edbb4dab5265be041acc9cebbc6fa1c27a94d9
|
4
|
+
data.tar.gz: e7eda4c56eb35c0e23089f52ccf3005abfb57b2c67b1597a97c4390a232b1e57
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f54267ed8875380568156048cff035f281c5b635a9f9bfd64dfc783b621dfee1c3c9a5fe5e8973910cb94863447ae80466fad78b7a439608b7d28033495eccf5
|
7
|
+
data.tar.gz: 611dec22b0e4cd79db1987658dc59ec4131e2a1ef0fc57fedf71befd5d3d5b5b1c665ad204428e5f428d5e4f415b1cbe246e88721790cbf1264b8e0163f2f937
|
data/lib/treely.rb
CHANGED
data/lib/treely/tree.rb
CHANGED
@@ -18,12 +18,12 @@ module Treely
|
|
18
18
|
@contents << @style[index.zero? ? :dot : :bar]
|
19
19
|
@contents << @style[:new_line]
|
20
20
|
@contents << args.map { |name| @style[name] }.join
|
21
|
-
@contents << @style[source[index
|
21
|
+
@contents << @style[source[index.next] ? :branch : :last_branch]
|
22
22
|
@contents << item.fetch(:name)
|
23
23
|
@contents << @style[:new_line]
|
24
24
|
|
25
25
|
if item.has_key?(:contents)
|
26
|
-
treely item[:contents], *args, (source[index
|
26
|
+
treely item[:contents], *args, (source[index.next] ? :bar : :indent)
|
27
27
|
end
|
28
28
|
end
|
29
29
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: treely
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- matark
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-05-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: minitest
|