Rails::PlantUml
Tie into RailsERD to generate PlantUML diagrams.
Installation
Install the gem and add to the application's Gemfile by executing:
bundle add rails-plant_umlIf bundler is not being used to manage dependencies, install the gem by executing:
gem install rails-plant_umlUsage
See the the rake tasks with rails -T erd.
Build your own task using the Rails::PlantUml class.
desc "Generate a PlantUML diagram of your special models"
task special_diagram: :environment do
require "rails/plant_uml"
options = {
models: %w[Something Special OtherModel],
title: "My Special Diagram",
filename: "docs/special_diagram"
app_name: Rails.application.class.module_parent_name
}
diagram = RailsErd::PlantUml.new(RailsERD::Domain.generate, options)
diagram.save
endDevelopment
After checking out the repo, run bin/setup to install dependencies. Then, run rake test to run the tests. You can also run bin/console for an interactive prompt that will allow you to experiment.
To install this gem onto your local machine, run bundle exec rake install.
This project is managed with Reissue.
To release a new version, make your changes and be sure to update the CHANGELOG.md.
To release a new version:
bundle exec rake build:checksumbundle exec rake release
Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/SOFware/rails-plant_uml.