end_state 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/end_state/state_machine.rb +1 -1
- data/lib/end_state/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ae3d305a090f889c3ec8c4f8cd9aa7746195e047
|
4
|
+
data.tar.gz: 51e2c2b4850c6a6831785999720073b336e03d15
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0438d6dd04ca45c009d0087ace06af294ce87db794fcbc1b44691d36f1f760343cd8ace467013663d509a7cc2330a8c28ad2c8781699d473c264667733e58380
|
7
|
+
data.tar.gz: a0b3c8565c86b8894acc121c2c9412a45ef299a7e2749e3d9e8d3f335b58197dadf364e7980fdc2d3187c5d349ffbe6e873b40268265c7519597ef3768f5f196
|
@@ -97,7 +97,7 @@ module EndState
|
|
97
97
|
def state_for_event(event)
|
98
98
|
transitions = self.class.events[event]
|
99
99
|
return false unless transitions
|
100
|
-
return invalid_event(event) unless transitions.map { |t| t.keys.first }.include?(state)
|
100
|
+
return invalid_event(event) unless transitions.map { |t| t.keys.first }.include?(state.to_sym)
|
101
101
|
transitions.first.values.first
|
102
102
|
end
|
103
103
|
|
data/lib/end_state/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: end_state
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- alexpeachey
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-06-
|
11
|
+
date: 2014-06-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|