synthesis 0.2.1 → 0.2.2
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/README.rdoc +1 -1
- data/Rakefile +2 -2
- data/lib/synthesis/formatter/dot.rb +10 -5
- data/synthesis.gemspec +1 -1
- metadata +2 -2
data/README.rdoc
CHANGED
@@ -34,7 +34,7 @@ Synthesis can be setup to ignore certain classes or modules when collecting expe
|
|
34
34
|
|
35
35
|
If +pattern+ is not specified, it will default to <tt>test/**/*_test.rb</tt>
|
36
36
|
|
37
|
-
As of version 0.2.0, Synthesis has a +DOT+ formatter which, when used, will output text in the DOT graph description language, producing system visualizations as specified by the simulated interactions in the system's tests. The output of the +DOT+ formatter can be used with tools like Graphviz( http://www.graphviz.org/ ).
|
37
|
+
As of version 0.2.0, Synthesis has a +DOT+ formatter which, when used, will output text in the DOT graph description language, producing system visualizations as specified by the simulated interactions in the system's tests. The output of the +DOT+ formatter can be used with tools like Graphviz( http://www.graphviz.org/ ). The +DOT+ formatter depends on the +parse_tree+ and +sexp_processor+ libraries.
|
38
38
|
|
39
39
|
== Usage examples
|
40
40
|
|
data/Rakefile
CHANGED
@@ -77,11 +77,11 @@ end
|
|
77
77
|
|
78
78
|
desc 'Generate RDoc'
|
79
79
|
Rake::RDocTask.new do |task|
|
80
|
-
task.main = 'README'
|
80
|
+
task.main = 'README.rdoc'
|
81
81
|
task.title = 'synthesis'
|
82
82
|
task.rdoc_dir = 'doc'
|
83
83
|
task.options << "--line-numbers" << "--inline-source"
|
84
|
-
task.rdoc_files.include('README', 'lib/**/*.rb')
|
84
|
+
task.rdoc_files.include('README.rdoc', 'lib/**/*.rb')
|
85
85
|
end
|
86
86
|
|
87
87
|
desc "Upload RDoc to RubyForge"
|
@@ -1,6 +1,11 @@
|
|
1
|
-
|
2
|
-
require "
|
3
|
-
require "
|
1
|
+
begin
|
2
|
+
require "parse_tree"
|
3
|
+
require "sexp"
|
4
|
+
require "sexp_processor"
|
5
|
+
rescue LoadError
|
6
|
+
puts "Dot formatter depends on the sexp_processor and ParseTree libraries"
|
7
|
+
exit 1
|
8
|
+
end
|
4
9
|
|
5
10
|
module Synthesis
|
6
11
|
class DotFormatter < Formatter
|
@@ -85,14 +90,14 @@ module Synthesis
|
|
85
90
|
def process_defn(exp)
|
86
91
|
name = exp.shift
|
87
92
|
@klazz = @ancestors * '::' if name == method.to_sym
|
88
|
-
s(:defn, name, process(exp.shift)
|
93
|
+
s(:defn, name, process(exp.shift))
|
89
94
|
end
|
90
95
|
|
91
96
|
def process_defs(exp)
|
92
97
|
selff = exp.shift
|
93
98
|
name = exp.shift
|
94
99
|
@klazz = @ancestors * '::' if name == method.to_sym
|
95
|
-
s(:defs, selff, name, process(exp.shift)
|
100
|
+
s(:defs, selff, name, process(exp.shift))
|
96
101
|
end
|
97
102
|
end
|
98
103
|
end
|
data/synthesis.gemspec
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: synthesis
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stuart Caborn, George Malamidis, Danilo Sato
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2008-11-
|
12
|
+
date: 2008-11-16 00:00:00 +00:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|