Lightning talk on state machines design - Paris.rb meetup july 5th 2016
Branch: gh-pages
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.ruby-gemset
Gemfile
Gemfile.lock
MovieForMarketingTeam_state.svg
MovieForSupplyTeam_state.svg
Movie_state.svg
README.md
Rakefile
classes.rb
drivy-logo-white.png
groucho.jpg
index.html
remark.min.js
slides.md

README.md

run

$ python -m SimpleHTTPServer

head to http://localhost:8000

generate diagrams

  • use RVM
  • install graphviz
  • gem install bundler && bundle install
  • rake state_machine:draw FILE=./classes.rb CLASS=MovieForSupplyTeam FORMAT=svg && \
    rake state_machine:draw FILE=./classes.rb CLASS=StateMachineDesign FORMAT=svg && \
    sed -i .bak "s/white/transparent/" *.svg && rm *.bak```