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 +4 -4
- data/lib/templates/d3.html.erb +1 -1
- data/lib/templates/modals.html.erb +3 -3
- data/rails-erd-d3.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: bba8a8e661b9123cbf4aa05d306f252cbdb228b4
|
|
4
|
+
data.tar.gz: cf1c2ab9c18e41c866c4e961499406c07efb16cf
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4b95a611d342bab59d32103a1b358880bfeec3799b1b4a89dfaded625d9f5993eab3b887e86c4700262445dfc1d3efcc9a8c6b3067b8f3a7f7abe3c66b033aea
|
|
7
|
+
data.tar.gz: 55c71455a479b28a500ad384e5f428ae900c1ba312945173044ca09b89bf1eefb60199de6777e1903d96c5d7ff3e3348ba736e37ee45f24d1a6bcef1b83d47ca
|
data/lib/templates/d3.html.erb
CHANGED
|
@@ -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[
|
|
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).
|
|
118
|
+
if ($(this).prop("checked")){
|
|
119
|
+
$("." + klass).show();
|
|
120
120
|
}
|
|
121
121
|
else {
|
|
122
|
-
$(klass).
|
|
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.
|
|
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"
|