shift-railroad 0.5.8
Sign up to get free protection for your applications and to get access to all the features.
- data/.document +7 -0
- data/AUTHORS.rdoc +13 -0
- data/CHANGELOG.rdoc +96 -0
- data/LICENSE.rdoc +340 -0
- data/README.rdoc +166 -0
- data/Rakefile +46 -0
- data/VERSION.yml +4 -0
- data/bin/railroad +60 -0
- data/lib/aasm_diagram.rb +81 -0
- data/lib/app_diagram.rb +90 -0
- data/lib/controllers_diagram.rb +88 -0
- data/lib/diagram_graph.rb +133 -0
- data/lib/models_diagram.rb +155 -0
- data/lib/options_struct.rb +173 -0
- data/lib/version.rb +13 -0
- data/spec/app_diagram_spec.rb +12 -0
- data/spec/railroad_spec.rb +7 -0
- data/spec/spec_helper.rb +9 -0
- metadata +81 -0
data/lib/version.rb
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
module RailRoad
|
2
|
+
module VERSION #:nodoc:
|
3
|
+
if File.exist?('../VERSION.yml')
|
4
|
+
config = YAML.load(File.read('../VERSION.yml'))
|
5
|
+
MAJOR = config[:major]
|
6
|
+
MINOR = config[:minor]
|
7
|
+
PATCH = config[:patch]
|
8
|
+
else
|
9
|
+
MAJOR = MINOR = PATCH = 0
|
10
|
+
end
|
11
|
+
STRING = [MAJOR, MINOR, PATCH].join('.')
|
12
|
+
end
|
13
|
+
end
|
@@ -0,0 +1,12 @@
|
|
1
|
+
require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
|
2
|
+
|
3
|
+
describe AppDiagram do
|
4
|
+
describe 'extracting filenames' do
|
5
|
+
describe 'without namespaces' do
|
6
|
+
it 'should work with a simple name' do
|
7
|
+
ad = AppDiagram.new
|
8
|
+
ad.extract_class_name('app/models/test_this.rb').should == 'TestThis'
|
9
|
+
end
|
10
|
+
end
|
11
|
+
end
|
12
|
+
end
|
data/spec/spec_helper.rb
ADDED
metadata
ADDED
@@ -0,0 +1,81 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: shift-railroad
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.5.8
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Peter Hoeg
|
8
|
+
- Javier Smaldone
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
|
13
|
+
date: 2009-05-16 00:00:00 +01:00
|
14
|
+
default_executable: railroad
|
15
|
+
dependencies: []
|
16
|
+
|
17
|
+
description: A DOT diagram generator for Ruby on Rail applications
|
18
|
+
email:
|
19
|
+
- peter@hoeg.com
|
20
|
+
- p.hoeg@northwind.sg
|
21
|
+
- javier@smaldone.com.ar
|
22
|
+
executables:
|
23
|
+
- railroad
|
24
|
+
extensions: []
|
25
|
+
|
26
|
+
extra_rdoc_files:
|
27
|
+
- AUTHORS.rdoc
|
28
|
+
- CHANGELOG.rdoc
|
29
|
+
- LICENSE.rdoc
|
30
|
+
- README.rdoc
|
31
|
+
files:
|
32
|
+
- .document
|
33
|
+
- AUTHORS.rdoc
|
34
|
+
- CHANGELOG.rdoc
|
35
|
+
- LICENSE.rdoc
|
36
|
+
- README.rdoc
|
37
|
+
- Rakefile
|
38
|
+
- VERSION.yml
|
39
|
+
- bin/railroad
|
40
|
+
- lib/aasm_diagram.rb
|
41
|
+
- lib/app_diagram.rb
|
42
|
+
- lib/controllers_diagram.rb
|
43
|
+
- lib/diagram_graph.rb
|
44
|
+
- lib/models_diagram.rb
|
45
|
+
- lib/options_struct.rb
|
46
|
+
- lib/version.rb
|
47
|
+
- spec/app_diagram_spec.rb
|
48
|
+
- spec/railroad_spec.rb
|
49
|
+
- spec/spec_helper.rb
|
50
|
+
has_rdoc: true
|
51
|
+
homepage: http://github.com/peterhoeg/RailRoad
|
52
|
+
licenses: []
|
53
|
+
|
54
|
+
post_install_message:
|
55
|
+
rdoc_options:
|
56
|
+
- --charset=UTF-8
|
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:
|
74
|
+
rubygems_version: 1.3.5
|
75
|
+
signing_key:
|
76
|
+
specification_version: 2
|
77
|
+
summary: A DOT diagram generator for Ruby on Rail applications
|
78
|
+
test_files:
|
79
|
+
- spec/spec_helper.rb
|
80
|
+
- spec/app_diagram_spec.rb
|
81
|
+
- spec/railroad_spec.rb
|