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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 80a0e305688c13f775cd4878f76541b9fa30a72d197ea0ea53c607dcc66b02db
4
- data.tar.gz: 3078f03088605a062e5f703cfd36e3f76ca6028a6ca9c931eed951df5d05e8ed
3
+ metadata.gz: fccbc3a0a575f8ab4e1879ffb3d716c8764b37e1ecabe9e836fdbc0076b9da57
4
+ data.tar.gz: b7380a7933b1f4c38b8dee561e021494fc2fdd5f2310c4388842a6a23511b6e8
5
5
  SHA512:
6
- metadata.gz: e8a13d8d088551d1ed5065551cca08a8e1904df5c3ccdd129df96429c6bae94232e4d8077bd85f6555fdbfec2689642e129c3810de3f9088a8aaf3433faf9908
7
- data.tar.gz: d4f4812f0b535a68846004020271a5a543e1e2d66b26235419382923e8898db4cf2b1ea8490b011a8245b66c0d2320c456ea51ffce0362e628b71e1805fd2797
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.2.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.228.0)
14
- aws-sdk-core (3.72.0)
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)
@@ -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}"] = self
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, listener|
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
@@ -1,3 +1,3 @@
1
1
  module Eventboss
2
- VERSION = "1.2.1"
2
+ VERSION = "1.3.0"
3
3
  end
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.2.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-10-28 00:00:00.000000000 Z
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