ruby-graphviz 1.0.8 → 1.0.9

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/man/gem2gv.1 ADDED
@@ -0,0 +1,60 @@
1
+ .\" generated with Ronn/v0.7.3
2
+ .\" http://github.com/rtomayko/ronn/tree/0.7.3
3
+ .
4
+ .TH "GEM2GV" "1" "April 2013" "" ""
5
+ .
6
+ .SH "NAME"
7
+ \fBgem2gv\fR \- create a dependency graph between gems
8
+ .
9
+ .SH "SYNOPSIS"
10
+ \fBgem2gv\fR [\fB\-T\fR\fIformat\fR] [\fB\-o\fR\fIfile\fR] [\fB\-h\fR] [\fB\-V\fR] \fIgemname\fR
11
+ .
12
+ .SH "DESCRIPTION"
13
+ \fBgem2gv\fR is a tool that allows you to create a dependency graph between gems\.
14
+ .
15
+ .P
16
+ See </usr/share/doc/ruby\-graphviz/> for more details\.
17
+ .
18
+ .SH "OPTIONS"
19
+ .
20
+ .TP
21
+ \fB\-T\fR, \fB\-\-output\-format\fR [\fIformat\fR]
22
+ Output format (default: png)
23
+ .
24
+ .TP
25
+ \fB\-o\fR, \fB\-\-output\-file\fR [\fIfile\fR]
26
+ Path to output image file (default: STDOUT)
27
+ .
28
+ .TP
29
+ \fB\-p\fR, \fB\-\-path\fR
30
+ Graphviz path
31
+ .
32
+ .TP
33
+ \fB\-u\fR, \fB\-\-use\fR [\fIPROGRAM\fR]
34
+ Program to use (default: dot)
35
+ .
36
+ .TP
37
+ \fB\-s\fR, \fB\-\-stop\fR \fILIB\fR[,\fILIB\fR[, \.\.\.]]
38
+ Stop on libs
39
+ .
40
+ .TP
41
+ \fB\-V\fR, \fB\-\-version\fR
42
+ Show version
43
+ .
44
+ .TP
45
+ \fB\-h\fR, \fB\-\-help\fR
46
+ Show this usage message
47
+ .
48
+ .SH "EXAMPLE"
49
+ .
50
+ .nf
51
+
52
+ gem2gv \-Tpng \-oruby\-graphviz\.png ruby\-graphviz
53
+ .
54
+ .fi
55
+ .
56
+ .SH "AUTHOR"
57
+ Copyright 2004\-2013 Gregoire Lejeune
58
+ .
59
+ .P
60
+ This manual page is written by Praveen Arimbrathodiyl \fIpraveen@debian\.org\fR for Debian GNU System (GNU/Linux, GNU/kFreeBSD, GNU/Hurd)\.
data/man/gem2gv.1.ronn ADDED
@@ -0,0 +1,47 @@
1
+ gem2gv(1) - create a dependency graph between gems
2
+ ==================================================
3
+
4
+ ## SYNOPSIS
5
+
6
+ `gem2gv` [`-T`<format>] [`-o`<file>] [`-h`] [`-V`] <gemname>
7
+
8
+ ## DESCRIPTION
9
+
10
+ `gem2gv` is a tool that allows you to create a dependency graph
11
+ between gems.
12
+
13
+ See </usr/share/doc/ruby-graphviz/> for more details.
14
+
15
+ ## OPTIONS
16
+
17
+ * `-T`, `--output-format` [<format>]:
18
+ Output format (default: png)
19
+
20
+ * `-o`, `--output-file` [<file>]:
21
+ Path to output image file (default: STDOUT)
22
+
23
+ * `-p`, `--path`:
24
+ Graphviz path
25
+
26
+ * `-u`, `--use` [<PROGRAM>]:
27
+ Program to use (default: dot)
28
+
29
+ * `-s`, `--stop` <LIB>[,<LIB>[, ...]]:
30
+ Stop on libs
31
+
32
+ * `-V`, `--version`:
33
+ Show version
34
+
35
+ * `-h`, `--help`:
36
+ Show this usage message
37
+
38
+ ## EXAMPLE
39
+
40
+ gem2gv -Tpng -oruby-graphviz.png ruby-graphviz
41
+
42
+ ## AUTHOR
43
+
44
+ Copyright 2004-2013 Gregoire Lejeune
45
+
46
+ This manual page is written by Praveen Arimbrathodiyl <praveen@debian.org> for
47
+ Debian GNU System (GNU/Linux, GNU/kFreeBSD, GNU/Hurd).
data/man/git2gv.1 ADDED
@@ -0,0 +1,48 @@
1
+ .\" generated with Ronn/v0.7.3
2
+ .\" http://github.com/rtomayko/ronn/tree/0.7.3
3
+ .
4
+ .TH "GIT2GV" "1" "April 2013" "" ""
5
+ .
6
+ .SH "NAME"
7
+ \fBgit2gv\fR \- show your git commits graphically
8
+ .
9
+ .SH "SYNOPSIS"
10
+ \fBgit2gv\fR [\fB\-T\fR\fIformat\fR] [\fB\-o\fR\fIfile\fR] [\fB\-h\fR] [\fB\-V\fR]
11
+ .
12
+ .SH "DESCRIPTION"
13
+ \fBgit2gv\fR is a tool that allows you to show your git commits graphically\.
14
+ .
15
+ .P
16
+ See </usr/share/doc/ruby\-graphviz/> for more details\.
17
+ .
18
+ .SH "OPTIONS"
19
+ .
20
+ .TP
21
+ \fB\-T\fR, \fB\-\-output\-format\fR [\fIformat\fR]
22
+ Output format (default: png)
23
+ .
24
+ .TP
25
+ \fB\-\-nothugly\fR
26
+ Use nothugly if SVG output
27
+ .
28
+ .TP
29
+ \fB\-o\fR, \fB\-\-output\-file\fR [\fIfile\fR]
30
+ Path to output image file (default: STDOUT)
31
+ .
32
+ .TP
33
+ \fB\-p\fR, \fB\-\-path\fR
34
+ Graphviz path
35
+ .
36
+ .TP
37
+ \fB\-V\fR, \fB\-\-version\fR
38
+ Show version
39
+ .
40
+ .TP
41
+ \fB\-h\fR, \fB\-\-help\fR
42
+ Show this usage message
43
+ .
44
+ .SH "AUTHOR"
45
+ Copyright 2004\-2013 Gregoire Lejeune
46
+ .
47
+ .P
48
+ This manual page is written by Praveen Arimbrathodiyl \fIpraveen@debian\.org\fR for Debian GNU System (GNU/Linux, GNU/kFreeBSD, GNU/Hurd)\.
data/man/git2gv.1.ronn ADDED
@@ -0,0 +1,40 @@
1
+ git2gv(1) - show your git commits graphically
2
+ =============================================
3
+
4
+ ## SYNOPSIS
5
+
6
+ `git2gv` [`-T`<format>] [`-o`<file>] [`-h`] [`-V`]
7
+
8
+ ## DESCRIPTION
9
+
10
+ `git2gv` is a tool that allows you to show your git commits
11
+ graphically.
12
+
13
+ See </usr/share/doc/ruby-graphviz/> for more details.
14
+
15
+ ## OPTIONS
16
+
17
+ * `-T`, `--output-format` [<format>]:
18
+ Output format (default: png)
19
+
20
+ * `--nothugly`:
21
+ Use nothugly if SVG output
22
+
23
+ * `-o`, `--output-file` [<file>]:
24
+ Path to output image file (default: STDOUT)
25
+
26
+ * `-p`, `--path`:
27
+ Graphviz path
28
+
29
+ * `-V`, `--version`:
30
+ Show version
31
+
32
+ * `-h`, `--help`:
33
+ Show this usage message
34
+
35
+ ## AUTHOR
36
+
37
+ Copyright 2004-2013 Gregoire Lejeune
38
+
39
+ This manual page is written by Praveen Arimbrathodiyl <praveen@debian.org> for
40
+ Debian GNU System (GNU/Linux, GNU/kFreeBSD, GNU/Hurd).
data/man/ruby2gv.1 ADDED
@@ -0,0 +1,60 @@
1
+ .\" generated with Ronn/v0.7.3
2
+ .\" http://github.com/rtomayko/ronn/tree/0.7.3
3
+ .
4
+ .TH "RUBY2GV" "1" "April 2013" "" ""
5
+ .
6
+ .SH "NAME"
7
+ \fBruby2gv\fR \- create a dependency graph from a ruby script
8
+ .
9
+ .SH "SYNOPSIS"
10
+ \fBruby2gv\fR [\fB\-T\fR\fIformat\fR] [\fB\-o\fR\fIfile\fR] [\fB\-h\fR] [\fB\-V\fR] \fIscript\fR
11
+ .
12
+ .SH "DESCRIPTION"
13
+ \fBruby2gv\fR is a simple tool that allows you to create a dependency graph from a ruby script\.
14
+ .
15
+ .P
16
+ See </usr/share/doc/ruby\-graphviz/> for more details\.
17
+ .
18
+ .SH "OPTIONS"
19
+ .
20
+ .TP
21
+ \fB\-T\fR, \fB\-\-output\-format\fR [\fIformat\fR]
22
+ Output format (default: png)
23
+ .
24
+ .TP
25
+ \fB\-o\fR, \fB\-\-output\-file\fR [\fIfile\fR]
26
+ Path to output image file (default: STDOUT)
27
+ .
28
+ .TP
29
+ \fB\-p\fR, \fB\-\-path\fR
30
+ Graphviz path
31
+ .
32
+ .TP
33
+ \fB\-u\fR, \fB\-\-use\fR [\fIPROGRAM\fR]
34
+ Program to use (default: dot)
35
+ .
36
+ .TP
37
+ \fB\-s\fR, \fB\-\-stop\fR \fILIB\fR[,\fILIB\fR[, \.\.\.]]
38
+ Stop on libs
39
+ .
40
+ .TP
41
+ \fB\-V\fR, \fB\-\-version\fR
42
+ Show version
43
+ .
44
+ .TP
45
+ \fB\-h\fR, \fB\-\-help\fR
46
+ Show this usage message
47
+ .
48
+ .SH "EXAMPLE"
49
+ .
50
+ .nf
51
+
52
+ ruby2gv \-Tpng \-oruby2gv\.png /usr/bin/ruby2gv
53
+ .
54
+ .fi
55
+ .
56
+ .SH "AUTHOR"
57
+ Copyright 2004\-2013 Gregoire Lejeune
58
+ .
59
+ .P
60
+ This manual page is written by Praveen Arimbrathodiyl \fIpraveen@debian\.org\fR for Debian GNU System (GNU/Linux, GNU/kFreeBSD, GNU/Hurd)\.
@@ -0,0 +1,47 @@
1
+ ruby2gv(1) - create a dependency graph from a ruby script
2
+ =========================================================
3
+
4
+ ## SYNOPSIS
5
+
6
+ `ruby2gv` [`-T`<format>] [`-o`<file>] [`-h`] [`-V`] _script_
7
+
8
+ ## DESCRIPTION
9
+
10
+ `ruby2gv` is a simple tool that allows you to create a dependency graph
11
+ from a ruby script.
12
+
13
+ See </usr/share/doc/ruby-graphviz/> for more details.
14
+
15
+ ## OPTIONS
16
+
17
+ * `-T`, `--output-format` [<format>]:
18
+ Output format (default: png)
19
+
20
+ * `-o`, `--output-file` [<file>]:
21
+ Path to output image file (default: STDOUT)
22
+
23
+ * `-p`, `--path`:
24
+ Graphviz path
25
+
26
+ * `-u`, `--use` [<PROGRAM>]:
27
+ Program to use (default: dot)
28
+
29
+ * `-s`, `--stop` <LIB>[,<LIB>[, ...]]:
30
+ Stop on libs
31
+
32
+ * `-V`, `--version`:
33
+ Show version
34
+
35
+ * `-h`, `--help`:
36
+ Show this usage message
37
+
38
+ ## EXAMPLE
39
+
40
+ ruby2gv -Tpng -oruby2gv.png /usr/bin/ruby2gv
41
+
42
+ ## AUTHOR
43
+
44
+ Copyright 2004-2013 Gregoire Lejeune
45
+
46
+ This manual page is written by Praveen Arimbrathodiyl <praveen@debian.org> for
47
+ Debian GNU System (GNU/Linux, GNU/kFreeBSD, GNU/Hurd).
data/man/xml2gv.1 ADDED
@@ -0,0 +1,48 @@
1
+ .\" generated with Ronn/v0.7.3
2
+ .\" http://github.com/rtomayko/ronn/tree/0.7.3
3
+ .
4
+ .TH "XML2GV" "1" "April 2013" "" ""
5
+ .
6
+ .SH "NAME"
7
+ \fBxml2gv\fR \- show your xml files graphically
8
+ .
9
+ .SH "SYNOPSIS"
10
+ \fBxml2gv\fR [\fB\-T\fR\fIformat\fR] [\fB\-o\fR\fIfile\fR] [\fB\-h\fR] [\fB\-V\fR] \fIscript\fR
11
+ .
12
+ .SH "DESCRIPTION"
13
+ \fBxml2gv\fR is a tool that allows you to show a xml file as a graph\.
14
+ .
15
+ .P
16
+ See </usr/share/doc/ruby\-graphviz/> for more details\.
17
+ .
18
+ .SH "OPTIONS"
19
+ .
20
+ .TP
21
+ \fB\-T\fR, \fB\-\-output\-format\fR [\fIformat\fR]
22
+ Output format (default: png)
23
+ .
24
+ .TP
25
+ \fB\-o\fR, \fB\-\-output\-file\fR [\fIfile\fR]
26
+ Output file (default: STDOUT)
27
+ .
28
+ .TP
29
+ \fB\-p\fR, \fB\-\-path\fR
30
+ Graphviz path
31
+ .
32
+ .TP
33
+ \fB\-u\fR, \fB\-\-use\fR [\fIPROGRAM\fR]
34
+ Program to use (default: dot)
35
+ .
36
+ .TP
37
+ \fB\-V\fR, \fB\-\-version\fR
38
+ Show version
39
+ .
40
+ .TP
41
+ \fB\-h\fR, \fB\-\-help\fR
42
+ Show this usage message
43
+ .
44
+ .SH "AUTHOR"
45
+ Copyright 2004\-2013 Gregoire Lejeune
46
+ .
47
+ .P
48
+ This manual page is written by Praveen Arimbrathodiyl \fIpraveen@debian\.org\fR for Debian GNU System (GNU/Linux, GNU/kFreeBSD, GNU/Hurd)\.
data/man/xml2gv.1.ronn ADDED
@@ -0,0 +1,39 @@
1
+ xml2gv(1) - show your xml files graphically
2
+ ===========================================
3
+
4
+ ## SYNOPSIS
5
+
6
+ `xml2gv` [`-T`<format>] [`-o`<file>] [`-h`] [`-V`] _script_
7
+
8
+ ## DESCRIPTION
9
+
10
+ `xml2gv` is a tool that allows you to show a xml file as a graph.
11
+
12
+ See </usr/share/doc/ruby-graphviz/> for more details.
13
+
14
+ ## OPTIONS
15
+
16
+ * `-T`, `--output-format` [<format>]:
17
+ Output format (default: png)
18
+
19
+ * `-o`, `--output-file` [<file>]:
20
+ Output file (default: STDOUT)
21
+
22
+ * `-p`, `--path`:
23
+ Graphviz path
24
+
25
+ * `-u`, `--use` [<PROGRAM>]:
26
+ Program to use (default: dot)
27
+
28
+ * `-V`, `--version`:
29
+ Show version
30
+
31
+ * `-h`, `--help`:
32
+ Show this usage message
33
+
34
+ ## AUTHOR
35
+
36
+ Copyright 2004-2013 Gregoire Lejeune
37
+
38
+ This manual page is written by Praveen Arimbrathodiyl <praveen@debian.org> for
39
+ Debian GNU System (GNU/Linux, GNU/kFreeBSD, GNU/Hurd).
@@ -5,7 +5,7 @@ require "graphviz/constants"
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "ruby-graphviz"
8
- s.version = Constants::RGV_VERSION
8
+ s.version = GraphViz::Constants::RGV_VERSION
9
9
  s.platform = Gem::Platform::RUBY
