simplefsm 0.2.3 → 0.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/simplefsm.rb +4 -3
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f2a2b085fc53bb8bad80db05012653c5ec305808
4
- data.tar.gz: 64d69c9349fff3f51c8ede74117b21596cf35afa
3
+ metadata.gz: c78425384cf399c5e5b17b538dab47b0d73e3087
4
+ data.tar.gz: cb18cb9e3c983052d37fbf4fa99f454ef791b94a
5
5
  SHA512:
6
- metadata.gz: 23e82bb0db0fa86ad0f754d2a018c07b1d56b0ea620a863fed0107d6f609f96837114e6da528edbb9398200323e3a4d70450a19552eb0c245199ca1c56386e14
7
- data.tar.gz: 011724619fde75883c4dc803479e41280327690d36f1bf58c4ad99ac5f23ceea5803173357de1bd1ac09d9a51c0db7b0c0ffd124b732348fb1099a3d8a05cb40
6
+ metadata.gz: 00d3930a594a2d9c070db9df3dfd8312bc39e6fd1adfb38fb12d65950c87bd1090a79f97b6de54eb94549a9b94664ad924bae1c4a31dabe25f1807575228eb5d
7
+ data.tar.gz: 2ee1884120c0b451a9f7d7f8d433d37f37253c63f7343eb9645de2552b114e08846d09818180ed35aa25650c9c5d75f4a6595b7e92de7aea81069bb76c4dc72c
@@ -14,7 +14,7 @@
14
14
  # License:: MIT License
15
15
 
16
16
  module SimpleFSM
17
- VERSION = '0.2.3'
17
+ VERSION = '0.2.4'
18
18
 
19
19
  # TransitionFactory instance is a temporary helper object
20
20
  # for making transitions from a transitions_for code block parameter
@@ -84,7 +84,6 @@ module SimpleFSM
84
84
  end
85
85
 
86
86
  statetrans = @@transitions[st]
87
- # uniquestates = []
88
87
 
89
88
  if statetrans
90
89
  # Get all transitions for this event in the current state
@@ -143,9 +142,11 @@ module SimpleFSM
143
142
  #END of :action keyword
144
143
 
145
144
  do_transform new_state, args
145
+ return true
146
146
  end
147
147
  end
148
148
  end
149
+ return false
149
150
  end
150
151
  end
151
152
  end
@@ -256,7 +257,7 @@ module SimpleFSM
256
257
  symname = sname.to_sym
257
258
  newstate = @@states.select{|a| a[:state] == symname}.first
258
259
  if !newstate
259
- raise "New state (#{sname}) is empty."
260
+ raise "New state (#{sname}) cannot be empty."
260
261
  return
261
262
  end
262
263
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simplefsm
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Edin Pjanic
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2017-04-17 00:00:00.000000000 Z
12
+ date: 2017-05-07 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: A simple and lightweight domain specific language (DSL) for modeling
15
15
  finite state machines (FSM).