outboxable 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +2 -2
- data/lib/generators/outboxable/install_generator.rb +2 -2
- data/lib/outboxable/version.rb +1 -1
- data/lib/templates/initializer.rb +2 -2
- 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: 8a4b1567dc9149941d4012ac68f5b03fb32a43b2b7f4207db3fa792dffc397a6
|
4
|
+
data.tar.gz: e1080f39feb5299293bdc0d2fea3eb53ef08a4c78fa30fa5f5e1ee5ed8fc20f5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ec58b90edf96ea5e01ae3203199938233d8f698868be57a0611150b04a00397cfdf6eb73c05a265a28b81492494762c181248d59cb34992ad88a9aa5d83ca6ef
|
7
|
+
data.tar.gz: a0587bfac39936da153301ad8002794d4758c94afb7d78840acd711154a1834ac72abcc6c6b7d80055d7541184a0c9ab0875405459923cb138ecd68c05089bab
|
data/Gemfile.lock
CHANGED
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:
|
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/
|
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
|
data/lib/outboxable/version.rb
CHANGED
@@ -12,7 +12,7 @@ module Outboxable
|
|
12
12
|
specversion: '1.0',
|
13
13
|
type: resource.routing_key,
|
14
14
|
datacontenttype: 'application/json',
|
15
|
-
data:
|
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.
|
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-
|
11
|
+
date: 2023-03-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bunny
|