Releases: norbajunior/machinist
Releases · norbajunior/machinist
2.1.2
v2.1.1
Allow guard functions to return a custom error tuple
v2.1.0
Reverts previous version
v2.0.0
A 'guard' word refers to the elixir guard check, which returns a boolean. In the case of 'machinist', the behaviour is to return the next state so that a cond
should be a better word for this purpose
v1.0.0
What's Changed
- Changes on the dsl by @norbajunior in #16
- Customize code format by @norbajunior in #18
Full Changelog: v0.5.1...v1.0.0
v0.5.2
Revert previous release
V0.5.1
v0.4.1
What's Changed
- Fix dialyzer warning of set_new_state private function by @norbajunior in #7
Full Changelog: v0.4.0...v0.4.1
v0.4.0
Add a new way to set from
transitions. With this new feature we can group many from
definitions with a same state.
# ...
transitions do
from :locked, to: :unlocked, event: "unlock"
from :unlocked do
to :locked, event: "lock"
to :opened, event: "open"
end
from :opened, to: :closed, event: "close"
from :closed, to: :opened, event: "open"
from :closed, to: :locked, event: "lock"
end
# ...
- implemented macro
Machinist.from/2
that expects astate
and a block ofto
statements
v0.2.0
Merge pull request #3 from norbajunior/change_field_to_attr Change field key to attr