rubyist-aasm 2.0.1 → 2.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/README.rdoc +1 -1
  2. data/lib/event.rb +1 -1
  3. data/lib/version.rb +1 -1
  4. metadata +1 -1
data/README.rdoc CHANGED
@@ -31,7 +31,7 @@ A release and a gem are forthcoming.
31
31
  === Building your own gems
32
32
 
33
33
  % rake gem
34
- % sudo gem install pkg/aasm-0.0.2.gem
34
+ % sudo gem install pkg/aasm-2.0.1.gem
35
35
 
36
36
 
37
37
  == Simple Example
data/lib/event.rb CHANGED
@@ -14,7 +14,7 @@ module AASM
14
14
 
15
15
  def fire(obj, to_state=nil, *args)
16
16
  transitions = @transitions.select { |t| t.from == obj.aasm_current_state }
17
- raise AASM::InvalidTransition if transitions.size == 0
17
+ raise AASM::InvalidTransition, "Event '#{name}' cannot transition from '#{obj.aasm_current_state}'" if transitions.size == 0
18
18
 
19
19
  next_state = nil
20
20
  transitions.each do |transition|
data/lib/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  module AASM
2
2
  module VERSION
3
- STRING = '0.0.2'
3
+ STRING = '2.0.2'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubyist-aasm
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.1
4
+ version: 2.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Scott Barron