network_drawer 0.1.3 → 0.1.4
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bdae0066e1c9e98f383b63504202190aa1703c40
|
4
|
+
data.tar.gz: a9b63ca0011cf232fac4e66418a39d801fd6202e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 133763e20719c88b3df6e7f4e5a5797d34a608bc329f5572ada358c47bd6f683e28b80f0d2151f693871f80fff121c715eee0d3b20670b99c05d4401e59117ca
|
7
|
+
data.tar.gz: cc58257792de05ee0b9d092935f02f7ebc83f3679e76c241b4c68de9c6fd784956d0517d1183503ee648e002d968b13b2f102d55a084c24e79a92c6f8c771b67
|
data/examples/simple.svg
CHANGED
@@ -9,11 +9,11 @@
|
|
9
9
|
<g id="0" class="graph" transform="scale(1 1) rotate(0) translate(4 456)">
|
10
10
|
<title>simple</title>
|
11
11
|
<polygon fill="white" stroke="white" points="-4,4 -4,-456 332,-456 332,4 -4,4"/>
|
12
|
-
<g id="1" class="cluster"><title>
|
12
|
+
<g id="1" class="cluster"><title>cluster_1</title>
|
13
13
|
<polygon fill="none" stroke="black" points="105,-212 105,-408 295,-408 295,-212 105,-212"/>
|
14
14
|
<text text-anchor="middle" x="200" y="-390" font-family="Helvetica,sans-Serif" font-size="14.00">Web</text>
|
15
15
|
</g>
|
16
|
-
<g id="2" class="cluster"><title>
|
16
|
+
<g id="2" class="cluster"><title>cluster_2</title>
|
17
17
|
<polygon fill="none" stroke="black" points="63,-8 63,-204 320,-204 320,-8 63,-8"/>
|
18
18
|
<text text-anchor="middle" x="191.5" y="-186" font-family="Helvetica,sans-Serif" font-size="14.00">App</text>
|
19
19
|
</g>
|
@@ -63,8 +63,8 @@ module NetworkDrawer
|
|
63
63
|
end
|
64
64
|
|
65
65
|
def row_separator(index, size)
|
66
|
-
return '' unless self.max_column && self.max_column.
|
67
|
-
if ((index + 1) % self.max_column == 0) && index + 1 < size
|
66
|
+
return '' unless self.max_column && self.max_column.to_i > 0
|
67
|
+
if ((index + 1) % self.max_column.to_i == 0) && index + 1 < size
|
68
68
|
"</tr><tr border='1'>"
|
69
69
|
else
|
70
70
|
''
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: network_drawer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Hiroshi Ota
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-03-
|
11
|
+
date: 2015-03-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gviz
|