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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a553419c7a74efd09772b41ad579948834f8c190
4
- data.tar.gz: 6ab1ee4bffc24168b8bf31320cb85aa632384a72
3
+ metadata.gz: ae3d305a090f889c3ec8c4f8cd9aa7746195e047
4
+ data.tar.gz: 51e2c2b4850c6a6831785999720073b336e03d15
5
5
  SHA512:
6
- metadata.gz: 9360ba21fe5b2ce44808682ef5501d6cb8542bc9e227b4510e47cc0a812f35cd5923c0b46550a687714b3f09431ee60894d556f3fa8c00b2c442b2248f09e0bb
7
- data.tar.gz: 571df2a52aa71250e347e608f05fad04bd04b32628cec368c19f76492af033061fe2c673959410c35015730de329aeddaf66f468ddde5434833eb58f37be07ac
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
 
@@ -1,3 +1,3 @@
1
1
  module EndState
2
- VERSION = '0.3.0'
2
+ VERSION = '0.3.1'
3
3
  end
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.0
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-02 00:00:00.000000000 Z
11
+ date: 2014-06-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler