https://github.com/artcom/hsm-rb
Ruby Statemachine gem
https://github.com/artcom/hsm-rb
Last synced: 8 months ago
JSON representation
Ruby Statemachine gem
- Host: GitHub
- URL: https://github.com/artcom/hsm-rb
- Owner: artcom
- License: mit
- Created: 2015-04-02T10:31:23.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2015-07-02T09:43:47.000Z (almost 11 years ago)
- Last Synced: 2024-12-27T12:22:18.735Z (over 1 year ago)
- Language: Ruby
- Size: 180 KB
- Stars: 1
- Watchers: 16
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: License
Awesome Lists containing this project
README
# Hierarchical Statemachine for Ruby
[](https://travis-ci.org/artcom/hsm-rb)
Reference is http://en.wikipedia.org/wiki/UML_state_machine
## Developer Setup
### Install dependencies and setup environment
Requires the specified ruby version to be installed. For details see `.ruby-version.dev`
Enter directory and first link up the `.ruby*` files:
$ ln -s .ruby-version.dev .ruby-version
$ ln -s .ruby-gemset.dev .ruby-gemset
$ cd . # to activate this setting
Alternatively the rake-task `rvm:dotfiles:link` can be used
$ rake rvm:dotfiles:link
$ cd .
Then install all required gems via
$ bundle
### Running tests
* Without coverage
`$ bundle exec guard`
* With coverage
`$ COVERAGE=html bundle exec guard`
## License
Please consult the `License` file.
# TODO
Please see issue tracker.
* Add visualization
* Make state machine inspection simpler
* Revisit syntax (DSL ?), structure