Skip to content

Commit

Permalink
v0.8.0 (closes #63)
Browse files Browse the repository at this point in the history
  • Loading branch information
appleton committed Jul 29, 2014
1 parent 60ebc0a commit 22df186
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## v0.8.0 29 June 2014
*Additions*

- Events. Machines can now define events as a logical grouping of transitions (patch by [@iurimatias](https://github.com/iurimatias))
- Retries. Individual transitions can be executed with a retry policy by wrapping the method call in a `Machine.retry_conflicts {}` block (patch by [@greysteil](https://github.com/greysteil))

## v0.7.0 25 June 2014
*Additions*

Expand Down
2 changes: 1 addition & 1 deletion lib/statesman/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module Statesman
VERSION = "0.7.0"
VERSION = "0.8.0"
end
2 changes: 2 additions & 0 deletions spec/statesman/machine_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -645,7 +645,9 @@ def after_initialize; end

context "with a guard" do
let(:result) { true }
# rubocop:disable UnusedBlockArgument
let(:guard_cb) { ->(*args) { result } }
# rubocop:enable UnusedBlockArgument
before { machine.guard_transition(from: :x, to: :y, &guard_cb) }

context "and an object to act on" do
Expand Down

0 comments on commit 22df186

Please sign in to comment.