10
10
 
11
11
  s.authors = ["Gregoire Lejeune"]
@@ -45,4 +45,7 @@ Last (important) changes :
45
45
  s.add_development_dependency 'rake'
46
46
  s.add_development_dependency 'gems'
47
47
  s.add_development_dependency 'rdoc'
48
+ s.add_development_dependency 'minitest'
49
+ s.add_development_dependency 'bundler'
50
+ s.add_development_dependency 'ronn'
48
51
  end
@@ -0,0 +1,43 @@
1
+ require "minitest/autorun"
2
+ require_relative "../lib/graphviz/dot_script"
3
+
4
+ describe GraphViz::DOTScript do
5
+ let(:script) { GraphViz::DOTScript.new }
6
+
7
+ it "appends a newline character if it is missing" do
8
+ str = "Test without newline"
9
+ script.append(str)
10
+ script.to_s.must_equal(str + "\n")
11
+ end
12
+
13
+ it "does not append a newline if already present" do
14
+ str = "Linebreak follows at my tail:\n"
15
+ script.append(str)
16
+ script.to_s.must_equal(str)
17
+ end
18
+
19
+ it "can prepend lines to its content" do
20
+ start_content = "I want to be at the top!\n"
21
+ additional_content = "No way!\n"
22
+
23
+ script.append(start_content)
24
+ script.prepend(additional_content)
25
+
26
+ script.to_s.must_equal(additional_content + start_content)
27
+ end
28
+
29
+ it "can add types with data" do
30
+ data = "some random data"
31
+ script.add_type("node_attr", data)
32
+ script.to_s.must_match(/\s*node\s*\[\s*#{data}\s*\]\s*/m)
33
+ end
34
+
35
+ it "does nothing if data is empty" do
36
+ script.add_type("anything", "")
37
+ script.to_s.must_be :empty?
38
+ end
39
+
40
+ it "raises an argument error on unknown types" do
41
+ -> { script.add_type("invalid", "some data") }.must_raise(ArgumentError)
42
+ end
43
+ end