state-notifier 0.0.5 → 0.0.6
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/README.md +8 -3
- data/lib/state/notifier/version.rb +1 -1
- data/lib/state/notifier.rb +1 -0
- 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: 60879f70445e58fda23bba385f6f363f78321d65
|
|
4
|
+
data.tar.gz: 42c05d12d55078e28194de8b6a71048ddc98509c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: faa8e1b270b662c0db0e34b8091fc62619694222c82386f611a7b428fe40c542908806a6d3bd85395afa49f5f59bf8b08123b224b1217dff3d33906c9d9ec221
|
|
7
|
+
data.tar.gz: 33f47dd3383487ae69c98a5289777bda9282e4bdbb851d610681caa7024d01bef7597e1b6cb0093eab596360e4d1efb4558f46d3d7683abe87fbe976990a33ce
|
data/README.md
CHANGED
|
@@ -28,9 +28,14 @@ Or install it yourself as:
|
|
|
28
28
|
|
|
29
29
|
For classes with a state machine the following calls are made:
|
|
30
30
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
31
|
+
`<event_name>` is notified every time.
|
|
32
|
+
|
|
33
|
+
Additionally, if the new state is different from the previous one, we also
|
|
34
|
+
get those 3 notifications:
|
|
35
|
+
|
|
36
|
+
- `state_changed`
|
|
37
|
+
- `<target_state>`
|
|
38
|
+
- `<event_name>_<target_state>`
|
|
34
39
|
|
|
35
40
|
class Event
|
|
36
41
|
belongs_to :provider, ...
|
data/lib/state/notifier.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: state-notifier
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.6
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Vitaly Kushner
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2014-
|
|
11
|
+
date: 2014-02-09 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|