evil_events 0.3.1 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.gitignore +1 -0
- data/.rubocop.yml +10 -1
- data/.travis.yml +4 -5
- data/CHANGELOG.md +73 -0
- data/evil_events.gemspec +6 -3
- data/lib/evil_events.rb +3 -0
- data/lib/evil_events/core/broadcasting.rb +1 -0
- data/lib/evil_events/core/broadcasting/emitter.rb +19 -13
- data/lib/evil_events/core/broadcasting/emitter/adapter_proxy.rb +46 -0
- data/lib/evil_events/core/config.rb +37 -40
- data/lib/evil_events/core/events.rb +34 -3
- data/lib/evil_events/core/events/abstract_event.rb +4 -6
- data/lib/evil_events/core/events/event_extensions/class_signature.rb +13 -0
- data/lib/evil_events/core/events/event_extensions/class_signature/equalizer.rb +0 -2
- data/lib/evil_events/core/events/event_extensions/dispatchable.rb +74 -0
- data/lib/evil_events/core/events/event_extensions/observable.rb +2 -0
- data/lib/evil_events/core/events/event_extensions/serializable.rb +22 -2
- data/lib/evil_events/core/events/manager.rb +1 -1
- data/lib/evil_events/core/events/manager_registry.rb +16 -0
- data/lib/evil_events/core/events/manager_registry/scoped_event_type_matcher.rb +177 -0
- data/lib/evil_events/core/events/notifier/sequential.rb +2 -2
- data/lib/evil_events/core/events/serializers.rb +13 -2
- data/lib/evil_events/core/events/serializers/base.rb +56 -13
- data/lib/evil_events/core/events/serializers/base/abstract_engine.rb +47 -0
- data/lib/evil_events/core/events/serializers/base/abstract_factory.rb +60 -0
- data/lib/evil_events/core/events/serializers/base/data_transformer.rb +57 -0
- data/lib/evil_events/core/events/serializers/base/event_serialization_state.rb +80 -0
- data/lib/evil_events/core/events/serializers/base/generic_config.rb +7 -0
- data/lib/evil_events/core/events/serializers/hash.rb +3 -73
- data/lib/evil_events/core/events/serializers/hash/config.rb +11 -0
- data/lib/evil_events/core/events/serializers/hash/engines.rb +10 -0
- data/lib/evil_events/core/events/serializers/hash/engines/native.rb +60 -0
- data/lib/evil_events/core/events/serializers/hash/factory.rb +65 -0
- data/lib/evil_events/core/events/serializers/hash/packer.rb +26 -0
- data/lib/evil_events/core/events/serializers/hash/unpacker.rb +24 -0
- data/lib/evil_events/core/events/serializers/json.rb +3 -59
- data/lib/evil_events/core/events/serializers/json/config.rb +11 -0
- data/lib/evil_events/core/events/serializers/json/engines.rb +10 -0
- data/lib/evil_events/core/events/serializers/json/engines/native.rb +43 -0
- data/lib/evil_events/core/events/serializers/json/factory.rb +65 -0
- data/lib/evil_events/core/events/serializers/json/packer.rb +26 -0
- data/lib/evil_events/core/events/serializers/json/unpacker.rb +31 -0
- data/lib/evil_events/core/events/serializers/message_pack.rb +7 -0
- data/lib/evil_events/core/events/serializers/message_pack/config.rb +17 -0
- data/lib/evil_events/core/events/serializers/message_pack/engines.rb +10 -0
- data/lib/evil_events/core/events/serializers/message_pack/engines/mpacker.rb +81 -0
- data/lib/evil_events/core/events/serializers/message_pack/factory.rb +65 -0
- data/lib/evil_events/core/events/serializers/message_pack/packer.rb +26 -0
- data/lib/evil_events/core/events/serializers/message_pack/unpacker.rb +24 -0
- data/lib/evil_events/core/events/serializers/xml.rb +7 -0
- data/lib/evil_events/core/events/serializers/xml/config.rb +11 -0
- data/lib/evil_events/core/events/serializers/xml/engines.rb +10 -0
- data/lib/evil_events/core/events/serializers/xml/engines/ox.rb +31 -0
- data/lib/evil_events/core/events/serializers/xml/factory.rb +65 -0
- data/lib/evil_events/core/events/serializers/xml/packer.rb +26 -0
- data/lib/evil_events/core/events/serializers/xml/unpacker.rb +24 -0
- data/lib/evil_events/core/events/subscriber/mixin.rb +26 -3
- data/lib/evil_events/core/system.rb +28 -2
- data/lib/evil_events/core/system/broadcaster.rb +11 -5
- data/lib/evil_events/core/system/event_builder.rb +98 -34
- data/lib/evil_events/core/system/event_manager.rb +12 -0
- data/lib/evil_events/core/system/mock.rb +30 -2
- data/lib/evil_events/emitter.rb +4 -2
- data/lib/evil_events/error.rb +21 -1
- data/lib/evil_events/serializer.rb +14 -0
- data/lib/evil_events/shared.rb +1 -3
- data/lib/evil_events/shared/any_config.rb +60 -0
- data/lib/evil_events/version.rb +2 -2
- metadata +85 -14
- data/.jrubyrc +0 -1
- data/lib/evil_events/core/events/event_extensions/adapter_customizable.rb +0 -49
- data/lib/evil_events/core/events/event_extensions/emittable.rb +0 -41
- data/lib/evil_events/shared/combined_context.rb +0 -124
- data/lib/evil_events/shared/combined_context/mixin.rb +0 -43
- data/lib/evil_events/shared/configurable.rb +0 -7
@@ -35,6 +35,18 @@ class EvilEvents::Core::System
|
|
35
35
|
.observe(raw_subscriber, delegator)
|
36
36
|
end
|
37
37
|
|
38
|
+
# @param scoped_event_type [String]
|
39
|
+
# @param raw_subscriber [Mixed]
|
40
|
+
# @param delegator [String, Symbol, NilClass]
|
41
|
+
# @return void
|
42
|
+
#
|
43
|
+
# @api private
|
44
|
+
# @since 0.4.0
|
45
|
+
def scoped_observe(scoped_event_type, raw_subscriber, delegator)
|
46
|
+
manager_registry.managers_of_scoped_event_type(scoped_event_type)
|
47
|
+
.each { |manager| manager.observe(raw_subscriber, delegator) }
|
48
|
+
end
|
49
|
+
|
38
50
|
# @param event_pattern [Regexp]
|
39
51
|
# @param raw_subscriber [Mixed]
|
40
52
|
# @param delegator [String, Symbol, NilClass]
|
@@ -31,17 +31,21 @@ class EvilEvents::Core::System
|
|
31
31
|
# @since 0.2.0
|
32
32
|
def conditional_observe(event_condition, raw_subscriber, delegator); end
|
33
33
|
|
34
|
+
# @see EvilEvents::Core::System
|
35
|
+
# @since 0.4.0
|
36
|
+
def scoped_observe(scoped_event_type, raw_subscriber, delegator); end
|
37
|
+
|
34
38
|
# @see EvilEvents::Core::System
|
35
39
|
# @since 0.1.0
|
36
40
|
def observers(event_class); end
|
37
41
|
|
38
42
|
# @see EvilEvents::Core::System
|
39
43
|
# @since 0.1.0
|
40
|
-
def emit(event); end
|
44
|
+
def emit(event, adapter: nil); end
|
41
45
|
|
42
46
|
# @see EvilEvents::Core::System
|
43
47
|
# @since 0.1.0
|
44
|
-
def raw_emit(event_type,
|
48
|
+
def raw_emit(event_type, id: nil, payload: {}, metadata: {}, adapter: nil); end
|
45
49
|
|
46
50
|
# @see EvilEvents::Core::System
|
47
51
|
# @since 0.1.0
|
@@ -83,6 +87,22 @@ class EvilEvents::Core::System
|
|
83
87
|
# @since 0.1.0
|
84
88
|
def define_abstract_event_class(event_type); end
|
85
89
|
|
90
|
+
# @see EvilEvents::Core::System
|
91
|
+
# @since 0.4.0
|
92
|
+
def serialize_to_json(event); end
|
93
|
+
|
94
|
+
# @see EvilEvents::Core::System
|
95
|
+
# @since 0.4.0
|
96
|
+
def serialize_to_hash(event); end
|
97
|
+
|
98
|
+
# @see EvilEvents::Core::System
|
99
|
+
# @since 0.4.0
|
100
|
+
def serialize_to_xml(event); end
|
101
|
+
|
102
|
+
# @see EvilEvents::Core::System
|
103
|
+
# @since 0.4.0
|
104
|
+
def serialize_to_msgpack(event); end
|
105
|
+
|
86
106
|
# @see EvilEvents::Core::System
|
87
107
|
# @since 0.1.0
|
88
108
|
def deserialize_from_json(serialized_event); end
|
@@ -91,6 +111,14 @@ class EvilEvents::Core::System
|
|
91
111
|
# @since 0.1.0
|
92
112
|
def deserialize_from_hash(serialized_event); end
|
93
113
|
|
114
|
+
# @see EvilEvents::Core::System
|
115
|
+
# @since 0.4.0
|
116
|
+
def deserialize_from_xml(serialized_event); end
|
117
|
+
|
118
|
+
# @see EvilEvents::Core::System
|
119
|
+
# @since 0.4.0
|
120
|
+
def deserialize_from_msgpack(serialized_event); end
|
121
|
+
|
94
122
|
# @see EvilEvents::Core::System
|
95
123
|
# @since 0.1.0
|
96
124
|
def managed_event?(event_class); end
|
data/lib/evil_events/emitter.rb
CHANGED
@@ -8,8 +8,10 @@ module EvilEvents
|
|
8
8
|
# @see EvilEvents::Core::System
|
9
9
|
# @api public
|
10
10
|
# @since 0.1.0
|
11
|
-
def emit(event_type,
|
12
|
-
EvilEvents::Core::Bootstrap[:event_system].raw_emit(
|
11
|
+
def emit(event_type, id: nil, payload: {}, metadata: {}, adapter: nil)
|
12
|
+
EvilEvents::Core::Bootstrap[:event_system].raw_emit(
|
13
|
+
event_type, id: id, payload: payload, metadata: metadata, adapter: adapter
|
14
|
+
)
|
13
15
|
end
|
14
16
|
end
|
15
17
|
end
|
data/lib/evil_events/error.rb
CHANGED
@@ -57,14 +57,34 @@ module EvilEvents
|
|
57
57
|
SerializersError = Class.new(Error)
|
58
58
|
# @since 0.3.0
|
59
59
|
SerializationError = Class.new(SerializersError)
|
60
|
+
# @since 0.4.0
|
61
|
+
JSONSerializationError = Class.new(SerializationError)
|
62
|
+
# @since 0.4.0
|
63
|
+
XMLSerializationError = Class.new(SerializationError)
|
64
|
+
# @since 0.4.0
|
65
|
+
HashSerializationError = Class.new(SerializationError)
|
66
|
+
# @since 0.4.0
|
67
|
+
MessagePackSerializationError = Class.new(SerializationError)
|
60
68
|
# @since 0.3.0
|
61
69
|
DeserializationError = Class.new(SerializersError)
|
70
|
+
# @since 0.4.0
|
71
|
+
JSONDeserializationError = Class.new(DeserializationError)
|
72
|
+
# @since 0.4.0
|
73
|
+
XMLDeserializationError = Class.new(DeserializationError)
|
74
|
+
# @since 0.4.0
|
75
|
+
HashDeserializationError = Class.new(DeserializationError)
|
76
|
+
# @since 0.4.0
|
77
|
+
MessagePackDeserializationError = Class.new(DeserializationError)
|
78
|
+
# @since 0.4.0
|
79
|
+
SerializationEngineError = Class.new(SerializersError)
|
80
|
+
# @since 0.4.0
|
81
|
+
UnrecognizedSerializationEngineError = Class.new(SerializationEngineError)
|
62
82
|
|
63
83
|
# NOTE: see EvilEvents::Core::Events::Notifier
|
64
84
|
# @since 0.3.0
|
65
85
|
NotifierError = Class.new(Error)
|
66
86
|
# @since 0.3.0
|
67
|
-
class
|
87
|
+
class FailingSubscribersError < NotifierError
|
68
88
|
# @since 0.3.0
|
69
89
|
extend Forwardable
|
70
90
|
|
@@ -18,6 +18,20 @@ module EvilEvents
|
|
18
18
|
def load_from_hash(serialized_event)
|
19
19
|
EvilEvents::Core::Bootstrap[:event_system].deserialize_from_hash(serialized_event)
|
20
20
|
end
|
21
|
+
|
22
|
+
# @see EvilEvents::Core::System
|
23
|
+
# @api public
|
24
|
+
# @since 0.4.0
|
25
|
+
def load_from_xml(serialized_event)
|
26
|
+
EvilEvents::Core::Bootstrap[:event_system].deserialize_from_xml(serialized_event)
|
27
|
+
end
|
28
|
+
|
29
|
+
# @see EvilEvents::Core::System
|
30
|
+
# @api public
|
31
|
+
# @since 0.4.0
|
32
|
+
def load_from_msgpack(serialized_event)
|
33
|
+
EvilEvents::Core::Bootstrap[:event_system].deserialize_from_msgpack(serialized_event)
|
34
|
+
end
|
21
35
|
end
|
22
36
|
end
|
23
37
|
end
|
data/lib/evil_events/shared.rb
CHANGED
@@ -8,9 +8,6 @@ module EvilEvents
|
|
8
8
|
require_relative 'shared/logger'
|
9
9
|
require_relative 'shared/crypto'
|
10
10
|
require_relative 'shared/structure'
|
11
|
-
require_relative 'shared/configurable'
|
12
|
-
require_relative 'shared/combined_context'
|
13
|
-
require_relative 'shared/combined_context/mixin'
|
14
11
|
require_relative 'shared/delegator_resolver'
|
15
12
|
require_relative 'shared/dependency_container'
|
16
13
|
require_relative 'shared/extensions_mixin'
|
@@ -19,5 +16,6 @@ module EvilEvents
|
|
19
16
|
require_relative 'shared/type_converter/converter'
|
20
17
|
require_relative 'shared/type_converter/type_builder'
|
21
18
|
require_relative 'shared/type_converter/converter_registry'
|
19
|
+
require_relative 'shared/any_config'
|
22
20
|
end
|
23
21
|
end
|
@@ -0,0 +1,60 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# @api public
|
4
|
+
# @since 0.4.0
|
5
|
+
class EvilEvents::Shared::AnyConfig
|
6
|
+
class << self
|
7
|
+
# @param configuration [Proc]
|
8
|
+
# @return [Proc]
|
9
|
+
#
|
10
|
+
# @api public
|
11
|
+
# @since 0.4.0
|
12
|
+
def configure(&configuration)
|
13
|
+
case
|
14
|
+
when !block_given? && !instance_variable_defined?(:@setup)
|
15
|
+
@setup = proc {}
|
16
|
+
when block_given?
|
17
|
+
@setup = configuration
|
18
|
+
else
|
19
|
+
@setup
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
|
24
|
+
# @api public
|
25
|
+
# @since 0.4.0
|
26
|
+
def initialize
|
27
|
+
setup = self.class.configure
|
28
|
+
|
29
|
+
@config = Module.new do
|
30
|
+
extend Dry::Configurable
|
31
|
+
instance_eval(&setup)
|
32
|
+
end
|
33
|
+
|
34
|
+
@config.configure { |conf| yield(conf) if block_given? }
|
35
|
+
end
|
36
|
+
|
37
|
+
# @return [Hash]
|
38
|
+
#
|
39
|
+
# @api public
|
40
|
+
# @since 0.4.0
|
41
|
+
def to_h
|
42
|
+
@config.config.to_h
|
43
|
+
end
|
44
|
+
alias_method :to_hash, :to_h
|
45
|
+
|
46
|
+
# @api private
|
47
|
+
# @since 0.4.0
|
48
|
+
def method_missing(method_name, *attributes, &block)
|
49
|
+
return super unless @config.respond_to?(method_name)
|
50
|
+
@config.public_send(method_name, *attributes, &block)
|
51
|
+
end
|
52
|
+
|
53
|
+
# :nocov:
|
54
|
+
# @api private
|
55
|
+
# @since 0.4.0
|
56
|
+
def respond_to_missing?(method_name, include_private = false)
|
57
|
+
@config.respond_to?(method_name, include_private) || super
|
58
|
+
end
|
59
|
+
# :nocov:
|
60
|
+
end
|
data/lib/evil_events/version.rb
CHANGED
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.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rustam Ibragimov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-05-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dry-monads
|
@@ -94,6 +94,48 @@ dependencies:
|
|
94
94
|
- - "~>"
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: 1.0.5
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: symbiont-ruby
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - "~>"
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: 0.2.0
|
104
|
+
type: :runtime
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - "~>"
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: 0.2.0
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: ox
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - "~>"
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: 2.9.2
|
118
|
+
type: :runtime
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - "~>"
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: 2.9.2
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: msgpack
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - "~>"
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: 1.2.4
|
132
|
+
type: :runtime
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - "~>"
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: 1.2.4
|
97
139
|
- !ruby/object:Gem::Dependency
|
98
140
|
name: coveralls
|
99
141
|
requirement: !ruby/object:Gem::Requirement
|
@@ -142,14 +184,14 @@ dependencies:
|
|
142
184
|
requirements:
|
143
185
|
- - "~>"
|
144
186
|
- !ruby/object:Gem::Version
|
145
|
-
version: 0.
|
187
|
+
version: 0.55.0
|
146
188
|
type: :development
|
147
189
|
prerelease: false
|
148
190
|
version_requirements: !ruby/object:Gem::Requirement
|
149
191
|
requirements:
|
150
192
|
- - "~>"
|
151
193
|
- !ruby/object:Gem::Version
|
152
|
-
version: 0.
|
194
|
+
version: 0.55.0
|
153
195
|
- !ruby/object:Gem::Dependency
|
154
196
|
name: rspec
|
155
197
|
requirement: !ruby/object:Gem::Requirement
|
@@ -170,14 +212,14 @@ dependencies:
|
|
170
212
|
requirements:
|
171
213
|
- - "~>"
|
172
214
|
- !ruby/object:Gem::Version
|
173
|
-
version: 1.
|
215
|
+
version: 1.25.1
|
174
216
|
type: :development
|
175
217
|
prerelease: false
|
176
218
|
version_requirements: !ruby/object:Gem::Requirement
|
177
219
|
requirements:
|
178
220
|
- - "~>"
|
179
221
|
- !ruby/object:Gem::Version
|
180
|
-
version: 1.
|
222
|
+
version: 1.25.1
|
181
223
|
- !ruby/object:Gem::Dependency
|
182
224
|
name: pry
|
183
225
|
requirement: !ruby/object:Gem::Requirement
|
@@ -230,7 +272,6 @@ extra_rdoc_files: []
|
|
230
272
|
files:
|
231
273
|
- ".gitignore"
|
232
274
|
- ".hound.yml"
|
233
|
-
- ".jrubyrc"
|
234
275
|
- ".rspec"
|
235
276
|
- ".rubocop.yml"
|
236
277
|
- ".travis.yml"
|
@@ -258,14 +299,14 @@ files:
|
|
258
299
|
- lib/evil_events/core/broadcasting/dispatcher.rb
|
259
300
|
- lib/evil_events/core/broadcasting/dispatcher/mixin.rb
|
260
301
|
- lib/evil_events/core/broadcasting/emitter.rb
|
302
|
+
- lib/evil_events/core/broadcasting/emitter/adapter_proxy.rb
|
261
303
|
- lib/evil_events/core/config.rb
|
262
304
|
- lib/evil_events/core/events.rb
|
263
305
|
- lib/evil_events/core/events/abstract_event.rb
|
264
|
-
- lib/evil_events/core/events/event_extensions/adapter_customizable.rb
|
265
306
|
- lib/evil_events/core/events/event_extensions/class_signature.rb
|
266
307
|
- lib/evil_events/core/events/event_extensions/class_signature/equalizer.rb
|
267
308
|
- lib/evil_events/core/events/event_extensions/class_signature/signature.rb
|
268
|
-
- lib/evil_events/core/events/event_extensions/
|
309
|
+
- lib/evil_events/core/events/event_extensions/dispatchable.rb
|
269
310
|
- lib/evil_events/core/events/event_extensions/hookable.rb
|
270
311
|
- lib/evil_events/core/events/event_extensions/hookable/abstract_hook.rb
|
271
312
|
- lib/evil_events/core/events/event_extensions/hookable/after_emit_hook.rb
|
@@ -284,6 +325,7 @@ files:
|
|
284
325
|
- lib/evil_events/core/events/manager/subscriber_list.rb
|
285
326
|
- lib/evil_events/core/events/manager_factory.rb
|
286
327
|
- lib/evil_events/core/events/manager_registry.rb
|
328
|
+
- lib/evil_events/core/events/manager_registry/scoped_event_type_matcher.rb
|
287
329
|
- lib/evil_events/core/events/notifier.rb
|
288
330
|
- lib/evil_events/core/events/notifier/abstract.rb
|
289
331
|
- lib/evil_events/core/events/notifier/builder.rb
|
@@ -295,8 +337,39 @@ files:
|
|
295
337
|
- lib/evil_events/core/events/notifier/worker/job.rb
|
296
338
|
- lib/evil_events/core/events/serializers.rb
|
297
339
|
- lib/evil_events/core/events/serializers/base.rb
|
340
|
+
- lib/evil_events/core/events/serializers/base/abstract_engine.rb
|
341
|
+
- lib/evil_events/core/events/serializers/base/abstract_factory.rb
|
342
|
+
- lib/evil_events/core/events/serializers/base/data_transformer.rb
|
343
|
+
- lib/evil_events/core/events/serializers/base/event_serialization_state.rb
|
344
|
+
- lib/evil_events/core/events/serializers/base/generic_config.rb
|
298
345
|
- lib/evil_events/core/events/serializers/hash.rb
|
346
|
+
- lib/evil_events/core/events/serializers/hash/config.rb
|
347
|
+
- lib/evil_events/core/events/serializers/hash/engines.rb
|
348
|
+
- lib/evil_events/core/events/serializers/hash/engines/native.rb
|
349
|
+
- lib/evil_events/core/events/serializers/hash/factory.rb
|
350
|
+
- lib/evil_events/core/events/serializers/hash/packer.rb
|
351
|
+
- lib/evil_events/core/events/serializers/hash/unpacker.rb
|
299
352
|
- lib/evil_events/core/events/serializers/json.rb
|
353
|
+
- lib/evil_events/core/events/serializers/json/config.rb
|
354
|
+
- lib/evil_events/core/events/serializers/json/engines.rb
|
355
|
+
- lib/evil_events/core/events/serializers/json/engines/native.rb
|
356
|
+
- lib/evil_events/core/events/serializers/json/factory.rb
|
357
|
+
- lib/evil_events/core/events/serializers/json/packer.rb
|
358
|
+
- lib/evil_events/core/events/serializers/json/unpacker.rb
|
359
|
+
- lib/evil_events/core/events/serializers/message_pack.rb
|
360
|
+
- lib/evil_events/core/events/serializers/message_pack/config.rb
|
361
|
+
- lib/evil_events/core/events/serializers/message_pack/engines.rb
|
362
|
+
- lib/evil_events/core/events/serializers/message_pack/engines/mpacker.rb
|
363
|
+
- lib/evil_events/core/events/serializers/message_pack/factory.rb
|
364
|
+
- lib/evil_events/core/events/serializers/message_pack/packer.rb
|
365
|
+
- lib/evil_events/core/events/serializers/message_pack/unpacker.rb
|
366
|
+
- lib/evil_events/core/events/serializers/xml.rb
|
367
|
+
- lib/evil_events/core/events/serializers/xml/config.rb
|
368
|
+
- lib/evil_events/core/events/serializers/xml/engines.rb
|
369
|
+
- lib/evil_events/core/events/serializers/xml/engines/ox.rb
|
370
|
+
- lib/evil_events/core/events/serializers/xml/factory.rb
|
371
|
+
- lib/evil_events/core/events/serializers/xml/packer.rb
|
372
|
+
- lib/evil_events/core/events/serializers/xml/unpacker.rb
|
300
373
|
- lib/evil_events/core/events/subscriber.rb
|
301
374
|
- lib/evil_events/core/events/subscriber/mixin.rb
|
302
375
|
- lib/evil_events/core/system.rb
|
@@ -315,10 +388,8 @@ files:
|
|
315
388
|
- lib/evil_events/plugins/sidekiq_adapter.rb
|
316
389
|
- lib/evil_events/serializer.rb
|
317
390
|
- lib/evil_events/shared.rb
|
391
|
+
- lib/evil_events/shared/any_config.rb
|
318
392
|
- lib/evil_events/shared/clonable_module_builder.rb
|
319
|
-
- lib/evil_events/shared/combined_context.rb
|
320
|
-
- lib/evil_events/shared/combined_context/mixin.rb
|
321
|
-
- lib/evil_events/shared/configurable.rb
|
322
393
|
- lib/evil_events/shared/crypto.rb
|
323
394
|
- lib/evil_events/shared/delegator_resolver.rb
|
324
395
|
- lib/evil_events/shared/dependency_container.rb
|
@@ -345,7 +416,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
345
416
|
requirements:
|
346
417
|
- - ">="
|
347
418
|
- !ruby/object:Gem::Version
|
348
|
-
version: 2.2.
|
419
|
+
version: 2.2.10
|
349
420
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
350
421
|
requirements:
|
351
422
|
- - ">="
|
@@ -353,7 +424,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
353
424
|
version: '0'
|
354
425
|
requirements: []
|
355
426
|
rubyforge_project:
|
356
|
-
rubygems_version: 2.6
|
427
|
+
rubygems_version: 2.7.6
|
357
428
|
signing_key:
|
358
429
|
specification_version: 4
|
359
430
|
summary: Event subsystem for ruby applications
|
data/.jrubyrc
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
debug.fullTrace=true
|
@@ -1,49 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
module EvilEvents::Core::Events::EventExtensions
|
4
|
-
# @api private
|
5
|
-
# @since 0.1.0
|
6
|
-
module AdapterCustomizable
|
7
|
-
class << self
|
8
|
-
# @param base_class [Class]
|
9
|
-
#
|
10
|
-
# @since 0.1.0
|
11
|
-
def included(base_class)
|
12
|
-
base_class.extend(ClassMethods)
|
13
|
-
end
|
14
|
-
end
|
15
|
-
|
16
|
-
# @return [EvilEvents::Core::Broadcasting::Dispatcher::Dispatchable]
|
17
|
-
#
|
18
|
-
# @since 0.1.0
|
19
|
-
def adapter
|
20
|
-
self.class.adapter
|
21
|
-
end
|
22
|
-
|
23
|
-
# @return [EvilEvents::Core::Broadcasting::Dispatcher::Dispatchable]
|
24
|
-
#
|
25
|
-
# @since 0.1.0
|
26
|
-
def adapter_name
|
27
|
-
self.class.adapter_name
|
28
|
-
end
|
29
|
-
|
30
|
-
# @since 0.1.0
|
31
|
-
module ClassMethods
|
32
|
-
# @param identifier [Symbol, String]
|
33
|
-
# @return [EvilEvents::Core::Broadcasting::Dispatcher::Dispatchable]
|
34
|
-
#
|
35
|
-
# @since 0.1.0
|
36
|
-
def adapter(identifier = nil)
|
37
|
-
@adapter_identifier = identifier if identifier
|
38
|
-
EvilEvents::Core::Bootstrap[:event_system].resolve_adapter(adapter_name)
|
39
|
-
end
|
40
|
-
|
41
|
-
# @return [Symbol, String]
|
42
|
-
#
|
43
|
-
# @since 0.1.0
|
44
|
-
def adapter_name
|
45
|
-
@adapter_identifier || EvilEvents::Core::Bootstrap[:config].adapter.default
|
46
|
-
end
|
47
|
-
end
|
48
|
-
end
|
49
|
-
end
|