ruby-graphviz 1.2.0 → 1.2.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ee3e2c6ea3129992d49749953d36d348aea8266e
4
- data.tar.gz: 7d471149cc78c328ab5f676774e442910d432e4d
3
+ metadata.gz: 24f84152641dd8784bbc5529caa791810c614295
4
+ data.tar.gz: 564901ce3f1d6d7295ed99daa765d6f64dad71c8
5
5
  SHA512:
6
- metadata.gz: 27f49c9370581d707445cb64645e78f87393346c9d62f3f9d2d84e795d9960d636e443643f44ea9b4fef845e6242ce23ff8102cd351455eb677efbc36dc73d6b
7
- data.tar.gz: 588e4688a8896e6ad530b57d4c81ead08a42de98b87e8a8ad05afd744d9eaf7b1612ae2f766b9dee6b3243ef7fa51ada8eccc46c351c51bf711b3d935de28dc4
6
+ metadata.gz: 4c50ad403ee795a20127be72d92f07f73f85e67f90c7b24f6cc8102510d46a3e6cb22f724291db608f1e5c90b4c1e6b3fd4583bb22b1fdb6f605e426af98e5e7
7
+ data.tar.gz: a64c313d065edc61cec5b52ec4c0f4a1cd235afea041866498651882d3d75e48d7e3b8dd641b0e13f83a7f1924b55b98c30373b09260d41403be0a8466e2f3b5
@@ -1,5 +1,4 @@
1
1
  rvm:
2
- - 1.8.7
3
2
  - 1.9.3
4
3
  - 2.0.0
5
4
  - 2.1.0
