eventboss 1.0.1 → 1.0.2

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: c16b4f3ea346fe2ea1ae322aca891a622219fd8d05afd9c3bf96e9c906253828
4
- data.tar.gz: c7ef5ed1c48e1b4f632d17cfe547cb8df69faa343cb7e2a0f3b62e38ab455406
3
+ metadata.gz: 21268c1e8002071825f4c0b23c51d0670be67b2a9a3a8a6c2888c8e566b007d9
4
+ data.tar.gz: 80145bd5c58051d16c31cc4fe5c14583c9d8e9d11f707342c8f94dab7673209f
5
5
  SHA512:
6
- metadata.gz: c4789a475dafea67f5812e4d439e5443a60138d7c13a08e00674add2c2c700d4f9d32bcfe29c2cea2b24a75e75945d23e35a418660fcd683ed40edbc2b5fcdad
7
- data.tar.gz: a8eeba999f64d14aaee84c4c34a002474d095c7c1405165e218e61f5dc3db796d438d1666d8c056c26765802de83f16456c22d125c1e037133718a429e723ec3
6
+ metadata.gz: 4d75883ec5293bf2089f51bba6d6c726cf90d208fcad4b9fa190e3a3c122f0c40189523e000ed7c4325c9f25c1c4777f2af7c5cd59f4f645c34d56ccba69a8c9
7
+ data.tar.gz: aff6c045624e05c79cbda9e66a4218deb956c442b0572c1f8f03140ac9e4b4b39c809467a6e02afa0587288e0bd8e453b2f1b27befd92f0237c594485715423a
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- eventboss (1.0.1)
4
+ eventboss (1.0.2)
5
5
  aws-sdk-sns (>= 1.1.0)
6
6
  aws-sdk-sqs (>= 1.3.0)
7
7
  concurrent-ruby (~> 1.0, >= 1.0.5)
@@ -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'] || '-eventboss-' }
91
+ defined_or_default('sns_sqs_name_infix') { ENV['EVENTBUS_SQS_SNS_NAME_INFIX'] || 'eventboss' }
92
92
  end
93
93
 
94
94
  private
@@ -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
- eventboss#{src_selector}-#{event_name}-#{Eventboss.env}"
29
+ #{Eventboss.configuration.sns_sqs_name_infix}#{src_selector}-#{event_name}-#{Eventboss.env}"
30
30
  end
31
31
  end
32
32
  end
@@ -8,10 +8,10 @@ module Eventboss
8
8
  if generic
9
9
  ''
10
10
  else
11
- "-#{source}"
11
+ "#{source}-"
12
12
  end
13
13
 
14
- "#{destination}-eventboss#{source}-#{event}-#{env}"
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}#{Eventboss.configuration.sns_sqs_name_infix}#{src_app_event}-#{Eventboss.env}"), listener]
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
@@ -1,3 +1,3 @@
1
1
  module Eventboss
2
- VERSION = "1.0.1"
2
+ VERSION = "1.0.2"
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.0.1
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-14 00:00:00.000000000 Z
11
+ date: 2019-05-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: concurrent-ruby