0.0
No release in over 3 years
Adds a PlantUML output format to RailsERD.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Runtime

>= 7.0
>= 1.7.0
 Project Readme

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_uml

If bundler is not being used to manage dependencies, install the gem by executing:

gem install rails-plant_uml

Usage

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
end

Development

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:

  1. bundle exec rake build:checksum
  2. bundle exec rake release

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/SOFware/rails-plant_uml.