evil_events 0.1.0rc6 → 0.1.0rc7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/evil_events/config.rb +0 -2
- data/lib/evil_events/shared/combined_context_mixin.rb +2 -0
- data/lib/evil_events/version.rb +1 -1
- data/lib/evil_events.rb +33 -3
- metadata +2 -3
- data/lib/evil_events/config/adapters.rb +0 -29
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cf1e64c53bc5c1613fb5ffdaf34e4295f8f5b939
|
4
|
+
data.tar.gz: ccf595e35d013c7cf818efbf2cfaee9d3ad9b164
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 12fbb4762dc0eb9369c5f2c1d3adadc061ce2874db08c73b1c516ec0832fc76d396f6e107d77e762b16ad51815b7628eb83db3acf1f8b8a19209b83bfcef05ab
|
7
|
+
data.tar.gz: 53dcc4384319e73053a32a9e294d72f61dd34065b62ad1d75a23536a6f85f9dea56a6e710d76eed059f231fb8529277c8e86787a6b338ec32fa51420fe649a14
|
data/lib/evil_events/config.rb
CHANGED
data/lib/evil_events/version.rb
CHANGED
data/lib/evil_events.rb
CHANGED
@@ -36,9 +36,7 @@ module EvilEvents
|
|
36
36
|
# @api public
|
37
37
|
# @since 0.1.0
|
38
38
|
def configure
|
39
|
-
|
40
|
-
yield(config) if block_given?
|
41
|
-
end
|
39
|
+
config.configure { |conf| yield(conf) if block_given? }
|
42
40
|
end
|
43
41
|
|
44
42
|
# @see EvilEvents::Config
|
@@ -49,6 +47,38 @@ module EvilEvents
|
|
49
47
|
end
|
50
48
|
end
|
51
49
|
|
50
|
+
# @api public
|
51
|
+
# @since 0.1.0
|
52
|
+
module Adapters
|
53
|
+
class << self
|
54
|
+
# @params adapter_name [String, Symbol]
|
55
|
+
# @params adapter_object [Class{EvilEvents::DispatcherMixin}]
|
56
|
+
# @raise Dry::Container::Error
|
57
|
+
# @return void
|
58
|
+
#
|
59
|
+
# @see EvilEvents::System
|
60
|
+
#
|
61
|
+
# @api public
|
62
|
+
# @since 0.1.0
|
63
|
+
def register(adapter_name, adapter_object)
|
64
|
+
EvilEvents::BootPoint[:event_system].register_adapter(adapter_name, adapter_object)
|
65
|
+
end
|
66
|
+
|
67
|
+
# @param adapter_name [String, Symbol]
|
68
|
+
# @raise Dry::Container::Error
|
69
|
+
# @return [Class{EvilEvents::DispatcherMixin}]
|
70
|
+
#
|
71
|
+
# @see EvilEvents::System
|
72
|
+
#
|
73
|
+
# @api public
|
74
|
+
# @since 0.1.0
|
75
|
+
def resolve(adapter_name)
|
76
|
+
EvilEvents::BootPoint[:event_system].resolve_adapter(adapter_name)
|
77
|
+
end
|
78
|
+
alias_method :[], :resolve
|
79
|
+
end
|
80
|
+
end
|
81
|
+
|
52
82
|
# @api public
|
53
83
|
# @since 0.1.0
|
54
84
|
module Serializer
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: evil_events
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.0rc7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rustam Ibragimov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-10-
|
11
|
+
date: 2017-10-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dry-monads
|
@@ -245,7 +245,6 @@ files:
|
|
245
245
|
- lib/evil_events.rb
|
246
246
|
- lib/evil_events/boot_point.rb
|
247
247
|
- lib/evil_events/config.rb
|
248
|
-
- lib/evil_events/config/adapters.rb
|
249
248
|
- lib/evil_events/core.rb
|
250
249
|
- lib/evil_events/core/activity_logger.rb
|
251
250
|
- lib/evil_events/core/broadcasting.rb
|
@@ -1,29 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
# @api public
|
4
|
-
# @since 0.1.0
|
5
|
-
module EvilEvents::Config::Adapters
|
6
|
-
class << self
|
7
|
-
# @params adapter_name [String, Symbol]
|
8
|
-
# @params adapter_object [Class{EvilEvents::DispatcherMixin}]
|
9
|
-
# @raise Dry::Container::Error
|
10
|
-
# @return void
|
11
|
-
#
|
12
|
-
# @api public
|
13
|
-
# @since 0.1.0
|
14
|
-
def register(adapter_name, adapter_object)
|
15
|
-
EvilEvents::BootPoint[:event_system].register_adapter(adapter_name, adapter_object)
|
16
|
-
end
|
17
|
-
|
18
|
-
# @param adapter_name [String, Symbol]
|
19
|
-
# @return [Class{EvilEvents::DispatcherMixin}]
|
20
|
-
# @raise Dry::Container::Error
|
21
|
-
#
|
22
|
-
# @api public
|
23
|
-
# @since 0.1.0
|
24
|
-
def resolve(adapter_name)
|
25
|
-
EvilEvents::BootPoint[:event_system].resolve_adapter(adapter_name)
|
26
|
-
end
|
27
|
-
alias_method :[], :resolve
|
28
|
-
end
|
29
|
-
end
|