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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 39c4398fe9a2406dea3747efe2f8cb83710b0a2f58f56e153f2df57625613445
4
- data.tar.gz: 5e6b9f14dfa42fe89078f6a1d95941eb133e113a1e90ff1e48b6804e2e8adec4
3
+ metadata.gz: 6b0a9b840874946f0f7e80b0221e3df161eed5ce0926299356856cb5b81f76db
4
+ data.tar.gz: 252e1f3e84801e50cfccc47d6674c985a690e514cd2732b62c5f6cbbef71f0fc
5
5
  SHA512:
6
- metadata.gz: dbdfdebec3010f66e63ed12965b3e82135b0599f4bce0a5fa771ce8e28dbed042149b2391c925a614079c0799249fa2cd3f2a114de3527450746420c40b20578
7
- data.tar.gz: c02cbdcb2cdc1cb6b609f818fb844c3e8accb6a54821d75b3afbb5197eff4c5ffa49cabb520bec8cfe3989052cbd38456d68e5e532e58244e1ea69e35c8677f4
6
+ metadata.gz: 69cde1dbbfcabb1ed5f3a27ace4a126f7cf231096aa8b8761c6ac3f19f0c36a4a79183a44140367117eab13f01e1507e53ef9a484abb89510df17ff040395407
7
+ data.tar.gz: a2a85998d976faa746820474bb9e5597964bb92f379b95b7b55cc5936a72af532d3b5321d3228194f4209dbdab3b76dc430dbd2d357df33e9929ff3748465b6a
@@ -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(exchange_name:, connection: nil, message_store: RailwayIpc::PublishedMessage)
56
- @exchange_name = exchange_name
57
- @message_store = message_store
58
- super(exchange: exchange_name, connection: connection, exchange_type: :fanout)
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RailwayIpc
4
- VERSION = '1.0.0'
4
+ VERSION = '1.0.1'
5
5
  end
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.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-20 00:00:00.000000000 Z
11
+ date: 2020-07-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler