Skip to content
forked from ogom/draw_uml

Drawing the Unified Modeling Language of Rack

License

Notifications You must be signed in to change notification settings

fgmatos/draw_uml

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is a fork of "ogom/draw_uml" gem. We have implemented a way to define the output format of the generated diagram. Two options have been added for this:

:svg or :png

You can now set your favorite output format in config/application.rb

DrawUml::Configure.image_format = :svg

If you do not set the output format the default value will be used (:png)


DrawUML

Gem Version Build Status

Drawing the Unified Modeling Language of Rack.

Browse the documentation.

Installation

Add this line to your application's Gemfile:

gem 'draw_uml', :git => 'https://github.com/fgmatos/draw_uml'

And then execute:

$ bundle

Usage

Add this line to your config/routes.rb:

mount DrawUml::Engine, at: '/rails/draw/uml'

Create your diagrams in the doc/diagrams folder using PlantUML syntax:

Example

@startuml
:user: --> (Use case 1)
:user: -> (Use case 2)
@enduml

example

If you use Linux and do not have the plantuml binaries installed on your system, perform the installation through the command:

$ aptitude install plantuml

Start the server:

$ rails s -p 3000

Access your application:

http://localhost:3000/rails/draw/uml

Now you can see all the diagrams located in the doc/diagrams folder by selecting the model (name of diagram file).

example

Use

License

  • MIT

About

Drawing the Unified Modeling Language of Rack

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Ruby 85.4%
  • HTML 14.6%