factorylabs-railroad 0.6.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,18 @@
1
+ namespace :doc do
2
+ namespace :diagram do
3
+ ADDITIONAL_OPTS = "-v -j --hide-magic"
4
+ RAILROAD = "./vendor/plugins/railroad/bin/railroad"
5
+ desc "Draw model diagram"
6
+ task :models do
7
+ sh "#{RAILROAD} -i -m -M #{ADDITIONAL_OPTS} | dot -Tsvg | sed 's/font-size:12.00/font-size:11.00/g' > doc/models.svg"
8
+ end
9
+
10
+ desc "Draw controller diagram"
11
+ task :controllers do
12
+ sh "#{RAILROAD} -i -C | neato -Tsvg | sed 's/font-size:12.00/font-size:11.00/g' > doc/controllers.svg"
13
+ end
14
+ end
15
+
16
+ desc "Draw model & controller diagrams"
17
+ task :diagrams => %w(diagram:models diagram:controllers)
18
+ end
metadata ADDED
@@ -0,0 +1,79 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: factorylabs-railroad
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.6.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Javier Smaldone
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+
12
+ date: 2008-07-29 00:00:00 -07:00
13
+ default_executable: railroad
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: hoe
17
+ version_requirement:
18
+ version_requirements: !ruby/object:Gem::Requirement
19
+ requirements:
20
+ - - ">="
21
+ - !ruby/object:Gem::Version
22
+ version: 1.7.0
23
+ version:
24
+ description: ""
25
+ email: javier@smaldone.com.ar
26
+ executables:
27
+ - railroad
28
+ extensions: []
29
+
30
+ extra_rdoc_files:
31
+ - History.txt
32
+ - Manifest.txt
33
+ - README.txt
34
+ files:
35
+ - COPYING
36
+ - ChangeLog
37
+ - History.txt
38
+ - Manifest.txt
39
+ - README.txt
40
+ - Rakefile
41
+ - bin/railroad
42
+ - init.rb
43
+ - lib/railroad.rb
44
+ - lib/railroad/aasm_diagram.rb
45
+ - lib/railroad/app_diagram.rb
46
+ - lib/railroad/controllers_diagram.rb
47
+ - lib/railroad/diagram_graph.rb
48
+ - lib/railroad/models_diagram.rb
49
+ - lib/railroad/options_struct.rb
50
+ - tasks/diagrams.rake
51
+ has_rdoc: true
52
+ homepage: http://railroad.rubyforge.org
53
+ post_install_message:
54
+ rdoc_options:
55
+ - --main
56
+ - README.txt
57
+ require_paths:
58
+ - lib
59
+ required_ruby_version: !ruby/object:Gem::Requirement
60
+ requirements:
61
+ - - ">="
62
+ - !ruby/object:Gem::Version
63
+ version: "0"
64
+ version:
65
+ required_rubygems_version: !ruby/object:Gem::Requirement
66
+ requirements:
67
+ - - ">="
68
+ - !ruby/object:Gem::Version
69
+ version: "0"
70
+ version:
71
+ requirements: []
72
+
73
+ rubyforge_project: railroad
74
+ rubygems_version: 1.2.0
75
+ signing_key:
76
+ specification_version: 2
77
+ summary: A DOT diagram generator for Ruby on Rail applications
78
+ test_files: []
79
+