Skip to content

Commit

Permalink
Generates vertical diagrams.
Browse files Browse the repository at this point in the history
  • Loading branch information
tute committed Nov 9, 2010
1 parent 5f4aa27 commit eafa46e
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 28 deletions.
2 changes: 1 addition & 1 deletion README.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ It uses an extended RailRoad to output yUML diagrams which are drawn using the s
## Installation

* Add to your Gemfile:
gem 'yUMLmeRails', :git => 'git://github.com/tute/yUMLmeRails.git'
`gem 'yUMLmeRails', :git => 'git://github.com/tute/yUMLmeRails.git'`

## Usage (rake -T)

Expand Down
1 change: 1 addition & 0 deletions VERSION
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0.9.1
4 changes: 2 additions & 2 deletions lib/tasks/yUMLmeRails.rake
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
YUMLME_URL = 'http://yuml.me/diagram/scruffy/class/'
FILENAME = File.join(Rails.root, 'doc','diagrams',"model.#{Time.now.strftime('%Y%m%d-%H%M%S')}.png")
YUMLME_URL = 'http://yuml.me/diagram/scruffy;dir:LR;/class/'
FILENAME = File.join(Rails.root, 'doc','diagrams',"#{Time.now.strftime('%Y%m%d-%H%M%S')}-model.png")

def generate_diagram(file=FILENAME)
require 'open-uri'
Expand Down
48 changes: 24 additions & 24 deletions lib/yUMLmeRails.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,35 +6,35 @@

module YUMLmeRails
class << self
def generate_diagram
def generate_diagram
options = OpenStruct.new(
:all => true,
:brief => false,
:exclude => [],
:inheritance => false,
:join => false,
:label => false,
:modules => false,
:hide_magic => false,
:hide_types => false,
:hide_public => false,
:hide_protected => false,
:hide_private => false,
:plugins_models => false,
:root => '',
:transitive => true,
:verbose => false,
:xmi => false,
:yuml => true,
:command => 'models'
:all => true,
:brief => false,
:exclude => [],
:inheritance => false,
:join => false,
:label => false,
:modules => false,
:hide_magic => false,
:hide_types => false,
:hide_public => false,
:hide_protected => false,
:hide_private => false,
:plugins_models => false,
:root => '',
:transitive => true,
:verbose => false,
:xmi => false,
:yuml => true,
:command => 'models'
)

if options.command == 'models'
diagram = ModelsDiagram.new options
#elsif options.command == 'controllers'
# diagram = ControllersDiagram.new options
#elsif options.command == 'aasm'
# diagram = AasmDiagram.new options
# elsif options.command == 'controllers'
# diagram = ControllersDiagram.new options
# elsif options.command == 'aasm'
# diagram = AasmDiagram.new options
end

diagram.generate
Expand Down
2 changes: 1 addition & 1 deletion yUMLmeRails.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ lib = File.expand_path('../lib/', __FILE__)

Gem::Specification.new do |s|
s.name = 'yUMLmeRails'
s.version = '0.9'
s.version = '0.9.1'
s.authors = ['Nelson Silva']
s.homepage = 'https://github.com/nelsonsilva/yUMLmeRails'
s.summary = 'Use yUML to generate Rails diagrams using RailRoad.'
Expand Down

0 comments on commit eafa46e

Please sign in to comment.