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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7098f20a793a618b8b259cb5db79e3754158e3ae
4
- data.tar.gz: 231e6c8aec4ff8096fa44efc8e409c8c5a563bc3
3
+ metadata.gz: a22cd45cbc7f4e8df30f0fc31345156d41926b6f
4
+ data.tar.gz: 22cfbf8c809eb00b2f32342607d677ff2e60f0be
5
5
  SHA512:
6
- metadata.gz: 63a22ba76537430d1a3d14984b0643dd132b3cb9ce08ec7cfd80b55ab74305f75ae6a69d3e99767f4cf11e373cd6304a0e09c07769d2b071ec2418cb79476f0d
7
- data.tar.gz: 2683fde74bad9722225b186d87240d151912d515ed1f6e24b09f91ae3d32859b70242c45057549f5f201a72143373d023d31c9c16c89b007a79c2a4fdf4b8cc6
6
+ metadata.gz: b753a4f4a9de7d9430b6f88d61403aef026ccef1919c3d322ba4b9fac1439597815a4e03ce2ecba0b8b99038278c0d5c19f0bcc6841b2263f41a0937952b30ec
7
+ data.tar.gz: d8b550af3deaa5f0529c1018b19be069c3044de0e83e4831fd4d2a8002b220445209ed08e57dd97859796bb5a4e2c6b5ef327d84c6799de7c559ffc6f6704d73
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rydux (0.9.2)
4
+ rydux (0.9.3)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -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 (!listener[:notify_when] || listener[:notify_when].include?(state_key)) && listener[:obj].respond_to?(:state_changed)
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
@@ -1,3 +1,3 @@
1
1
  module Rydux
2
- VERSION = "0.9.3"
2
+ VERSION = "0.9.4"
3
3
  end
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.3
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-06-29 00:00:00.000000000 Z
11
+ date: 2018-07-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler