short_bus 0.2.0 → 0.2.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
  SHA1:
3
- metadata.gz: f681095e57013c065264397ad260ad230f2aa84b
4
- data.tar.gz: 11338f735f7c245fee57f10d90818580ec38cc72
3
+ metadata.gz: 04794c83ba84d8c0bf73990a3cf0b6e86349bc3f
4
+ data.tar.gz: 3fd0585f06a03e271368e971ee38a9ddeb1254ca
5
5
  SHA512:
6
- metadata.gz: 2a51b49ee774d846b2e3514767eacf4d40d6e5e120e53039613875b76e48ef5e08cbc93961a6ce59d111462422abf6a710a8f956a23b22e254a57c673bc07887
7
- data.tar.gz: 87711efa87603007cac0b8ac4f741d2ce06f36144985b8bed0e0496aba70f5d724cac5748f3a4452b9c8fa4cda0a42bd5dc4f21be6f306e8615d245d2820139f
6
+ metadata.gz: 1c70c59f614dad25086b000834794e8fe3f2087b77b253a8cde088935b268d07ebdbc7ee1b888af3a217620f83854c30ade8f4a54a7b7250e560ac79d30a2642
7
+ data.tar.gz: 72a4090256f9b73644f01639f3b8d2dcfe6dd6a324a5cafd3ad5ae23785ad2aa4e48686d0bebfb162eef4e8aedc339d9c1653c3cbb7c102ebec81d34320bdfe3
@@ -10,20 +10,18 @@ module ShortBus
10
10
  attr_reader :services
11
11
  attr_accessor :debug
12
12
 
13
- DEFAULT_DRIVER_OPTIONS = {
14
- debug: false,
15
- default_message_spec: nil,
16
- default_publisher_spec: nil,
17
- default_thread_count: 1,
18
- max_message_queue_size: 1_000_000
19
- }.freeze
20
-
21
13
  # Example:
22
14
  #
23
15
  # Arguments:
24
16
  # options: hash
25
17
  def initialize(*options)
26
- @options = DEFAULT_DRIVER_OPTIONS
18
+ @options = {
19
+ debug: false,
20
+ default_message_spec: nil,
21
+ default_publisher_spec: nil,
22
+ default_thread_count: 1,
23
+ max_message_queue_size: 1_000_000
24
+ }
27
25
  @options.merge! options[0] if options[0].is_a?(Hash)
28
26
  @debug = @options[:debug]
29
27
 
@@ -5,17 +5,16 @@ module ShortBus
5
5
  # For printing out all messages
6
6
  class Monitor
7
7
 
8
- DEFAULT_MONITOR_OPTIONS = {
9
- message_spec: nil,
10
- name: 'ShortBus::Monitor',
11
- suppress_payload: false,
12
- suppress_publisher: false,
13
- publisher_spec: nil,
14
- thread_count: 1
15
- }.freeze
16
-
17
8
  def initialize(*args)
18
- @options = DEFAULT_MONITOR_OPTIONS.merge(service: method(:monitor))
9
+ @options = {
10
+ message_spec: nil,
11
+ name: 'ShortBus::Monitor',
12
+ service: method(:monitor),
13
+ suppress_payload: false,
14
+ suppress_publisher: false,
15
+ publisher_spec: nil,
16
+ thread_count: 1
17
+ }
19
18
  @suppress_payload, @suppress_publisher = nil
20
19
 
21
20
  if args[0].is_a?(Hash) && args[0].key?(:driver)
@@ -1,3 +1,3 @@
1
1
  module ShortBus
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: short_bus
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rob Zwissler