metacosm 0.2.2 → 0.2.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: 793f2bede876f5dd2cb43e61fb87b70d212ee085
4
- data.tar.gz: 943eb4743ba08ea7945cfec6cd397a25d6d19c6f
3
+ metadata.gz: a60e66baf1458103a4f71cd3b30cb05c96a003bb
4
+ data.tar.gz: 5abac4b526875ec5269997ee9400791148707f3d
5
5
  SHA512:
6
- metadata.gz: 11caa1078cbdd52df31ceee28df67f304de7fe66793151d84897331d314b623a9cb1b48741e1efee96dce6c1d04513313ee91198330de9c8d2cc38feeb19a8e6
7
- data.tar.gz: 594e824dae825b635865ca78375cd105e7f7b6b962e180949cb379daab17dbf6b8889a6a0016ff28466d1d979becb1e0acf41a91495e541ec03ea5f38139c50d
6
+ metadata.gz: a34c6b7ab40dafd80fbfc261e788fed0db794f04f19b529c4368e7ae12d4c669bed5b64609f8b628487607f7f9dc685fa2c143be70c2ae2ffb8d08f4afd313d0
7
+ data.tar.gz: e774445c009e84bfc222715a4aed40d546d398677251c2602326391cb8e1409797d044641dbb21dce52efd6eefc4cf3bab6f6b5b20e52f465dc8d08e5fdaeef2
@@ -66,12 +66,12 @@ module Metacosm
66
66
  protected
67
67
  def handler_for(command)
68
68
  @handlers ||= {}
69
- @handlers[command] ||= Object.const_get(command.class.name.split('::').last + "Handler").new
69
+ @handlers[command.class] ||= Object.const_get(command.class.name.split('::').last + "Handler").new
70
70
  end
71
71
 
72
72
  def listener_for(event)
73
73
  @listeners ||= {}
74
- @listeners[event] ||= construct_listener_for(event)
74
+ @listeners[event.class] ||= construct_listener_for(event)
75
75
  end
76
76
 
77
77
  def construct_listener_for(event)
@@ -1,4 +1,4 @@
1
1
  module Metacosm
2
2
  # metacosm version
3
- VERSION = "0.2.2"
3
+ VERSION = "0.2.3"
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metacosm
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joseph Weissman