rails-erd-d3 0.7.2 → 0.7.3

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
  SHA1:
3
- metadata.gz: 33d1b573f37de1633f255fe41605ee7cd5581039
4
- data.tar.gz: b6572b563f9401ca8b1b439e8afe2b0690386019
3
+ metadata.gz: c5c19993e283e3e762cbaccc88e1f1038e8a1a21
4
+ data.tar.gz: 3cfe083cccc9f018baf88052c3b8ed42269ee987
5
5
  SHA512:
6
- metadata.gz: ceba001ee850d6f44f3ca116edca94025297670b9d5c35d9ca67b3fbac8817c99804243c310bc1bf3fe38b065e78b294f881174d043102429e35b96809ca4a5c
7
- data.tar.gz: 8d938d52b08c56670f4afa4cf5996829c5a004b1758a31c4af468dcde0497b184e0ee401b4581315c7b5897a557d592fdb07c7fc03db747bda1cf457d3b7ce6b
6
+ metadata.gz: da09ef3f74af921b67e713eec38dd607c2d1db854aacd52ad9274b55c2f3881b127d38ecfa9a2b929173915cdbf989d2c6be33875a087de2944eb9060b297f9d
7
+ data.tar.gz: f0627ee51c3e3059e450edfe4630247083ea98be8f835a6ae71ecb54c9b19c34fbc8426960b9a7820be1ca3c1e1424590ccb2c48f9fb6f86059598f97d4a2293
data/lib/rails_erd_d3.rb CHANGED
@@ -50,13 +50,12 @@ class RailsErdD3
50
50
  next if reflection.options[:polymorphic]
51
51
 
52
52
  targeted_model = name
53
- association = reflection.macro.to_s + (refl_data.options[:through] ? "_through" : "")
54
- color_index = ASSOCIATIONS.index(association)
53
+ association = reflection.macro.to_s + (reflection.options[:through] ? "_through" : "")
55
54
 
56
55
  links << {
57
56
  source: models_list[model.name],
58
57
  target: models_list[targeted_model],
59
- color: color_index
58
+ color: ASSOCIATIONS.index(association)
60
59
  }
61
60
  end
62
61
  end
data/rails-erd-d3.gemspec CHANGED
@@ -6,7 +6,7 @@ Gem::Specification.new do |spec|
6
6
  spec.name = "rails-erd-d3"
7
7
  spec.authors = ["Roman Krasavtsev"]
8
8
  spec.email = ["mr.krasavtsev@gmail.com"]
9
- spec.version = "0.7.2"
9
+ spec.version = "0.7.3"
10
10
  spec.summary = "Entity–relationship diagram with D3.js for Rails application"
11
11
  spec.description = "This gem creates entity–relationship diagram with D3.js for your Rails application"
12
12
  spec.homepage = "https://github.com/RomanKrasavtsev/rails-erd-d3"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails-erd-d3
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.2
4
+ version: 0.7.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Roman Krasavtsev