railway-ipc 1.0.0 → 1.0.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 +4 -4
- data/CHANGELOG.MD +4 -0
- data/lib/railway_ipc/publisher.rb +10 -4
- data/lib/railway_ipc/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: 6b0a9b840874946f0f7e80b0221e3df161eed5ce0926299356856cb5b81f76db
|
4
|
+
data.tar.gz: 252e1f3e84801e50cfccc47d6674c985a690e514cd2732b62c5f6cbbef71f0fc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 69cde1dbbfcabb1ed5f3a27ace4a126f7cf231096aa8b8761c6ac3f19f0c36a4a79183a44140367117eab13f01e1507e53ef9a484abb89510df17ff040395407
|
7
|
+
data.tar.gz: a2a85998d976faa746820474bb9e5597964bb92f379b95b7b55cc5936a72af532d3b5321d3228194f4209dbdab3b76dc430dbd2d357df33e9929ff3748465b6a
|
data/CHANGELOG.MD
CHANGED
@@ -10,6 +10,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
10
10
|
### Removed
|
11
11
|
### Fixed
|
12
12
|
|
13
|
+
## [1.0.1] - 2020-07-23
|
14
|
+
### Fixed
|
15
|
+
* Fix publisher connection by using default connection if one isn't provided
|
16
|
+
|
13
17
|
## [1.0.0] - 2020-07-20
|
14
18
|
### Added
|
15
19
|
* CircleCI build that runs the specs
|
@@ -52,10 +52,16 @@ module RailwayIpc
|
|
52
52
|
class Publisher < Sneakers::Publisher
|
53
53
|
attr_reader :exchange_name, :message_store
|
54
54
|
|
55
|
-
def initialize(
|
56
|
-
@exchange_name = exchange_name
|
57
|
-
@message_store = message_store
|
58
|
-
|
55
|
+
def initialize(opts={})
|
56
|
+
@exchange_name = opts.fetch(:exchange_name)
|
57
|
+
@message_store = opts.fetch(:message_store, RailwayIpc::PublishedMessage)
|
58
|
+
connection = opts.fetch(:connection, nil)
|
59
|
+
options = {
|
60
|
+
exchange: exchange_name,
|
61
|
+
connection: connection,
|
62
|
+
exchange_type: :fanout
|
63
|
+
}.compact
|
64
|
+
super(options)
|
59
65
|
end
|
60
66
|
|
61
67
|
# rubocop:disable Metrics/AbcSize
|
data/lib/railway_ipc/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: railway-ipc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ''
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-07-
|
11
|
+
date: 2020-07-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|