https://github.com/aasm/aasm_graph
Add-on gem for creating graphs from AASM state machine definitions
https://github.com/aasm/aasm_graph
Last synced: 9 months ago
JSON representation
Add-on gem for creating graphs from AASM state machine definitions
- Host: GitHub
- URL: https://github.com/aasm/aasm_graph
- Owner: aasm
- License: mit
- Created: 2015-05-04T09:21:42.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2021-09-29T14:42:56.000Z (over 4 years ago)
- Last Synced: 2025-04-12T04:46:48.511Z (9 months ago)
- Language: Ruby
- Size: 176 KB
- Stars: 10
- Watchers: 8
- Forks: 15
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# AASM::Graph
Add-on gem for creating graphs from AASM state machine definitions
## Installation
Add this line to your application's Gemfile:
```ruby
gem 'aasm_graph'
```
And then execute:
$ bundle
Or install it yourself as:
$ gem install aasm_graph
## Usage
You can use it via the command line interface:
```
./bin/aasm_graph -Iexample -rjob Job
```
Or you can use it with Rake. In your `Rakefile`, load the `aasm_graph` task file:
```
load "aasm/tasks/aasm_graph.rake"
```
And then you can run the rake task:
```
rake aasm_graph INCLUDE=./example REQUIRE=job CLASS=Job
```
## Contributing
1. Fork it ( https://github.com/aasm/aasm_graph/fork )
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create a new Pull Request