model_graph 0.1.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/CHANGELOG +0 -0
- data/README +78 -0
- data/Rakefile +101 -0
- data/bin/model_graph +483 -0
- data/doc/classes/ModelGraph/Graph.html +313 -0
- data/doc/classes/ModelGraph/Graph.src/M000003.html +20 -0
- data/doc/classes/ModelGraph/Graph.src/M000004.html +18 -0
- data/doc/classes/ModelGraph/Graph.src/M000005.html +20 -0
- data/doc/classes/ModelGraph/Graph.src/M000006.html +35 -0
- data/doc/classes/ModelGraph/Graph.src/M000007.html +31 -0
- data/doc/classes/ModelGraph.html +341 -0
- data/doc/classes/ModelGraph.src/M000001.html +18 -0
- data/doc/classes/ModelGraph.src/M000002.html +120 -0
- data/doc/created.rid +1 -0
- data/doc/dot/f_0.dot +39 -0
- data/doc/dot/f_0.png +0 -0
- data/doc/dot/m_0_0.dot +39 -0
- data/doc/dot/m_0_0.png +0 -0
- data/doc/files/model_graph_rb.html +224 -0
- data/doc/fr_class_index.html +28 -0
- data/doc/fr_file_index.html +27 -0
- data/doc/fr_method_index.html +33 -0
- data/doc/index.html +24 -0
- data/doc/rdoc-style.css +208 -0
- data/examples/badblog.rb +17 -0
- data/examples/blog.rb +35 -0
- data/examples/goodblog.rb +17 -0
- data/examples/hello.rb +6 -0
- data/examples/magazine.rb +36 -0
- data/examples/radiant.rb +41 -0
- data/lib/model_graph/version.rb +9 -0
- data/lib/model_graph.rb +1 -0
- data/test/model_graph_test.rb +13 -0
- data/test/test_helper.rb +5 -0
- metadata +97 -0
data/examples/radiant.rb
ADDED
@@ -0,0 +1,41 @@
|
|
1
|
+
class < ActiveRecord::Base
|
2
|
+
has_many
|
3
|
+
has_one
|
4
|
+
has_and_belongs_to_many
|
5
|
+
belongs_to
|
6
|
+
end
|
7
|
+
|
8
|
+
class Page < ActiveRecord::Base
|
9
|
+
has_many :content_parts
|
10
|
+
belongs_to :behavior
|
11
|
+
belongs_to :layout
|
12
|
+
end
|
13
|
+
|
14
|
+
class Behavior < ActiveRecord::Base
|
15
|
+
has_many :pages
|
16
|
+
has_one
|
17
|
+
has_and_belongs_to_many
|
18
|
+
belongs_to
|
19
|
+
end
|
20
|
+
|
21
|
+
class Layout < ActiveRecord::Base
|
22
|
+
has_many
|
23
|
+
has_one
|
24
|
+
has_and_belongs_to_many
|
25
|
+
belongs_to
|
26
|
+
end
|
27
|
+
|
28
|
+
class ContentPart < ActiveRecord::Base
|
29
|
+
has_many
|
30
|
+
has_one :filter
|
31
|
+
has_and_belongs_to_many
|
32
|
+
belongs_to :page
|
33
|
+
end
|
34
|
+
|
35
|
+
class Filter < ActiveRecord::Base
|
36
|
+
has_many
|
37
|
+
has_one
|
38
|
+
has_and_belongs_to_many
|
39
|
+
belongs_to :content_parts
|
40
|
+
end
|
41
|
+
|
data/lib/model_graph.rb
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
Dir[File.join(File.dirname(__FILE__), 'model_graph/**/*.rb')].sort.each { |lib| require lib }
|
data/test/test_helper.rb
ADDED
metadata
ADDED
@@ -0,0 +1,97 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
rubygems_version: 0.8.11
|
3
|
+
specification_version: 1
|
4
|
+
name: model_graph
|
5
|
+
version: !ruby/object:Gem::Version
|
6
|
+
version: 0.1.1
|
7
|
+
date: 2006-10-21 00:00:00 -06:00
|
8
|
+
summary: "When run from the trunk of a Rails project, produces # {DOT}[http://www.graphviz.org/doc/info/lang.html] output which can be # rendered into a graph by programs such as dot and neato and viewed with # Graphviz (an {Open Source}[http://www.graphviz.org/License.php] viewer)."
|
9
|
+
require_paths:
|
10
|
+
- lib
|
11
|
+
email: Rob_Biedenharn@alum.MIT.edu
|
12
|
+
homepage: http://model-graph.rubyforge.org
|
13
|
+
rubyforge_project: model-graph
|
14
|
+
description: "When run from the trunk of a Rails project, produces # {DOT}[http://www.graphviz.org/doc/info/lang.html] output which can be # rendered into a graph by programs such as dot and neato and viewed with # Graphviz (an {Open Source}[http://www.graphviz.org/License.php] viewer)."
|
15
|
+
autorequire: model_graph
|
16
|
+
default_executable:
|
17
|
+
bindir: bin
|
18
|
+
has_rdoc: true
|
19
|
+
required_ruby_version: !ruby/object:Gem::Version::Requirement
|
20
|
+
requirements:
|
21
|
+
- - ">"
|
22
|
+
- !ruby/object:Gem::Version
|
23
|
+
version: 0.0.0
|
24
|
+
version:
|
25
|
+
platform: ruby
|
26
|
+
signing_key:
|
27
|
+
cert_chain:
|
28
|
+
authors:
|
29
|
+
- Rob Biedenharn
|
30
|
+
files:
|
31
|
+
- README
|
32
|
+
- CHANGELOG
|
33
|
+
- Rakefile
|
34
|
+
- bin/model_graph
|
35
|
+
- doc/classes
|
36
|
+
- doc/created.rid
|
37
|
+
- doc/dot
|
38
|
+
- doc/files
|
39
|
+
- doc/fr_class_index.html
|
40
|
+
- doc/fr_file_index.html
|
41
|
+
- doc/fr_method_index.html
|
42
|
+
- doc/index.html
|
43
|
+
- doc/rdoc-style.css
|
44
|
+
- doc/classes/ModelGraph
|
45
|
+
- doc/classes/ModelGraph.html
|
46
|
+
- doc/classes/ModelGraph.src
|
47
|
+
- doc/classes/ModelGraph/Graph.html
|
48
|
+
- doc/classes/ModelGraph/Graph.src
|
49
|
+
- doc/classes/ModelGraph/Graph.src/M000003.html
|
50
|
+
- doc/classes/ModelGraph/Graph.src/M000004.html
|
51
|
+
- doc/classes/ModelGraph/Graph.src/M000005.html
|
52
|
+
- doc/classes/ModelGraph/Graph.src/M000006.html
|
53
|
+
- doc/classes/ModelGraph/Graph.src/M000007.html
|
54
|
+
- doc/classes/ModelGraph.src/M000001.html
|
55
|
+
- doc/classes/ModelGraph.src/M000002.html
|
56
|
+
- doc/dot/f_0.dot
|
57
|
+
- doc/dot/f_0.png
|
58
|
+
- doc/dot/m_0_0.dot
|
59
|
+
- doc/dot/m_0_0.png
|
60
|
+
- doc/files/lib
|
61
|
+
- doc/files/model_graph_rb.html
|
62
|
+
- test/model_graph_test.rb
|
63
|
+
- test/test_helper.rb
|
64
|
+
- lib/model_graph
|
65
|
+
- lib/model_graph.rb
|
66
|
+
- lib/model_graph/version.rb
|
67
|
+
- examples/badblog.rb
|
68
|
+
- examples/blog.rb
|
69
|
+
- examples/goodblog.rb
|
70
|
+
- examples/hello.rb
|
71
|
+
- examples/magazine.rb
|
72
|
+
- examples/radiant.rb
|
73
|
+
test_files: []
|
74
|
+
|
75
|
+
rdoc_options:
|
76
|
+
- --quiet
|
77
|
+
- --title
|
78
|
+
- model_graph documentation
|
79
|
+
- --opname
|
80
|
+
- index.html
|
81
|
+
- --line-numbers
|
82
|
+
- --main
|
83
|
+
- README
|
84
|
+
- --inline-source
|
85
|
+
- --exclude
|
86
|
+
- ^(examples|extras)/
|
87
|
+
extra_rdoc_files:
|
88
|
+
- README
|
89
|
+
- CHANGELOG
|
90
|
+
executables:
|
91
|
+
- model_graph
|
92
|
+
extensions: []
|
93
|
+
|
94
|
+
requirements: []
|
95
|
+
|
96
|
+
dependencies: []
|
97
|
+
|