railroady 0.9.0 → 0.11.0

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.rdoc CHANGED
@@ -1,5 +1,9 @@
1
1
  = Changes
2
2
 
3
+ == Version 0.9.1
4
+ - Removal of deprecated API call.
5
+ - Documentation updates.
6
+
3
7
  == Version 0.9.0
4
8
  - Forked from tobias-railroad on GitHub.
5
9
  - Project rebranding to reflect Rails v3 support.
data/README.rdoc CHANGED
@@ -1,20 +1,35 @@
1
1
  = RailRoady
2
2
 
3
- RailRoady generates models and controllers diagrams in DOT language for a
4
- Rails application.
3
+ RailRoady generates Rails 3 model and controller UML diagrams as cross-platform .svg files, as well as in the DOT language.
5
4
 
6
- This is a patched version based on the original v0.5.0.
5
+ Code is based on the original "railroad" gem, patched and maintained over the years. Lineage can be traced via GitHub.
7
6
 
8
- I (Peter Hoeg) am not trying to hijack Javier's project, but since he hasn't released any
9
- new versions since May '08, I figured I'd better put one out in order to make
10
- railroad work with rails v2.3.
7
+ 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 v3 projects. Rails v2 is not supported.
8
+
9
+ = System Requirements
10
+
11
+ You MUST have the the following utilities available at the command line.
12
+ * `dot` and `neato`. MacPorts users can install in via `sudo port install graphviz`.
13
+
14
+ * `sed`, which should already be available on all sane UNIX systems.
11
15
 
12
16
  = Usage
13
17
 
14
- Run RailRoady on the Rails application's root directory. You can redirect its
15
- output to a .dot file or pipe it to the dot or neato utilities to produce a
16
- graphic. Model diagrams are intended to be processed using dot and
17
- controller diagrams are best processed using neato.
18
+ The easiest (and recommend) usage is to include railroady as a development dependency with your Rails 3 Gemfile, like so...
19
+
20
+ group :development, :test do
21
+ gem 'railroady'
22
+ end
23
+
24
+ ...and then run the master rake task...
25
+
26
+ rake diagram:all
27
+
28
+ This should generate four doc/*.svg files that can be opened in (most) web browsers as well as dedicate document viewers supporting the Scalable Vector Graphics format.
29
+
30
+ = Alternate Usage
31
+
32
+ Alternatively, you may run the 'railroady' command-line program at the Rails application's root directory. You can redirect its output to a .dot file or pipe it to the dot or neato utilities to produce a graphic. Model diagrams are intended to be processed using dot and controller diagrams are best processed using neato.
18
33
 
19
34
  railroad [options] command
20
35
 
data/VERSION.yml CHANGED
@@ -1,5 +1,5 @@
1
1
  ---
2
- :minor: 9
3
- :build:
4
- :patch: 0
5
2
  :major: 0
3
+ :minor: 11
4
+ :patch: 0
5
+ :build:
@@ -2,8 +2,7 @@ require 'railroady'
2
2
  require 'rails'
3
3
  module RailRoady
4
4
  class Railtie < Rails::Railtie
5
- railtie_name :railroady
6
-
5
+
7
6
  rake_tasks do
8
7
  f = File.join(File.dirname(__FILE__), '..', '..', 'tasks', 'railroady.rake')
9
8
  load f
metadata CHANGED
@@ -4,9 +4,9 @@ version: !ruby/object:Gem::Version
4
4
  prerelease: false
5
5
  segments:
6
6
  - 0
7
- - 9
7
+ - 11
8
8
  - 0
9
- version: 0.9.0
9
+ version: 0.11.0
10
10
  platform: ruby
11
11
  authors:
12
12
  - Preston Lee