rails-erd-d3 0.2.8 → 0.3.0

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: fa725900c89d5ca60deaf1eb4a169230e4a14377
4
- data.tar.gz: 8100409a932ce1675853924f5e50288e68d71a14
3
+ metadata.gz: bba8a8e661b9123cbf4aa05d306f252cbdb228b4
4
+ data.tar.gz: cf1c2ab9c18e41c866c4e961499406c07efb16cf
5
5
  SHA512:
6
- metadata.gz: 5c61203361eab40cff15326e49a774f4736f8e1f36074e1fb6453208aeb916e3766a8540548d86060534c8c85406bd34233965e58d52c0930a7f9a8e19d7c8bd
7
- data.tar.gz: ee96c763ba532b0d6ff6b00d9555318ed33a375795f24386ff7cdf7573c9fcec7e62abe57458ffee84bf841ccffb23c2230b1b884f220c04be75b4bd7ce4a758
6
+ metadata.gz: 4b95a611d342bab59d32103a1b358880bfeec3799b1b4a89dfaded625d9f5993eab3b887e86c4700262445dfc1d3efcc9a8c6b3067b8f3a7f7abe3c66b033aea
7
+ data.tar.gz: 55c71455a479b28a500ad384e5f428ae900c1ba312945173044ca09b89bf1eefb60199de6777e1903d96c5d7ff3e3348ba736e37ee45f24d1a6bcef1b83d47ca
@@ -29,7 +29,7 @@
29
29
  .data(data.links)
30
30
  .enter()
31
31
  .append('line')
32
- .attr('class', function(d, i) { return data.nodes[i].label })
32
+ .attr('class', function(d, i) { return return data.nodes[d.source].label + ' ' + data.nodes[d.target].label })
33
33
  .attr('stroke', function(d) { return colorScale(d.color) });
34
34
 
35
35
  var node = svg.selectAll('.node')
@@ -115,11 +115,11 @@
115
115
  $(".visible").click(function(){
116
116
  var klass = $(this).attr("id");
117
117
 
118
- if $(this).prop("checked"){
119
- $(klass).hide();
118
+ if ($(this).prop("checked")){
119
+ $("." + klass).show();
120
120
  }
121
121
  else {
122
- $(klass).show();
122
+ $("." + klass).hide();
123
123
  }
124
124
  });
125
125
  </script>
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.2.8"
9
+ spec.version = "0.3.0"
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.2.8
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Roman Krasavtsev