eventboss 1.2.1 → 1.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +3 -3
- data/lib/eventboss/listener.rb +5 -1
- data/lib/eventboss/queue_listener.rb +3 -3
- data/lib/eventboss/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fccbc3a0a575f8ab4e1879ffb3d716c8764b37e1ecabe9e836fdbc0076b9da57
|
4
|
+
data.tar.gz: b7380a7933b1f4c38b8dee561e021494fc2fdd5f2310c4388842a6a23511b6e8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d8afeb52c5ddb0f9ded6fa66b8ec12647e7f136214f87872446e573bb3d62fc99ce6c70319b8ebdd0e9554453ac49996ac71737df2f0b4bfb1843a45f8e23d22
|
7
|
+
data.tar.gz: e53dcbf961e977fe790f493d06ecc1e0e47f26e45bf0b197888eea9326b8e41ebc1ec711135c019aad4549f560167d40e56f77f349d8856ae0a28f6868d1bcac
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
eventboss (1.
|
4
|
+
eventboss (1.3.0)
|
5
5
|
aws-sdk-sns (>= 1.1.0)
|
6
6
|
aws-sdk-sqs (>= 1.3.0)
|
7
7
|
dotenv (~> 2.1, >= 2.1.1)
|
@@ -10,8 +10,8 @@ GEM
|
|
10
10
|
remote: https://rubygems.org/
|
11
11
|
specs:
|
12
12
|
aws-eventstream (1.0.3)
|
13
|
-
aws-partitions (1.
|
14
|
-
aws-sdk-core (3.72.
|
13
|
+
aws-partitions (1.232.0)
|
14
|
+
aws-sdk-core (3.72.1)
|
15
15
|
aws-eventstream (~> 1.0, >= 1.0.2)
|
16
16
|
aws-partitions (~> 1, >= 1.228.0)
|
17
17
|
aws-sigv4 (~> 1.1)
|
data/lib/eventboss/listener.rb
CHANGED
@@ -20,8 +20,12 @@ module Eventboss
|
|
20
20
|
def eventboss_options(opts)
|
21
21
|
source_app = opts[:source_app] ? "#{opts[:source_app]}-" : ""
|
22
22
|
event_name = opts[:event_name]
|
23
|
+
destination_app = opts[:destination_app]
|
23
24
|
|
24
|
-
ACTIVE_LISTENERS["#{source_app}#{event_name}"] =
|
25
|
+
ACTIVE_LISTENERS["#{source_app}#{event_name}"] = {
|
26
|
+
listener: self,
|
27
|
+
destination_app: destination_app
|
28
|
+
}
|
25
29
|
end
|
26
30
|
end
|
27
31
|
end
|
@@ -13,17 +13,17 @@ module Eventboss
|
|
13
13
|
private
|
14
14
|
|
15
15
|
def list
|
16
|
-
Hash[Eventboss::Listener::ACTIVE_LISTENERS.map do |src_app_event,
|
16
|
+
Hash[Eventboss::Listener::ACTIVE_LISTENERS.map do |src_app_event, opts|
|
17
17
|
[
|
18
18
|
Eventboss::Queue.new(
|
19
19
|
[
|
20
|
-
Eventboss.configuration.eventboss_app_name,
|
20
|
+
opts[:destination_app] || Eventboss.configuration.eventboss_app_name,
|
21
21
|
Eventboss.configuration.sns_sqs_name_infix,
|
22
22
|
src_app_event,
|
23
23
|
Eventboss.env
|
24
24
|
].join('-')
|
25
25
|
),
|
26
|
-
listener
|
26
|
+
opts[:listener]
|
27
27
|
]
|
28
28
|
end]
|
29
29
|
end
|
data/lib/eventboss/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: eventboss
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- AirHelp
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-11-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-sqs
|