graph 2.4.0 → 2.4.1
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.
- data.tar.gz.sig +0 -0
- data/History.txt +6 -0
- data/lib/graph.rb +4 -3
- data/test/test_graph.rb +1 -1
- metadata +4 -4
- metadata.gz.sig +0 -0
data.tar.gz.sig
CHANGED
|
Binary file
|
data/History.txt
CHANGED
data/lib/graph.rb
CHANGED
|
@@ -7,7 +7,7 @@ require "enumerator"
|
|
|
7
7
|
# dot format.
|
|
8
8
|
|
|
9
9
|
class Graph
|
|
10
|
-
VERSION = "2.4.
|
|
10
|
+
VERSION = "2.4.1" # :nodoc:
|
|
11
11
|
|
|
12
12
|
LIGHT_COLORS = %w(gray lightblue lightcyan lightgray lightpink
|
|
13
13
|
lightslategray lightsteelblue white)
|
|
@@ -339,8 +339,9 @@ class Graph
|
|
|
339
339
|
def to_s
|
|
340
340
|
result = []
|
|
341
341
|
|
|
342
|
-
type = graph ? "subgraph" : "digraph"
|
|
343
|
-
|
|
342
|
+
type = graph ? "subgraph " : "digraph "
|
|
343
|
+
type << "\"#{name}\"" if name and !name.empty?
|
|
344
|
+
result << type
|
|
344
345
|
result << " {"
|
|
345
346
|
|
|
346
347
|
graph_attribs.each do |line|
|
data/test/test_graph.rb
CHANGED
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: graph
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash:
|
|
4
|
+
hash: 29
|
|
5
5
|
prerelease:
|
|
6
6
|
segments:
|
|
7
7
|
- 2
|
|
8
8
|
- 4
|
|
9
|
-
-
|
|
10
|
-
version: 2.4.
|
|
9
|
+
- 1
|
|
10
|
+
version: 2.4.1
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- Ryan Davis
|
|
@@ -36,7 +36,7 @@ cert_chain:
|
|
|
36
36
|
FBHgymkyj/AOSqKRIpXPhjC6
|
|
37
37
|
-----END CERTIFICATE-----
|
|
38
38
|
|
|
39
|
-
date: 2012-01-
|
|
39
|
+
date: 2012-01-30 00:00:00 Z
|
|
40
40
|
dependencies:
|
|
41
41
|
- !ruby/object:Gem::Dependency
|
|
42
42
|
name: minitest
|
metadata.gz.sig
CHANGED
|
Binary file
|