tree_support 0.1.8 → 0.1.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 86f8f6f091e4c0c97f45e7df4069c33df3d0d2dd32b939601f8cec7d1cf67d85
4
- data.tar.gz: e92d7692b51ea6a1d05816d01fd5b6d0cc70a1294d1d6919973512d6a3400148
3
+ metadata.gz: c89734b286cc5eccd6f8a4c5358ad626474389ae6e630fc269fc3e0933549413
4
+ data.tar.gz: 5102281553341472bbfa6c26c5b6f11533e8abd1351197df54b0ee28beeaafc2
5
5
  SHA512:
6
- metadata.gz: 58d4a14a2fe20daa03c18d3341be8432e45af2905e29bda7fe8ec8c49a10589803ac381592893f9d69ec390a7319e5ad8f0fa060a47aa65a9c0dc3227bdcbb0c
7
- data.tar.gz: 3dcd4db10cbe4f28abc6cb42b0c1c532e79c0bff768efd7320d128c7bae88c1bae0bf51236f17602a23a6ef2824d1ee582ce94919d2e9ff1bfa26749b60a3647
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(**options, &block)
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, **locals)
44
+ def tree(object, locals = {})
45
45
  locals = {
46
46
  depth: [],
47
47
  }.merge(locals)
@@ -1,3 +1,3 @@
1
1
  module TreeSupport
2
- VERSION = "0.1.8"
2
+ VERSION = "0.1.9"
3
3
  end
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.8
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: 2019-11-27 00:00:00.000000000 Z
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.0.3
187
+ rubygems_version: 3.1.2
188
188
  signing_key:
189
189
  specification_version: 4
190
190
  summary: Tree structure visualization function library