bbk-amqp 1.1.0.200034 → 1.1.0.204568
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +6 -6
- data/lib/bbk/amqp.rb +0 -2
- metadata +4 -6
- data/lib/bbk/amqp/domains/by_block.rb +0 -24
- data/lib/bbk/amqp/domains_set.rb +0 -40
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e236d27254d0ababa574267175434e46e20f3cc177e380596094534ea312632f
|
4
|
+
data.tar.gz: 7b185e0df57c20bf8fa4a098ab67653dc346a2b954059553e4a4d870743cdeb3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9b70ed438d6c16202c6840b53b66836a572f07d02389406e89de210f64c2da1dc49769b5185144e0d2bda23c091f8a4309d3d9d023e5eafb8fbc0768962af585
|
7
|
+
data.tar.gz: 4fa70b9eef6f6310fb76b1e8329dcc9ecdc2bdc530dc375fdeba8311d2e549cc65a68f3d1fff93fb42f4427512544f0ada65831ec9eab4fb40b5e14eb218eb88
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
bbk-amqp (1.1.0.
|
4
|
+
bbk-amqp (1.1.0.204568)
|
5
5
|
activesupport (>= 6.0)
|
6
6
|
bbk-utils (> 1.0.1)
|
7
7
|
bunny (>= 2.19.0)
|
@@ -25,14 +25,14 @@ GEM
|
|
25
25
|
descendants_tracker (~> 0.0.4)
|
26
26
|
ice_nine (~> 0.11.0)
|
27
27
|
thread_safe (~> 0.3, >= 0.3.1)
|
28
|
-
bbk-app (1.
|
28
|
+
bbk-app (1.1.0.200186)
|
29
29
|
activesupport
|
30
30
|
bbk-utils (> 1.0.1)
|
31
31
|
timeouter
|
32
32
|
bbk-utils (1.0.1.72735)
|
33
33
|
activesupport (~> 6.0)
|
34
34
|
russian
|
35
|
-
bigdecimal (3.1.
|
35
|
+
bigdecimal (3.1.5)
|
36
36
|
bunny (2.19.0)
|
37
37
|
amq-protocol (~> 2.3, >= 2.3.1)
|
38
38
|
sorted_set (~> 1, >= 1.0.2)
|
@@ -64,8 +64,8 @@ GEM
|
|
64
64
|
launchy (2.5.0)
|
65
65
|
addressable (~> 2.7)
|
66
66
|
minitest (5.15.0)
|
67
|
-
oj (3.16.
|
68
|
-
bigdecimal (
|
67
|
+
oj (3.16.3)
|
68
|
+
bigdecimal (>= 3.0)
|
69
69
|
parser (3.0.3.2)
|
70
70
|
ast (~> 2.4.1)
|
71
71
|
path_expander (1.1.0)
|
@@ -142,7 +142,7 @@ PLATFORMS
|
|
142
142
|
|
143
143
|
DEPENDENCIES
|
144
144
|
bbk-amqp!
|
145
|
-
bbk-app (>= 1.0.
|
145
|
+
bbk-app (>= 1.1.0.200186)
|
146
146
|
bunny-mock
|
147
147
|
byebug
|
148
148
|
rake
|
data/lib/bbk/amqp.rb
CHANGED
@@ -10,9 +10,7 @@ require 'bbk/amqp/message'
|
|
10
10
|
require 'bbk/amqp/publisher'
|
11
11
|
require 'bbk/amqp/consumer'
|
12
12
|
require 'bbk/amqp/route_info'
|
13
|
-
require 'bbk/amqp/domains_set'
|
14
13
|
require 'bbk/amqp/domains/exchange'
|
15
|
-
require 'bbk/amqp/domains/by_block'
|
16
14
|
require 'bbk/amqp/rejection_policies/reject'
|
17
15
|
require 'bbk/amqp/rejection_policies/requeue'
|
18
16
|
require 'bbk/amqp/rejection_policies/republish'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bbk-amqp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.0.
|
4
|
+
version: 1.1.0.204568
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Samoylenko Yuri
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-01-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -72,14 +72,14 @@ dependencies:
|
|
72
72
|
requirements:
|
73
73
|
- - ">="
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: 1.0.
|
75
|
+
version: 1.1.0.200186
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - ">="
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: 1.0.
|
82
|
+
version: 1.1.0.200186
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: bunny-mock
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
@@ -206,9 +206,7 @@ files:
|
|
206
206
|
- bin/setup
|
207
207
|
- lib/bbk/amqp.rb
|
208
208
|
- lib/bbk/amqp/consumer.rb
|
209
|
-
- lib/bbk/amqp/domains/by_block.rb
|
210
209
|
- lib/bbk/amqp/domains/exchange.rb
|
211
|
-
- lib/bbk/amqp/domains_set.rb
|
212
210
|
- lib/bbk/amqp/message.rb
|
213
211
|
- lib/bbk/amqp/publisher.rb
|
214
212
|
- lib/bbk/amqp/rejection_policies/reject.rb
|
@@ -1,24 +0,0 @@
|
|
1
|
-
module BBK
|
2
|
-
module AMQP
|
3
|
-
module Domains
|
4
|
-
class ByBlock
|
5
|
-
|
6
|
-
attr_reader :name
|
7
|
-
|
8
|
-
def initialize(name, &block)
|
9
|
-
raise ArgumentError.new('no block') unless block_given?
|
10
|
-
|
11
|
-
@name = name
|
12
|
-
@block = block
|
13
|
-
end
|
14
|
-
|
15
|
-
def call(route)
|
16
|
-
@block.call(route)
|
17
|
-
end
|
18
|
-
|
19
|
-
|
20
|
-
end
|
21
|
-
end
|
22
|
-
end
|
23
|
-
end
|
24
|
-
|
data/lib/bbk/amqp/domains_set.rb
DELETED
@@ -1,40 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
module BBK
|
4
|
-
module AMQP
|
5
|
-
# Store for amqp domains. Domain is pair: domain name and exchange name.
|
6
|
-
class DomainsSet
|
7
|
-
|
8
|
-
def initialize(*domains)
|
9
|
-
@domains = domains.map{|d| [d.name.to_s, d] }.to_h
|
10
|
-
end
|
11
|
-
|
12
|
-
# Get exchange name by domain
|
13
|
-
# @param domain_name [String] domain name
|
14
|
-
# @return [String] exchange name configured for passed domain name
|
15
|
-
def [](domain_name)
|
16
|
-
@domains[domain_name]
|
17
|
-
end
|
18
|
-
|
19
|
-
def add(domain)
|
20
|
-
@domains[domain.name.to_s] = domain
|
21
|
-
end
|
22
|
-
|
23
|
-
alias << add
|
24
|
-
|
25
|
-
# Each method implementation for object iteration
|
26
|
-
def each(&block)
|
27
|
-
@domains.values.each(&block)
|
28
|
-
end
|
29
|
-
|
30
|
-
# Check if store has information about domain
|
31
|
-
# @param domain_name [String] domain name
|
32
|
-
# @return [Boolean] has information about domain
|
33
|
-
def has?(domain_name)
|
34
|
-
@domains.key? domain_name
|
35
|
-
end
|
36
|
-
|
37
|
-
end
|
38
|
-
end
|
39
|
-
end
|
40
|
-
|