grand_central 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d04e898aad39b554216bebfb1d214bb2e9d1980a
4
- data.tar.gz: c6acec83ffd46a28b3e26370bf00a435fe617afe
3
+ metadata.gz: 2a9b9b9193055a734c28ba94f564a1a950aad63a
4
+ data.tar.gz: 397dd01f44a20a629770fbb015659399704eb1b6
5
5
  SHA512:
6
- metadata.gz: 7878e1b8c46119044802db1ddd626931d2428008cbbda25190464e8a26a95f5ce35884d5640b776f0c7736196ed0f32397c251765fb855a1aec48f0c663a67de
7
- data.tar.gz: c088494688d9c046b14db97c2f0482a171eeddb76eb23d7e95feae66843e3654fbe334734f663478f6f141985901e598734c1a329c7d43c0557088e2d9620b02
6
+ metadata.gz: 9fb86b6002564fcdade0e8b96564221e7863372d93524fdb3642caf54af7f22a85f132b9da35a9a7157bdc8ef084810783cc1f90747c98f7073fd0837a507287
7
+ data.tar.gz: b01f2ab4e65f82400556af953d151572386e94927b1e3d2c09fb6dbac8f25814eb6c40d600149c72f5e495146fe6faee9bd3053662bf3a33ccab6ab798c580e3
@@ -11,7 +11,7 @@ module GrandCentral
11
11
  def dispatch action
12
12
  old_state = state
13
13
  @state = @reducer.call state, action
14
- run_callbacks old_state, state
14
+ run_callbacks old_state, state, action
15
15
  self
16
16
  end
17
17
 
@@ -20,9 +20,9 @@ module GrandCentral
20
20
  self
21
21
  end
22
22
 
23
- def run_callbacks old_state, new_state
23
+ def run_callbacks old_state, new_state, action=nil
24
24
  @dispatch_callbacks.each do |callback|
25
- callback.call old_state, new_state
25
+ callback.call old_state, new_state, action
26
26
  end
27
27
  end
28
28
  end
@@ -1,3 +1,3 @@
1
1
  module GrandCentral
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: grand_central
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jamie Gaskins
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-10-03 00:00:00.000000000 Z
11
+ date: 2015-11-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: opal