mimi-messaging 1.2.2 → 1.2.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/mimi/messaging.rb +9 -6
- data/lib/mimi/messaging/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b8baee68b3135998131486589ca0fc56b3454c5e
|
4
|
+
data.tar.gz: 469dc284417b30a83c13a84b7035076cefc8dc64
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cfab8d964275ca42ce5334212e95bde2808bc0874390bea45602f906c4cf5c7e05cc60d25d3a198a6ee7c6b1935fbfd7416480429cedce5104a8ad8f26f7a5de
|
7
|
+
data.tar.gz: 66d91dcf023f0255384bee9805f0228a445f48109ba751b57d16d38a8798535cfe01dee459a40be41af6c3d6f1711a87c8c4894bc4fca2c007c037f6be28aa0f
|
data/lib/mimi/messaging.rb
CHANGED
@@ -15,22 +15,24 @@ module Mimi
|
|
15
15
|
#
|
16
16
|
module Messaging
|
17
17
|
# Request target validation pattern:
|
18
|
-
# "[<name>.][...]<name>/<
|
19
|
-
# Where <name> consists of
|
18
|
+
# "[<name>.][...]<name>/<identifier>"
|
19
|
+
# Where <name> consists of characters: A-Za-z0-9_-
|
20
|
+
# and <method_name> can be any of: A-Za-z0-9_
|
20
21
|
#
|
21
22
|
# Example:
|
22
23
|
# "shop.orders/list"
|
23
24
|
#
|
24
|
-
REQUEST_TARGET_REGEX = %r{^(
|
25
|
+
REQUEST_TARGET_REGEX = %r{^([\w\-]+\.)*([\w\-]+)\/(\w+)$}.freeze
|
25
26
|
|
26
27
|
# Event target validation pattern:
|
27
|
-
# "[<name>.][...]<name>#<
|
28
|
-
# Where <name> consists of
|
28
|
+
# "[<name>.][...]<name>#<identifier>"
|
29
|
+
# Where <name> consists of characters: A-Za-z0-9_-
|
30
|
+
# and <method_name> can be any of: A-Za-z0-9_
|
29
31
|
#
|
30
32
|
# Example:
|
31
33
|
# "shop.orders#created"
|
32
34
|
#
|
33
|
-
EVENT_TARGET_REGEX = %r{^(
|
35
|
+
EVENT_TARGET_REGEX = %r{^([\w\-]+\.)*([\w\-]+)\#(\w+)$}.freeze
|
34
36
|
|
35
37
|
# By default Mimi::Messaging logs at given level
|
36
38
|
DEFAULT_LOG_AT_LEVEL = :info
|
@@ -462,6 +464,7 @@ module Mimi
|
|
462
464
|
def self.stop_all_processors
|
463
465
|
log "#{self} stopping all message processors"
|
464
466
|
adapter.stop_all_processors
|
467
|
+
message_processors.each { |p| p[:started] = false }
|
465
468
|
end
|
466
469
|
private_class_method :stop_all_processors
|
467
470
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mimi-messaging
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alex Kukushkin
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-10-
|
11
|
+
date: 2019-10-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: mimi-core
|