simplestate 2.0.4 → 2.0.5
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.
- checksums.yaml +4 -4
- data/CHANGE_NOTES.md +6 -0
- data/README.md +2 -0
- data/lib/simplestate/state_list.rb +4 -0
- data/lib/simplestate/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: 5bb79fc8b26c8748b9e2fa91f35cacbf5814ee7d
|
|
4
|
+
data.tar.gz: 3764e73a6ee1b43a7242f3944c86456275c2b3ec
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 668c8768653e3e6327e165b584bd810af2fcffc818c09bce017005bf5cf764945cb83f163b8cf4ca64f76ea8637728c5cfc160d4e986608b72c14eda53ea60d3
|
|
7
|
+
data.tar.gz: 5bfc7b2bfa7617b340f05b170d9f35741dd080e60258aa036f19263405d3ad180c289614562358be49abc50c64f88238fc2314b597b53e1b91a71e14b67acaa7
|
data/CHANGE_NOTES.md
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
#### SimpleState version 2.0.4
|
|
2
|
+
Up date README to reflect creation of the simplestate-demo app.
|
|
3
|
+
Add #keys convenience method to StateList instances.
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
1
7
|
#### SimpleState version 2.0.3
|
|
2
8
|
Move maintenance of list of states available to an instance of StateList. This instance is held by the state holder. Allows multiple state holders to each have their own list of available states. Removes the effective global state being maintained in the State class.
|
|
3
9
|
|
data/README.md
CHANGED
|
@@ -161,6 +161,8 @@ holder.specialmethod
|
|
|
161
161
|
#### Usage Example
|
|
162
162
|
The button module (test/dummys/button.rb) provides an example of the usage of Simplestate. Tests of this are provided in button\_test.rb.
|
|
163
163
|
|
|
164
|
+
A working minimal example app is provided at ```https://github.com/dpneumo/simplestate-demo```
|
|
165
|
+
|
|
164
166
|
## Alternatives
|
|
165
167
|
|
|
166
168
|
If a DSL is desired, complex state functionality is required, events may arrive asynchronously from multiple sources, or state machine functionality must be provided via inclusion of a module rather than via inheritance then Simplestate is probably not appropriate. Consider looking at the [Statemachine](https://github.com/pluginaweek/state\_machine), [AASM](https://github.com/aasm/aasm) or [Workflow](https://github.com/geekq/workflow) gems. [The Ruby Toolbox](https://www.ruby-toolbox.com/categories/state\_machines.html) provides links to several other statemachine implementations.
|
data/lib/simplestate/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: simplestate
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.0.
|
|
4
|
+
version: 2.0.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Mitchell C Kuppinger
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-09-
|
|
11
|
+
date: 2016-09-08 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|