object_tree 1.1.1 → 1.1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 48a70e1f39f76b5b4d419624b530d39f2c46ad68
4
- data.tar.gz: bcd13d918131b0e05c5cb8e92d4d99106bcaa73c
3
+ metadata.gz: d63d7ab4059465f15e942407cd5adbdf55fff2b0
4
+ data.tar.gz: 6a4c4d2b489c0c6f3fb59b9ac39f334763205d59
5
5
  SHA512:
6
- metadata.gz: 9884f766ad86366782885190ee7c5922044d051be2092fa0a39d542ff06811d8b18d20651d171e036312fea211c14c0fd6bc4e16ba28355e3cb81e4992ceb456
7
- data.tar.gz: e7bfa5bde66845911bc8c716e3ba95293e8cb9b7f58e6584d562bfabf12686742f492fc670dab131069f765b3fce0a93bb6fdaf7ccd85546077f44e635260d3c
6
+ metadata.gz: 0a952724005b940a16259d80231a5ba92c7a8feb9d4a17ee2b2cb92e936b21a013c53237ff8b7365ac7bdd7fc9f0e166aab6a264efa46108942b3457c59b030e
7
+ data.tar.gz: 56607c82c76f2566d0f42338c62a2ce9a6d533ddca54ab4e5eed14a29d58ec5d0531f1df43985e38c9a4b89074aa640db8b09e2106a17ddff267bd735e487ba5
@@ -14,7 +14,7 @@ class ObjectTree
14
14
  end
15
15
 
16
16
  def initialize(klass)
17
- @tree = Hash.new {|h,k| h[k] = [] }
17
+ @tree = {}
18
18
  @queue = []
19
19
  parse(klass)
20
20
  end
@@ -41,6 +41,7 @@ class ObjectTree
41
41
 
42
42
  def parse(klass, space = '', path: [])
43
43
  path << klass
44
+ @tree[path.join('/')] = []
44
45
  modules = get_modules(klass, path.reverse)
45
46
  @queue << output_node(klass)
46
47
 
@@ -1,3 +1,3 @@
1
1
  class ObjectTree
2
- VERSION = "1.1.1"
2
+ VERSION = "1.1.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: object_tree
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - siman-man