eventboss 1.0.1 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/eventboss/configuration.rb +1 -1
- data/lib/eventboss/publisher.rb +1 -1
- data/lib/eventboss/queue.rb +2 -2
- data/lib/eventboss/queue_listener.rb +1 -1
- 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: 21268c1e8002071825f4c0b23c51d0670be67b2a9a3a8a6c2888c8e566b007d9
|
|
4
|
+
data.tar.gz: 80145bd5c58051d16c31cc4fe5c14583c9d8e9d11f707342c8f94dab7673209f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4d75883ec5293bf2089f51bba6d6c726cf90d208fcad4b9fa190e3a3c122f0c40189523e000ed7c4325c9f25c1c4777f2af7c5cd59f4f645c34d56ccba69a8c9
|
|
7
|
+
data.tar.gz: aff6c045624e05c79cbda9e66a4218deb956c442b0572c1f8f03140ac9e4b4b39c809467a6e02afa0587288e0bd8e453b2f1b27befd92f0237c594485715423a
|
data/Gemfile.lock
CHANGED
|
@@ -88,7 +88,7 @@ module Eventboss
|
|
|
88
88
|
end
|
|
89
89
|
|
|
90
90
|
def sns_sqs_name_infix
|
|
91
|
-
defined_or_default('sns_sqs_name_infix') { ENV['EVENTBUS_SQS_SNS_NAME_INFIX'] || '
|
|
91
|
+
defined_or_default('sns_sqs_name_infix') { ENV['EVENTBUS_SQS_SNS_NAME_INFIX'] || 'eventboss' }
|
|
92
92
|
end
|
|
93
93
|
|
|
94
94
|
private
|
data/lib/eventboss/publisher.rb
CHANGED
|
@@ -26,7 +26,7 @@ module Eventboss
|
|
|
26
26
|
src_selector = @generic ? "" : "-#{configuration.eventboss_app_name}"
|
|
27
27
|
|
|
28
28
|
"arn:aws:sns:#{configuration.eventboss_region}:#{configuration.eventboss_account_id}:\
|
|
29
|
-
|
|
29
|
+
#{Eventboss.configuration.sns_sqs_name_infix}#{src_selector}-#{event_name}-#{Eventboss.env}"
|
|
30
30
|
end
|
|
31
31
|
end
|
|
32
32
|
end
|
data/lib/eventboss/queue.rb
CHANGED
|
@@ -8,10 +8,10 @@ module Eventboss
|
|
|
8
8
|
if generic
|
|
9
9
|
''
|
|
10
10
|
else
|
|
11
|
-
"
|
|
11
|
+
"#{source}-"
|
|
12
12
|
end
|
|
13
13
|
|
|
14
|
-
"#{destination}
|
|
14
|
+
"#{destination}-#{Eventboss.configuration.sns_sqs_name_infix}-#{source}#{event}-#{env}"
|
|
15
15
|
end
|
|
16
16
|
|
|
17
17
|
def initialize(name, configuration = Eventboss.configuration)
|
|
@@ -3,7 +3,7 @@ module Eventboss
|
|
|
3
3
|
class << self
|
|
4
4
|
def list
|
|
5
5
|
Hash[Eventboss::Listener::ACTIVE_LISTENERS.map do |src_app_event, listener|
|
|
6
|
-
[Eventboss::Queue.new("#{Eventboss.configuration.eventboss_app_name}
|
|
6
|
+
[Eventboss::Queue.new("#{Eventboss.configuration.eventboss_app_name}-#{Eventboss.configuration.sns_sqs_name_infix}-#{src_app_event}-#{Eventboss.env}"), listener]
|
|
7
7
|
end]
|
|
8
8
|
end
|
|
9
9
|
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.0.
|
|
4
|
+
version: 1.0.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- AirHelp
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2019-05-
|
|
11
|
+
date: 2019-05-20 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: concurrent-ruby
|