graph 2.4.0 → 2.4.1

Sign up to get free protection for your applications and to get access to all the features.
data.tar.gz.sig CHANGED
Binary file
data/History.txt CHANGED
@@ -1,3 +1,9 @@
1
+ === 2.4.1 / 2012-01-30
2
+
3
+ * 1 minor enhancement:
4
+
5
+ * Quoted sub/graph names to allow characters like :. (damphyr)
6
+
1
7
  === 2.4.0 / 2012-01-16
2
8
 
3
9
  * 4 minor enhancements:
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.0" # :nodoc:
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
- result << "#{type} #{name}"
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
@@ -227,7 +227,7 @@ class TestGraph < MiniTest::Unit::TestCase
227
227
 
228
228
  graph << g
229
229
 
230
- g_s = "subgraph subgraph
230
+ g_s = "subgraph \"subgraph\"
231
231
  {
232
232
  \"a\";
233
233
  \"c\";
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: 31
4
+ hash: 29
5
5
  prerelease:
6
6
  segments:
7
7
  - 2
8
8
  - 4
9
- - 0
10
- version: 2.4.0
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-17 00:00:00 Z
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