dm-visualizer

Description

DataMapper Visualizer is both a library and a command-line utility for visualizing the Models, Properties and Relationships defined in a DataMapper based Ruby project.

Features

  • Safely loads the models of a project.
  • Supports using Gem Bundler.
  • Generates GraphViz diagrams for a project:
    • Supports generating Relational and Schema diagrams.
    • Provides PNG and SVG output.
    • Provides Rake tasks for both Ruby libraries and dm-rails apps.
  • Supports DataMapper >= 1.0.0.

Examples

Add the dm:doc:graphviz rake tasks to a Ruby library:

require 'dm-visualizer/rake/graphviz_task'
DataMapper::Visualizer::Rake::GraphVizTask.new(
  :include => ['lib'],
  :require => ['my_library/models']
)

Add the dm:doc:graphviz rake tasks to a dm-rails app:

require 'dm-visualizer/rake/rails/graphviz_task'
DataMapper::Visualizer::Rake::Rails::GraphVizTask.new

Requirements

Install

$ gem install dm-visualizer

License

Copyright (c) 2010-2012 Hal Brodigan

See LICENSE for license information.