dependency-trees 0.0.5 → 0.0.6

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
  SHA256:
3
- metadata.gz: d7bece88844a0b550c9d20a760c4117baf3855b23691d6cf2587b93826468ed4
4
- data.tar.gz: 16a7a5f35a91a69189e84f89a00bb48c9f60fc1ca22ac5ab54b33086c3b19b89
3
+ metadata.gz: 2f94a5e608baca58c77d811b8af7dab324c4652f45d56af93a4d3bcabfbf25b5
4
+ data.tar.gz: f5cdb7dbccc0d4a0cf6f3926dbb58301a33dec7c717cdc77bdc545e767ee16a9
5
5
  SHA512:
6
- metadata.gz: c22a3aca65a95892ee610ed02a8675b7f80eb04da6f2983e2fce6f4eb9c4acc61e91da06d14ebe5d8448fd377ffe92204fe9bb6f73db637c5874aec8fc2b0632
7
- data.tar.gz: c4f58e0936b57cc19f286f3f43fd70c5be86eed731ef08b498abd88a4f523ab3763172393ad77f2ab4e279e7570fbf12e87f76d0d3c7250be02d488fc42bd0a1
6
+ metadata.gz: 5c98a10353eca2d97ef8ae4d9ec575b66bd80b4f1a831f8ed1060d0363cd57d25f6fd9e602ca64cebec4599d590ada00f7dc083b2ab928ed73487e859ef44bc7
7
+ data.tar.gz: 3debcf463ecde665bf14f925db481802acc0a9ff65edc8efe5c8a5572461952a8bc6f6f456bc866d6ef206c278e6bf3529bda9571f1dfda5cfa1e5d9262c7811
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'dependency-trees'
3
- s.version = '0.0.5'
3
+ s.version = '0.0.6'
4
4
  s.summary = 'Tool for better visualizing and managing dependencies'
5
5
  s.authors = ['Karol Selak']
6
6
  s.required_ruby_version = Gem::Requirement.new(">= 2.3.0")
@@ -119,6 +119,7 @@ module DependencyTree
119
119
  result = shoud_go_deeper ? get_associations_for_tree(depth, hash_for_duplication_check) : Tree.new
120
120
  result[:id] = id
121
121
  result[:instance] = self
122
+ result[:class] = self.class.to_s.underscore
122
123
  result[:duplicate] = true if is_duplicate
123
124
  result
124
125
  end
@@ -135,7 +136,6 @@ module DependencyTree
135
136
  self.send(association.name).sort_by(&:id).map do |associated_object|
136
137
  result[symbol] = [] if result[symbol].nil?
137
138
  result[symbol] << associated_object.dependency_tree(depth - 1, hash_for_duplication_check)
138
- result[:class] = association.klass.name.underscore.to_sym
139
139
  end
140
140
  end
141
141
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dependency-trees
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Karol Selak