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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e22aafcfca544af2e0fb87335e41b1e894bf02d5
4
- data.tar.gz: cba2f65d1f0469f171785e8b42cb4f59498a2581
3
+ metadata.gz: 5bb79fc8b26c8748b9e2fa91f35cacbf5814ee7d
4
+ data.tar.gz: 3764e73a6ee1b43a7242f3944c86456275c2b3ec
5
5
  SHA512:
6
- metadata.gz: 847218dc4888258c127c2b62a0598830810c6a6f3dc7a60f4133b09eb0e32e8ee44191fb30bafaef40f473416abec4dbf4a63bea53fe1542017e398fae09bb6b
7
- data.tar.gz: 89f5573e474b29e84ef42d9d616d70f79c04485b4e8c94d27e9e23f840366ad53c84f23074cb5fa99d07fbf813e6ce9401e16cdf1279701306d111b82582479d
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.
@@ -19,4 +19,8 @@ class StateList
19
19
  def size
20
20
  @list.size
21
21
  end
22
+
23
+ def keys
24
+ @list.keys
25
+ end
22
26
  end
@@ -1,3 +1,3 @@
1
1
  module Simplestate
2
- VERSION = "2.0.4"
2
+ VERSION = "2.0.5"
3
3
  end
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
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-07 00:00:00.000000000 Z
11
+ date: 2016-09-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler