state-notifier 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/state/notifier.rb +2 -0
- data/lib/state/notifier/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 73ce4a60f6702e34304282f7ce98882e463cc38a
|
4
|
+
data.tar.gz: 912eb8dc3bd4441a8839c0e8e54336ce4583b5ef
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 77745fabbc8c4e56256a8917b6d124f13e783270dc2beeb585be46dd767bc0a5e47f7ee7d95e17f8fdf2850c3625cc5d05d056598141fa54896b70ef51c72966
|
7
|
+
data.tar.gz: 99dd5ef77b6a4909ab4c7e92b13ade67c8ebd21333544fc3b61feedb258c08d865e41d8c1c19a0f36a66992d29da0936d3a16a69837866192a4709957fff53e9
|
data/lib/state/notifier.rb
CHANGED
@@ -22,8 +22,10 @@ module State
|
|
22
22
|
notify_targets transition.event
|
23
23
|
unless transition.to == transition.from
|
24
24
|
notify_targets transition.to
|
25
|
+
notify_targets "#{transition.from}_#{transition.event}"
|
25
26
|
notify_targets "#{transition.event}_#{transition.to}"
|
26
27
|
notify_targets "#{transition.from}_#{transition.to}"
|
28
|
+
notify_targets "#{transition.from}_#{transition.event}_#{transition.to}"
|
27
29
|
notify_targets :state_changed
|
28
30
|
end
|
29
31
|
end
|