dunedain289-aasm 2.1 → 2.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. data/Rakefile +3 -3
  2. data/lib/aasm.rb +1 -1
  3. data/lib/event.rb +2 -0
  4. data/lib/state.rb +2 -0
  5. metadata +1 -1
data/Rakefile CHANGED
@@ -53,9 +53,9 @@ else
53
53
  s.extra_rdoc_files = rd.rdoc_files.reject {|fn| fn =~ /\.rb$/}.to_a
54
54
  s.rdoc_options = rd.options
55
55
 
56
- s.author = 'Scott Barron'
57
- s.email = 'scott@elitists.net'
58
- s.homepage = 'http://rubyi.st/aasm'
56
+ s.authors = ['Scott Barron', 'Scott Petersen']
57
+ s.email = 'petersen@dunedain289.com'
58
+ s.homepage = 'http://github.com/dunedain289/aasm'
59
59
  end
60
60
 
61
61
  package_task = Rake::GemPackageTask.new(spec) do |pkg|
data/lib/aasm.rb CHANGED
@@ -5,7 +5,7 @@ require File.join(File.dirname(__FILE__), 'persistence')
5
5
 
6
6
  module AASM
7
7
  def self.Version
8
- '2.0.5'
8
+ '2.1.1'
9
9
  end
10
10
 
11
11
  class InvalidTransition < RuntimeError
data/lib/event.rb CHANGED
@@ -51,6 +51,8 @@ module AASM
51
51
  record.send(action)
52
52
  when Proc
53
53
  action.call(record)
54
+ when Array
55
+ action.each { |a| record.send(a) }
54
56
  end
55
57
  end
56
58
 
data/lib/state.rb CHANGED
@@ -22,6 +22,8 @@ module AASM
22
22
  record.send(action)
23
23
  when Proc
24
24
  action.call(record)
25
+ when Array
26
+ action.each { |a| record.send(a) }
25
27
  end
26
28
  end
27
29
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dunedain289-aasm
3
3
  version: !ruby/object:Gem::Version
4
- version: "2.1"
4
+ version: 2.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Scott Petersen