@@ -3,7 +3,7 @@
3
3
  {<img src="https://secure.travis-ci.org/glejeune/Ruby-Graphviz.png" />}[http://travis-ci.org/glejeune/Ruby-Graphviz]
4
4
  {<img src="https://badge.fury.io/rb/ruby-graphviz.png" alt="Gem Version" />}[http://badge.fury.io/rb/ruby-graphviz]
5
5
 
6
- Copyright (C) 2004-2013 Gregoire Lejeune
6
+ Copyright (C) 2004-2014 Gregoire Lejeune
7
7
 
8
8
  * Doc : http://rdoc.info/projects/glejeune/Ruby-Graphviz
9
9
  * Sources : http://github.com/glejeune/Ruby-Graphviz
@@ -0,0 +1,19 @@
1
+ #!/usr/bin/ruby
2
+
3
+ $:.unshift( "../lib" )
4
+ require "graphviz"
5
+
6
+ g = nil
7
+ if ARGV[0]
8
+ g = GraphViz::new( "G", :path => ARGV[0] )
9
+ else
10
+ g = GraphViz::new( "G" )
11
+ end
12
+
13
+ g.add_nodes "english", label: 'hello'
14
+ g.add_nodes "chinese", label: '你好'
15
+ g.add_nodes "korean", label: '안녕하세요'
16
+ g.add_nodes "arabic", label: 'مرحبا'
17
+ g.add_nodes "russian", label: 'Алло'
18
+
19
+ g.output( :png => "#{$0}.png" )
@@ -41,7 +41,7 @@
41
41
  #
42
42
  class GraphViz
43
43
  module Constants
44
- RGV_VERSION = "1.2.0"
44
+ RGV_VERSION = "1.2.1"
45
45
 
46
46
  ## Const: Output formats
47
47
  FORMATS = [
@@ -43,7 +43,7 @@ class GraphViz
43
43
  end
44
44
  end
45
45
  begin
46
- out, err, status = Open3.capture3(*cmd)
46
+ out, err, status = Open3.capture3(*cmd, :binmode => true)
47
47
  [out, err, status.exitstatus]
48
48
  rescue NotImplementedError, NoMethodError
49
49
  IO.popen( *cmd ) do |stdout|
@@ -49,7 +49,7 @@ See </usr/share/doc/ruby-graphviz/> for more details.
49
49
 
50
50
  ## AUTHOR
51
51
 
52
- Copyright 2004-2013 Gregoire Lejeune
52
+ Copyright 2004-2014 Gregoire Lejeune
53
53
 
54
54
  This manual page is written by Praveen Arimbrathodiyl <praveen@debian.org> for
55
55
  Debian GNU System (GNU/Linux, GNU/kFreeBSD, GNU/Hurd).
@@ -41,7 +41,7 @@ See </usr/share/doc/ruby-graphviz/> for more details.
41
41
 
42
42
  ## AUTHOR
43
43
 
44
- Copyright 2004-2013 Gregoire Lejeune
44
+ Copyright 2004-2014 Gregoire Lejeune
45
45
 
46
46
  This manual page is written by Praveen Arimbrathodiyl <praveen@debian.org> for
47
47
  Debian GNU System (GNU/Linux, GNU/kFreeBSD, GNU/Hurd).
@@ -34,7 +34,7 @@ See </usr/share/doc/ruby-graphviz/> for more details.
34
34
 
35
35
  ## AUTHOR
36
36
 
37
- Copyright 2004-2013 Gregoire Lejeune
37
+ Copyright 2004-2014 Gregoire Lejeune
38
38
 
39
39
  This manual page is written by Praveen Arimbrathodiyl <praveen@debian.org> for
40
40
  Debian GNU System (GNU/Linux, GNU/kFreeBSD, GNU/Hurd).
@@ -41,7 +41,7 @@ See </usr/share/doc/ruby-graphviz/> for more details.
41
41
 
42
42
  ## AUTHOR
43
43
 
44
- Copyright 2004-2013 Gregoire Lejeune
44
+ Copyright 2004-2014 Gregoire Lejeune
45
45
 
46
46
  This manual page is written by Praveen Arimbrathodiyl <praveen@debian.org> for
47
47
  Debian GNU System (GNU/Linux, GNU/kFreeBSD, GNU/Hurd).
@@ -33,7 +33,7 @@ See </usr/share/doc/ruby-graphviz/> for more details.
33
33
 
34
34
  ## AUTHOR
35
35
 
36
- Copyright 2004-2013 Gregoire Lejeune
36
+ Copyright 2004-2014 Gregoire Lejeune
37
37
 
38
38
  This manual page is written by Praveen Arimbrathodiyl <praveen@debian.org> for
39
39
  Debian GNU System (GNU/Linux, GNU/kFreeBSD, GNU/Hurd).
@@ -24,24 +24,21 @@ Gem::Specification.new do |s|
24
24
  s.extra_rdoc_files = ["README.rdoc", "COPYING.rdoc", "AUTHORS.rdoc", "CHANGELOG.rdoc"]
25
25
  s.rdoc_options = ["--title", "Ruby/GraphViz", "--main", "README.rdoc"]
26
26
  s.post_install_message = %{
27
- Since version 0.9.2, Ruby/GraphViz can use Open3.popen3 (or not)
28
- On Windows, you can install 'win32-open3'
29
-
30
27
  You need to install GraphViz (http://graphviz.org/) to use this Gem.
31
28
 
32
29
  For more information about Ruby-Graphviz :
33
30
  * Doc : http://rdoc.info/projects/glejeune/Ruby-Graphviz
34
31
  * Sources : http://github.com/glejeune/Ruby-Graphviz
35
- * NEW - Mailing List : http://groups.google.com/group/ruby-graphviz
32
+ * Mailing List : http://groups.google.com/group/ruby-graphviz
36
33
 
37
34
  Last (important) changes :
38
- * GraphViz::Edge#each_attribut is deprecated, use GraphViz::Edge#each_attribute
39
- * GraphViz::GraphML#attributs is deprecated, use GraphViz::GraphML#attributes
40
- * GraphViz::Node#each_attribut is deprecated, use GraphViz::Node#each_attribute
35
+ Ruby-Graphviz no longer supports Ruby < 1.9.3
41
36
  }
42
37
 
43
38
  s.add_development_dependency 'rake'
44
39
  s.add_development_dependency 'rdoc'
45
40
  s.add_development_dependency 'bundler'
46
41
  s.add_development_dependency 'ronn' unless RUBY_PLATFORM == 'java'
42
+
43
+ s.required_ruby_version = '>= 1.9.3'
47
44
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-graphviz
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gregoire Lejeune
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-06-09 00:00:00.000000000 Z
11
+ date: 2014-07-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -201,6 +201,7 @@ files:
201
201
  - examples/sample71.rb
202
202
  - examples/sample72.rb
203
203
  - examples/sample73.rb
204
+ - examples/sample74.rb
204
205
  - examples/sample99.rb
205
206
  - examples/sdlshapes/README
206
207
  - examples/sdlshapes/sdl.ps
@@ -269,14 +270,10 @@ files:
269
270
  homepage: http://github.com/glejeune/Ruby-Graphviz
270
271
  licenses: []
271
272
  metadata: {}
272
- post_install_message: "\nSince version 0.9.2, Ruby/GraphViz can use Open3.popen3 (or
273
- not)\nOn Windows, you can install 'win32-open3'\n\nYou need to install GraphViz
274
- (http://graphviz.org/) to use this Gem.\n\nFor more information about Ruby-Graphviz
275
- :\n* Doc : http://rdoc.info/projects/glejeune/Ruby-Graphviz\n* Sources : http://github.com/glejeune/Ruby-Graphviz\n*
276
- NEW - Mailing List : http://groups.google.com/group/ruby-graphviz\n\nLast (important)
277
- changes :\n* GraphViz::Edge#each_attribut is deprecated, use GraphViz::Edge#each_attribute\n*
278
- GraphViz::GraphML#attributs is deprecated, use GraphViz::GraphML#attributes\n* GraphViz::Node#each_attribut
279
- is deprecated, use GraphViz::Node#each_attribute\n "
273
+ post_install_message: "\nYou need to install GraphViz (http://graphviz.org/) to use
274
+ this Gem.\n\nFor more information about Ruby-Graphviz :\n* Doc : http://rdoc.info/projects/glejeune/Ruby-Graphviz\n*
275
+ Sources : http://github.com/glejeune/Ruby-Graphviz\n* Mailing List : http://groups.google.com/group/ruby-graphviz\n\nLast
276
+ (important) changes :\nRuby-Graphviz no longer supports Ruby < 1.9.3\n "
280
277
  rdoc_options:
281
278
  - "--title"
282
279
  - Ruby/GraphViz
@@ -288,7 +285,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
288
285
  requirements:
289
286
  - - ">="
290
287
  - !ruby/object:Gem::Version
291
- version: '0'
288
+ version: 1.9.3
292
289
  required_rubygems_version: !ruby/object:Gem::Requirement
293
290
  requirements:
294
291
  - - ">="
@@ -296,7 +293,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
296
293
  version: '0'
297
294
  requirements: []
298
295
  rubyforge_project: ruby-asp
299
- rubygems_version: 2.2.2
296
+ rubygems_version: 2.3.0
300
297
  signing_key:
301
298
  specification_version: 4
302
299
  summary: Interface to the GraphViz graphing tool