nexus_cqrs 0.0.11 → 0.0.12

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: 025bf5a4903e3b0df58125767cb28379f8409b7925b043d4f864006130f9e918
4
- data.tar.gz: 0ff16d64976c4f694d4f69ed396309e50ffdb9437d499d7f60befa4a71db4b55
3
+ metadata.gz: 194d9582819dfbce269179cd41d5c442a3a66a3797b0d77d09ef80e7343f6b25
4
+ data.tar.gz: ff860d659e433356d3ce6880aa445257fb6eab5ee1f9e53ea6e7ef2161e7be2c
5
5
  SHA512:
6
- metadata.gz: f358c0979e3fd1f5ef1b177f528148290164cd8e5dcc3d3b56246f3a09d3d0768951ef692f436d911daac43f6147666595b4b17645ebb9e62a7ff63a82163cd2
7
- data.tar.gz: f8290765f0b2ff7962dcbbc6dd12a12e495f126a06804b4652077eb840eea0c99d8bbd683f0d539391c3a01c121f7eecf1f69b2f5d30e4e38f38258b556b4bc9
6
+ metadata.gz: f4d420c2e28c58bfa155ac015f95a3edf51a201bf3e6ab478529b41be162b5cd375c01a0de66ee8559ea07de663bc703f8ae14d19086ea80d879d00158a49c21
7
+ data.tar.gz: 134ab0e8e19e9d1e3378f4fe2d8efabb8f469b7924e30bc9685f82e5e4cc7fc0761191e988e80c9c46b3b36d8b9eb7a9232ef65253ce05ac6f6150ff5384cc7a
@@ -20,7 +20,7 @@ module NexusCqrs
20
20
  unregistered_handler = proc { raise UnregisteredHandler, "Missing handler for #{command.class}" }
21
21
 
22
22
  handlers
23
- .fetch(command.class, &unregistered_handler)
23
+ .fetch(command.class.name, &unregistered_handler)
24
24
  .call(command)
25
25
  end
26
26
 
@@ -12,7 +12,7 @@ module NexusCqrs
12
12
 
13
13
  def register_command(klass, handler)
14
14
  Rails.logger.debug("Registered #{klass} to #{handler}")
15
- @bus.register(klass.class, handler)
15
+ @bus.register(klass.name, handler)
16
16
  end
17
17
 
18
18
  private
@@ -1,3 +1,3 @@
1
1
  module NexusCqrs
2
- VERSION = '0.0.11'
2
+ VERSION = '0.0.12'
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.11
4
+ version: 0.0.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dean Lovett