rydux 0.9.3 → 0.9.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.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/rydux/store.rb +3 -1
- data/lib/rydux/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: a22cd45cbc7f4e8df30f0fc31345156d41926b6f
|
|
4
|
+
data.tar.gz: 22cfbf8c809eb00b2f32342607d677ff2e60f0be
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b753a4f4a9de7d9430b6f88d61403aef026ccef1919c3d322ba4b9fac1439597815a4e03ce2ecba0b8b99038278c0d5c19f0bcc6841b2263f41a0937952b30ec
|
|
7
|
+
data.tar.gz: d8b550af3deaa5f0529c1018b19be069c3044de0e83e4831fd4d2a8002b220445209ed08e57dd97859796bb5a4e2c6b5ef327d84c6799de7c559ffc6f6704d73
|
data/Gemfile.lock
CHANGED
data/lib/rydux/store.rb
CHANGED
|
@@ -82,8 +82,10 @@ module Rydux
|
|
|
82
82
|
@listeners.each do |listener|
|
|
83
83
|
# If no notify_when, the user wants ALL state notifications
|
|
84
84
|
# Otherwise, only send the state notifications they've subscribed to.
|
|
85
|
-
if
|
|
85
|
+
if !listener[:notify_when] && listener[:obj].respond_to?(:state_changed)
|
|
86
86
|
listener[:obj].public_send(:state_changed, state)
|
|
87
|
+
elsif listener[:notify_when].include?(state_key) && listener[:obj].respond_to?(:state_changed)
|
|
88
|
+
listener[:obj].public_send(:state_changed, State.new(state[state_key]))
|
|
87
89
|
end
|
|
88
90
|
end
|
|
89
91
|
end
|
data/lib/rydux/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rydux
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.9.
|
|
4
|
+
version: 0.9.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Alex Dovzhanyn
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2018-
|
|
11
|
+
date: 2018-07-02 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|