outboxable 0.1.0 → 0.1.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 974efa7874e38a5ca48f6c91b58fbb0b1d8b7508135ecd50dd1e230ad8c9d508
4
- data.tar.gz: 565c240d3c10c0abd3ffe191af9d189e3f0fcaf95e66dffc17ff3f861cbb87c3
3
+ metadata.gz: 8a4b1567dc9149941d4012ac68f5b03fb32a43b2b7f4207db3fa792dffc397a6
4
+ data.tar.gz: e1080f39feb5299293bdc0d2fea3eb53ef08a4c78fa30fa5f5e1ee5ed8fc20f5
5
5
  SHA512:
6
- metadata.gz: 1f1f87256f1f331ec2d16a1b42453a57f58498894f965d8e7a996266b1ac8749fc304126c3f5ba71d75a89a03e0d2864b2e0216ade977c157db61abf77cb0855
7
- data.tar.gz: ad131708cecf7baf24a520058118f92bccc835d3a9f7c8874838c43c95d4a0bd88ea5e26932a961e484cb31b4bd79b37972fcceb7794e0b172e30cee67ae5df6
6
+ metadata.gz: ec58b90edf96ea5e01ae3203199938233d8f698868be57a0611150b04a00397cfdf6eb73c05a265a28b81492494762c181248d59cb34992ad88a9aa5d83ca6ef
7
+ data.tar.gz: a0587bfac39936da153301ad8002794d4758c94afb7d78840acd711154a1834ac72abcc6c6b7d80055d7541184a0c9ab0875405459923cb138ecd68c05089bab
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- outboxable (0.1.0)
4
+ outboxable (0.1.1)
5
5
  bunny (>= 2.19.0)
6
6
  connection_pool (~> 2.3.0)
7
7
 
data/README.md CHANGED
@@ -9,7 +9,7 @@ Please take into consideration that this Gem is **opinionated**, meaning it expe
9
9
  1. When using RabbitMQ, it only publishes events to a ***topic*** exchange.
10
10
  1. It assumes that you are using routing keys to publish to the topic exchange.
11
11
  1. It publishes events in a background job using [Sidekiq](https://github.com/sidekiq/sidekiq). Therefore, you application must use Sidekiq.
12
- 1. It implements the [polling publisher pattern](https://microservices.io/patterns/data/polling-publisher.html). For that, it uses [](https://github.com/sidekiq-cron/sidekiq-cron) to check the unpublished outboxes every 5 seconds after the initialization of the application.
12
+ 1. It implements the [polling publisher pattern](https://microservices.io/patterns/data/polling-publisher.html). For that, it uses [sidekiq-cron](https://github.com/sidekiq-cron/sidekiq-cron) to check the unpublished outboxes every 5 seconds after the initialization of the application.
13
13
 
14
14
  ## Installation
15
15
 
@@ -56,7 +56,7 @@ module Outboxable
56
56
  specversion: '1.0',
57
57
  type: resource.routing_key,
58
58
  datacontenttype: 'application/json',
59
- data: @resource.payload
59
+ data: resource.payload
60
60
  }.to_json
61
61
  end
62
62
  end
@@ -6,7 +6,7 @@ module Outboxable
6
6
 
7
7
  # Copy initializer into user app
8
8
  def copy_initializer
9
- copy_file('initializer.rb', 'config/initializers/outboxable.rb')
9
+ copy_file('initializer.rb', 'config/initializers/z_outboxable.rb')
10
10
  end
11
11
 
12
12
  # Copy user information (model & Migrations) into user app
@@ -33,4 +33,4 @@ module Outboxable
33
33
  Time.now.utc.strftime("%Y%m%d%H%M%S")
34
34
  end
35
35
  end
36
- end
36
+ end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Outboxable
4
- VERSION = "0.1.0"
4
+ VERSION = "0.1.1"
5
5
  end
@@ -12,7 +12,7 @@ module Outboxable
12
12
  specversion: '1.0',
13
13
  type: resource.routing_key,
14
14
  datacontenttype: 'application/json',
15
- data: @resource.payload
15
+ data: resource.payload
16
16
  }.to_json
17
17
  end
18
18
  end
@@ -33,4 +33,4 @@ Outboxable.configure do |config|
33
33
  config.rabbitmq_password = ENV.fetch('RABBITMQ__PASSWORD')
34
34
  config.rabbitmq_vhost = ENV.fetch('RABBITMQ__VHOST')
35
35
  config.rabbitmq_event_bus_exchange = ENV.fetch('EVENTBUS__EXCHANGE_NAME')
36
- end
36
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: outboxable
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brusk Awat
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-02-28 00:00:00.000000000 Z
11
+ date: 2023-03-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bunny