tree_support 0.1.8 → 0.1.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/tree_support/inspector.rb +2 -2
- data/lib/tree_support/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c89734b286cc5eccd6f8a4c5358ad626474389ae6e630fc269fc3e0933549413
|
4
|
+
data.tar.gz: 5102281553341472bbfa6c26c5b6f11533e8abd1351197df54b0ee28beeaafc2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 983937cf42296e984713a8e3096ff09538cdd670c05dd85f4af1c0c67cd30ec8f43af42176ebe57b3b376c0b8fc88f1aa7d59a068bc0353d12cb9b9d49d955af
|
7
|
+
data.tar.gz: c6a5c0933ff4663c9f99ac42c7dd69a29f3e1006abcbeae710f45f2ad10a357469467a309e728f86e321c8aaad460caa79673e9120e0af168caa75df40916c55
|
@@ -19,7 +19,7 @@ module TreeSupport
|
|
19
19
|
new(*args, &block).tree(object)
|
20
20
|
end
|
21
21
|
|
22
|
-
def initialize(
|
22
|
+
def initialize(options = {}, &block)
|
23
23
|
@options = {
|
24
24
|
take: 256, # Up to depth N (for when the tree can not be displayed because it is huge)
|
25
25
|
drop: 0, # From the depth N (when set to 1 you can hide the route)
|
@@ -41,7 +41,7 @@ module TreeSupport
|
|
41
41
|
# parent.children
|
42
42
|
# name
|
43
43
|
#
|
44
|
-
def tree(object,
|
44
|
+
def tree(object, locals = {})
|
45
45
|
locals = {
|
46
46
|
depth: [],
|
47
47
|
}.merge(locals)
|
data/lib/tree_support/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tree_support
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- akicho8
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-03-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -184,7 +184,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
184
184
|
- !ruby/object:Gem::Version
|
185
185
|
version: '0'
|
186
186
|
requirements: []
|
187
|
-
rubygems_version: 3.
|
187
|
+
rubygems_version: 3.1.2
|
188
188
|
signing_key:
|
189
189
|
specification_version: 4
|
190
190
|
summary: Tree structure visualization function library
|