nexus_cqrs 0.0.5 → 0.0.6

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
  SHA256:
3
- metadata.gz: 847a980fa9ad933433817673a5a306453b7e293a38a41c12e355dd5f4d1e991e
4
- data.tar.gz: e1041424ef479676ca5fddb56c503f7b353dd40f9f1220335842e1e1fb443524
3
+ metadata.gz: 166e19872cf44b2a581e7d3c3c744c1500bf9b6259dff4678e1b6a817d2b8b64
4
+ data.tar.gz: ebe24c347b567a40f529e0b8409fff8d1bb9410044b03d7b03e6cae896d6e8d4
5
5
  SHA512:
6
- metadata.gz: aa430242485a2080a494b26805dc0d36f437625494dda151757418006f929f8cce1ad937cc31bc1f1f763fd46e1e7598cfb09f65bb93d7349a135e3e63083e7f
7
- data.tar.gz: 8f41e2f25102d6ccf1d220054f7ea5885217fe337e5c066489895920a65697b8d1f2a15040588f441754cfccc5390e9ed98100698d47de82b12a31d40d34772f
6
+ metadata.gz: 519f57716334745b55e303914758549f0b2652d94c353d3bd78264f73db44f5e47a4eaa9aeb3e6bef017f49c44e0fea7745c2a671fad72972d830da52e59e0f7
7
+ data.tar.gz: 3dd5eba476cc5b87d3c0217417ab5e8323fce73f925db26fccfd79b9e02a18ff6daff5e55adec12cd9b45cb0b45849f1ba4fc01dc5cf8c82b0c86b8e6f4daa5b
@@ -18,7 +18,7 @@ module NexusCqrs
18
18
  def call(command)
19
19
  handlers
20
20
  .fetch(command.class) { raise UnregisteredHandler.new("Missing handler for #{command.class}") }
21
- .(command)
21
+ .run(command)
22
22
  end
23
23
 
24
24
  private
@@ -11,6 +11,7 @@ module NexusCqrs
11
11
  end
12
12
 
13
13
  def register_command klass, handler
14
+ Rails.logger.debug "Registered #{klass} to #{handler}"
14
15
  @bus.register(klass, handler)
15
16
  end
16
17
 
@@ -1,3 +1,3 @@
1
1
  module NexusCqrs
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nexus_cqrs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dean Lovett