can_has_state 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -15,6 +15,13 @@ Key features:
15
15
 
16
16
 
17
17
 
18
+ ## Installation ##
19
+
20
+ Add it to your `Gemfile`:
21
+
22
+ gem 'can_has_state'
23
+
24
+
18
25
  ## DSL ##
19
26
 
20
27
  ### ActiveRecord ###
@@ -64,6 +64,7 @@ module CanHasState
64
64
  end
65
65
 
66
66
  def can_has_deferred_state_triggers
67
+ @triggers_called ||= {}
67
68
  state_machines.each do |(column, sm)|
68
69
  # clear record of called triggers
69
70
  @triggers_called[column] = nil
@@ -1,3 +1,3 @@
1
1
  module CanHasState
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: can_has_state
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-01-14 00:00:00.000000000 Z
12
+ date: 2013-04-08 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activemodel
@@ -112,7 +112,7 @@ files:
112
112
  - test/dummy/README.rdoc
113
113
  - test/dummy/script/rails
114
114
  - test/test_helper.rb
115
- homepage: http://iprog.com/projects
115
+ homepage: https://github.com/zarqman/can_has_state
116
116
  licenses: []
117
117
  post_install_message:
118
118
  rdoc_options: []
@@ -124,12 +124,18 @@ required_ruby_version: !ruby/object:Gem::Requirement
124
124
  - - ! '>='
125
125
  - !ruby/object:Gem::Version
126
126
  version: '0'
127
+ segments:
128
+ - 0
129
+ hash: -1119686134931941770
127
130
  required_rubygems_version: !ruby/object:Gem::Requirement
128
131
  none: false
129
132
  requirements:
130
133
  - - ! '>='
131
134
  - !ruby/object:Gem::Version
132
135
  version: '0'
136
+ segments:
137
+ - 0
138
+ hash: -1119686134931941770
133
139
  requirements: []
134
140
  rubyforge_project:
135
141
  rubygems_version: 1.8.24