bbk-amqp 1.1.0.200017 → 1.1.0.200187

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
  SHA256:
3
- metadata.gz: 01cc3ede50fc63c7a84bfdc36f033b1c7b56b2e88912a83017ffc350714d2e20
4
- data.tar.gz: 993b58bdc371c9b7c355457c0a0f74dbbb5f2218bae171ab484d9504b54cc32d
3
+ metadata.gz: fe538cbb56ffcc4371e9bfa30aaa7f6acb5117f3acb118c765dc15ffc89be443
4
+ data.tar.gz: 58c021b8344bde8ac7a0c2a91d235b9cf5ea4741fa7b8c095493d63b2766a949
5
5
  SHA512:
6
- metadata.gz: 442a6c7095a474a66143e692814cf87e40dd69e9d1278fe6095886cc538c8aadaf2956774fc3d96a0708c6500b3145725136ea1b71b4a9052c87ccd4ee3c6e88
7
- data.tar.gz: 15f868d45273b8d78ec56131b3f565dd6b95f6e3f6a68adbc47a0235b70f5197e2e5bf73a1616ff3bdfe0f7195fa015df74ee79a323bfacb7b9ca27f6b6afc56
6
+ metadata.gz: aa883156109d952831f0db785e25c9f8cfd3a7a2f9ff5f1f0a22602862bef480fe08603e9366ffa412d06423a712c0275c38e64205273848e813f5ebf656fa89
7
+ data.tar.gz: a60d589c0709920d65ad2b2871e0e248be6e320ea5aa6b02e53cdd7433b195fd80f5b0bd3412913f489a8028a37860be1ab474ff02f7704b04e15c09eafa1753
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- bbk-amqp (1.1.0.200017)
4
+ bbk-amqp (1.1.0.200187)
5
5
  activesupport (>= 6.0)
6
6
  bbk-utils (> 1.0.1)
7
7
  bunny (>= 2.19.0)
@@ -25,7 +25,7 @@ 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.0.0.72899)
28
+ bbk-app (1.1.0.200186)
29
29
  activesupport
30
30
  bbk-utils (> 1.0.1)
31
31
  timeouter
@@ -142,7 +142,7 @@ PLATFORMS
142
142
 
143
143
  DEPENDENCIES
144
144
  bbk-amqp!
145
- bbk-app (>= 1.0.0)
145
+ bbk-app (>= 1.1.0.200186)
146
146
  bunny-mock
147
147
  byebug
148
148
  rake
data/README.md CHANGED
@@ -39,4 +39,4 @@ See the file [CONTRIBUTING.md](./CONTRIBUTING.md)
39
39
 
40
40
  ## License
41
41
 
42
- See the file [LICENSE](./LICENSE)
42
+ See the file [LICENSE](./LICENSE)
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.200017
4
+ version: 1.1.0.200187
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samoylenko Yuri
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-12-08 00:00:00.000000000 Z
11
+ date: 2023-12-11 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.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.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
-
@@ -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
-