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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e0b464776f714d968a8d9ab990cde1e440358604
4
- data.tar.gz: 72d61df40a62d4808d56c3218018df171d2c288d
3
+ metadata.gz: b8baee68b3135998131486589ca0fc56b3454c5e
4
+ data.tar.gz: 469dc284417b30a83c13a84b7035076cefc8dc64
5
5
  SHA512:
6
- metadata.gz: fb34142287f5cc906ce350b756999aa58dcf014cdf391db5c07c5f859e58efff3234425e2754562aa290b349781938b1ad04bdc289ba0d15394d5a1ba6a19431
7
- data.tar.gz: 30da26107b66c684f5a7666d2978483b82604b900ed29613ab13cabc529596536200a85444a842e7e2bb2d949afeda65679f862873e5ea6385403d1e1e78a600
6
+ metadata.gz: cfab8d964275ca42ce5334212e95bde2808bc0874390bea45602f906c4cf5c7e05cc60d25d3a198a6ee7c6b1935fbfd7416480429cedce5104a8ad8f26f7a5de
7
+ data.tar.gz: 66d91dcf023f0255384bee9805f0228a445f48109ba751b57d16d38a8798535cfe01dee459a40be41af6c3d6f1711a87c8c4894bc4fca2c007c037f6be28aa0f
@@ -15,22 +15,24 @@ module Mimi
15
15
  #
16
16
  module Messaging
17
17
  # Request target validation pattern:
18
- # "[<name>.][...]<name>/<name>"
19
- # Where <name> consists of valid identifier characters: A-Za-z0-9_
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{^((\w+)\.)*(\w+)\/(\w+)$}.freeze
25
+ REQUEST_TARGET_REGEX = %r{^([\w\-]+\.)*([\w\-]+)\/(\w+)$}.freeze
25
26
 
26
27
  # Event target validation pattern:
27
- # "[<name>.][...]<name>#<name>"
28
- # Where <name> consists of valid identifier characters: A-Za-z0-9_
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{^((\w+)\.)*(\w+)\#(\w+)$}.freeze
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
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Mimi
4
4
  module Messaging
5
- VERSION = "1.2.2"
5
+ VERSION = "1.2.4"
6
6
  end
7
7
  end
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.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-09 00:00:00.000000000 Z
11
+ date: 2019-10-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mimi-core