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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b17a12dbdfb330cac2d2475383de67bebdd1498c
4
- data.tar.gz: 31d26f7afa8379bcf29a4324327b9ecf9aaa43dd
3
+ metadata.gz: cf1e64c53bc5c1613fb5ffdaf34e4295f8f5b939
4
+ data.tar.gz: ccf595e35d013c7cf818efbf2cfaee9d3ad9b164
5
5
  SHA512:
6
- metadata.gz: 8e85ac645e23dfae0e21b8809b2eaeb642a836fd04128e0ce1c65be0c829b9dc4c171cc8cb5ffd33daa9e6c94b642214b2198495ad30264b4eab81d3ceb11433
7
- data.tar.gz: 32a1931f5822e360902e59167319e75e16e1edd403e93b87e8b68ee9bfabe79ef37a1f05a54db1afb12518945e5adc2243ff41d895bb9a20b5645b0a221e794d
6
+ metadata.gz: 12fbb4762dc0eb9369c5f2c1d3adadc061ce2874db08c73b1c516ec0832fc76d396f6e107d77e762b16ad51815b7628eb83db3acf1f8b8a19209b83bfcef05ab
7
+ data.tar.gz: 53dcc4384319e73053a32a9e294d72f61dd34065b62ad1d75a23536a6f85f9dea56a6e710d76eed059f231fb8529277c8e86787a6b338ec32fa51420fe649a14
@@ -51,6 +51,4 @@ module EvilEvents
51
51
  config.respond_to_missing?(method_name, include_private) || super
52
52
  end
53
53
  end
54
-
55
- require_relative 'config/adapters'
56
54
  end
@@ -2,6 +2,8 @@
2
2
 
3
3
  module EvilEvents
4
4
  module Shared
5
+ # TODO: переместить это в неймспейс CombinedContext чтобы было CombinedContext::Mixin
6
+
5
7
  # @example
6
8
  # require 'securerandom'
7
9
  #
@@ -3,5 +3,5 @@
3
3
  module EvilEvents
4
4
  # @api public
5
5
  # @since 0.1.0
6
- VERSION = '0.1.0rc6'
6
+ VERSION = '0.1.0rc7'
7
7
  end
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
- EvilEvents::BootPoint[:config].configure do |config|
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.0rc6
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-23 00:00:00.000000000 Z
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