jsonapi_publisher 0.2.4 → 0.2.5

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
  SHA1:
3
- metadata.gz: 7e243fa70f3cb2b2807f75f1e12619ffa731d93a
4
- data.tar.gz: 28550854aef07d3dc296e4984af381ef17d4d870
3
+ metadata.gz: 8024fc44a64373bfe0dc9d9ccbce9b4755e28ac9
4
+ data.tar.gz: 35b1e5c6846c1deb561caf4f581ac6642fa27351
5
5
  SHA512:
6
- metadata.gz: 2c89bf1a4aab0b5815d7ea5138ec86a56517a8860009199527dc55cc2eee967f59dcfc7f2cde38c2139f29a8d4251209854d31052cbb3e4fb07fae0dfa3fd917
7
- data.tar.gz: 4d56139a53742da28ff37f82a51b1e6712b78caaec35b13e0fc0bebf959b7bc01c773d0d457d176dd35c998b1f5c538f4e3ae7c1751e54e7a1d499db28d12a6e
6
+ metadata.gz: 12f4c04412069290d3987f6c033da9373541fe7d55a52e4ed110dddc7ca04740f954ba9652c984d16168504ff4b03eef03f2b8e251c121526458863f03e46595
7
+ data.tar.gz: a953ab77d84b31ab067b64af1107afe9f706e0da070b3cf3807e534f18db2df8fd3bb3baec0038e004431834a542e8d795b6aec46d7fafe0884947e4b9b06d51
@@ -1,3 +1,3 @@
1
1
  module JsonapiPublisher
2
- VERSION = '0.2.4'.freeze
2
+ VERSION = '0.2.5'.freeze
3
3
  end
@@ -26,9 +26,9 @@ module JsonapiPublisher
26
26
  elsif configuration.qservice == 'sqs'
27
27
  message_attributes = { routing_key: { string_value: routing_key, data_type: 'String' } }
28
28
  if configuration.avoid_send
29
- p; p "Requesting with queue_url: #{ENV['QUEUE_URL'] || channel.queue_url}, message_body: #{message.to_json}, message_attributes: #{message_attributes}"
29
+ p; p "Requesting with queue_url: #{ENV['QUEUE_URL'] || channel}, message_body: #{message.to_json}, message_attributes: #{message_attributes}"
30
30
  else
31
- connection.send_message(queue_url: ENV['QUEUE_URL'] || channel.queue_url, message_body: message.to_json, message_attributes: message_attributes)
31
+ connection.send_message(queue_url: ENV['QUEUE_URL'] || channel, message_body: message.to_json, message_attributes: message_attributes)
32
32
  end
33
33
  end
34
34
  end
@@ -37,10 +37,7 @@ module JsonapiPublisher
37
37
  if configuration.qservice == 'rmq'
38
38
  @channel ||= connection.create_channel
39
39
  elsif configuration.qservice == 'sqs'
40
- @channel ||= connection.create_queue(queue_name: ENV['EVENT_TOPIC'],
41
- attributes: {
42
- 'FifoQueue' => 'true'
43
- })
40
+ @channel ||= connection.get_queue_url(queue_name: ENV['EVENT_TOPIC'] || 'events')
44
41
  end
45
42
  end
46
43
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jsonapi_publisher
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michele Finotto