railroady 1.5.1 → 1.5.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.
- checksums.yaml +4 -4
- data/README.md +5 -4
- data/lib/railroady/aasm_diagram.rb +5 -5
- data/lib/railroady/models_diagram.rb +1 -1
- data/lib/railroady/version.rb +1 -1
- data/railroady.gemspec +1 -1
- data/tasks/railroady.rake +4 -4
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b039ee6ebb573cf5f72815532d75cd7feb16039e
|
4
|
+
data.tar.gz: 3e90afe93b05018e8eedf776e0080412be32f5c8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 388633ee9eb9d0678ecdf63fd5b2157dd965428d7c1d00988740cfbb3c8cd2420420e94e8f5afae57ad75f8d5ddd142bd41ae966dec6be4429be001ccff6a8cc
|
7
|
+
data.tar.gz: 3567417b05e122c16cf11cd522f9acb3599172255cc282ba9646c277f9d66ac7e41c93c3e152607a751bc04fd999fda4aa30eada98806a541d3048f27b252f69
|
data/README.md
CHANGED
@@ -2,11 +2,11 @@
|
|
2
2
|
|
3
3
|
[](https://travis-ci.org/preston/railroady)
|
4
4
|
|
5
|
-
RailRoady generates Rails 3/4 model (ActiveRecord, Mongoid, Datamapper) and controller UML diagrams as cross-platform .svg files, as well as in the DOT language.
|
5
|
+
RailRoady generates Rails 3/4/5 model (ActiveRecord, Mongoid, Datamapper) and controller UML diagrams as cross-platform .svg files, as well as in the DOT language.
|
6
6
|
|
7
7
|
Code is based on the original "railroad" gem, patched and maintained over the years. Lineage can be traced via GitHub.
|
8
8
|
|
9
|
-
I (Preston Lee) am not trying to hijack Peter Hoeg or Javier's project, but rather create a dedicated, lean gem that can be used without major issue on Rails
|
9
|
+
I (Preston Lee) am not trying to hijack Peter Hoeg or Javier's project, but rather create a dedicated, lean gem that can be used without major issue on Rails projects. Rails v2 is not supported.
|
10
10
|
|
11
11
|
# System Requirements
|
12
12
|
|
@@ -158,7 +158,7 @@ also use Omnigraffle (on Mac OS X).
|
|
158
158
|
|
159
159
|
= Rake Tasks
|
160
160
|
|
161
|
-
As of Preston Lee's Rails 3/4 modifications, including RailRoady as a project development dependency will automatically add a set of rake tasks to your project. Sweet! (Run `rake -T` to check them out.)
|
161
|
+
As of Preston Lee's Rails 3/4/5 modifications, including RailRoady as a project development dependency will automatically add a set of rake tasks to your project. Sweet! (Run `rake -T` to check them out.)
|
162
162
|
|
163
163
|
|
164
164
|
# Requirements
|
@@ -172,6 +172,7 @@ RailRoady has been tested with the following Ruby and Rails versions
|
|
172
172
|
## Rails
|
173
173
|
* 3.0.3+
|
174
174
|
* 4.0.0+
|
175
|
+
* 5.0.0+
|
175
176
|
|
176
177
|
There are no additional requirements (nevertheless, all your Rails application
|
177
178
|
requirements must be installed).
|
@@ -195,7 +196,7 @@ See LICENSE for details.
|
|
195
196
|
|
196
197
|
Copyright (c) 2007-2008 Javier Smaldone
|
197
198
|
Copyright (c) 2009 Peter Hoeg
|
198
|
-
Copyright (c) 2010 Preston Lee
|
199
|
+
Copyright (c) 2010-2016 Preston Lee
|
199
200
|
|
200
201
|
See LICENSE for details.
|
201
202
|
|
@@ -61,15 +61,15 @@ class AasmDiagram < AppDiagram
|
|
61
61
|
node_type = 'aasm'
|
62
62
|
|
63
63
|
STDERR.print "\t\tprocessing as acts_as_state_machine\n" if @options.verbose
|
64
|
-
current_class.states.each do |state_name|
|
65
|
-
|
66
|
-
node_shape = (current_class.initial_state == state_name) ? ', peripheries = 2' : ''
|
64
|
+
current_class.aasm.states.each do |state_name|
|
65
|
+
node_shape = (current_class.aasm.initial_state == state_name) ? ', peripheries = 2' : ''
|
67
66
|
node_attribs << "#{current_class.name.downcase}_#{state_name} [label=#{state_name} #{node_shape}];"
|
68
67
|
end
|
69
68
|
@graph.add_node [node_type, current_class.name, node_attribs]
|
70
69
|
|
71
|
-
current_class.
|
72
|
-
event.
|
70
|
+
current_class.aasm.events.each do |event|
|
71
|
+
event_name = event.name
|
72
|
+
event.transitions.each do |transition|
|
73
73
|
@graph.add_edge [
|
74
74
|
'event',
|
75
75
|
current_class.name.downcase + '_' + transition.from.to_s,
|
data/lib/railroady/version.rb
CHANGED
data/railroady.gemspec
CHANGED
@@ -7,7 +7,7 @@ Gem::Specification.new do |spec|
|
|
7
7
|
spec.name = 'railroady'
|
8
8
|
spec.version = RailRoady::VERSION
|
9
9
|
spec.authors = ['Preston Lee', 'Tobias Crawley', 'Peter Hoeg', 'Javier Smaldone']
|
10
|
-
spec.description = "Ruby on Rails 3/4 model and controller UML class diagram generator. Originally based on the 'railroad' plugin and contributions of many others. (`brew install graphviz` before use!)"
|
10
|
+
spec.description = "Ruby on Rails 3/4/5 model and controller UML class diagram generator. Originally based on the 'railroad' plugin and contributions of many others. (`brew install graphviz` before use!)"
|
11
11
|
spec.email = ['preston.lee@prestonlee.com', 'tcrawley@gmail.com', 'peter@hoeg.com', 'p.hoeg@northwind.sg', 'javier@smaldone.com.ar']
|
12
12
|
spec.summary = 'Ruby on Rails 3/4 model and controller UML class diagram generator.'
|
13
13
|
spec.homepage = 'http://github.com/preston/railroady'
|
data/tasks/railroady.rake
CHANGED
@@ -57,7 +57,7 @@ namespace :diagram do
|
|
57
57
|
desc 'Generated brief and complete class diagrams for all models.'
|
58
58
|
task all: ['diagram:setup:create_new_doc_folder_if_needed', 'diagram:models:complete', 'diagram:models:brief']
|
59
59
|
|
60
|
-
desc 'Generates
|
60
|
+
desc 'Generates a class diagram for all models.'
|
61
61
|
task :complete do
|
62
62
|
f = @MODELS_ALL
|
63
63
|
puts "Generating #{f}"
|
@@ -71,7 +71,7 @@ namespace :diagram do
|
|
71
71
|
sh "railroady -blamM | #{@SED} | dot -T#{RailRoady::RakeHelpers.format} > #{f}"
|
72
72
|
end
|
73
73
|
|
74
|
-
desc 'Generates
|
74
|
+
desc 'Generates a class diagram for all models including those in engines'
|
75
75
|
task :complete_with_engines do
|
76
76
|
f = @MODELS_ALL
|
77
77
|
puts "Generating #{f}"
|
@@ -90,7 +90,7 @@ namespace :diagram do
|
|
90
90
|
desc 'Generated brief and complete class diagrams for all controllers.'
|
91
91
|
task all: ['diagram:setup:create_new_doc_folder_if_needed', 'diagram:controllers:complete', 'diagram:controllers:brief']
|
92
92
|
|
93
|
-
desc 'Generates
|
93
|
+
desc 'Generates a class diagram for all controllers.'
|
94
94
|
task :complete do
|
95
95
|
f = @CONTROLLERS_ALL
|
96
96
|
puts "Generating #{f}"
|
@@ -104,7 +104,7 @@ namespace :diagram do
|
|
104
104
|
sh "railroady -blC | #{@SED} | neato -T#{RailRoady::RakeHelpers.format} > #{f}"
|
105
105
|
end
|
106
106
|
|
107
|
-
desc 'Generates
|
107
|
+
desc 'Generates a class diagram for all controllers including those in engines'
|
108
108
|
task :complete_with_engines do
|
109
109
|
f = @CONTROLLERS_ALL
|
110
110
|
puts "Generating #{f}"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: railroady
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.5.
|
4
|
+
version: 1.5.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Preston Lee
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2016-
|
14
|
+
date: 2016-09-22 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: bundler
|
@@ -69,9 +69,9 @@ dependencies:
|
|
69
69
|
- - ">="
|
70
70
|
- !ruby/object:Gem::Version
|
71
71
|
version: '0'
|
72
|
-
description: Ruby on Rails 3/4 model and controller UML class diagram generator.
|
73
|
-
based on the 'railroad' plugin and contributions of many others. (`brew
|
74
|
-
graphviz` before use!)
|
72
|
+
description: Ruby on Rails 3/4/5 model and controller UML class diagram generator.
|
73
|
+
Originally based on the 'railroad' plugin and contributions of many others. (`brew
|
74
|
+
install graphviz` before use!)
|
75
75
|
email:
|
76
76
|
- preston.lee@prestonlee.com
|
77
77
|
- tcrawley@gmail.com
|
@@ -142,7 +142,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
142
142
|
version: '0'
|
143
143
|
requirements: []
|
144
144
|
rubyforge_project:
|
145
|
-
rubygems_version: 2.6.
|
145
|
+
rubygems_version: 2.6.6
|
146
146
|
signing_key:
|
147
147
|
specification_version: 4
|
148
148
|
summary: Ruby on Rails 3/4 model and controller UML class diagram generator.
|