natsy 0.4.2 → 0.4.3
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/lib/natsy/config.rb +6 -12
- data/lib/natsy/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e8c3433d746ea11eacc51f7e602ab6a0d0816a69c5ef7db7e802847cf5b931fd
|
4
|
+
data.tar.gz: 79dc340ffefbe6371558fa1cd901977e55215f8cbda71024fcd930dda94eab2c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e7c12f04962acfb2e36bfd1ad580da552678dd26a6c5c51b7b373ef69f816a2018bc72a1c2ad2278b394f0e9e7d18f3d942dd46883a01630b1e30384e21fcc9a
|
7
|
+
data.tar.gz: af46e5498949a3806972d9a5a26fdadfc275e3d8914338c634a3cc01ab33c45b26fb48849103ec8a786903d580685912b418df099ace08f9aa5fbdcc9b05dfbb
|
data/lib/natsy/config.rb
CHANGED
@@ -73,17 +73,14 @@ module Natsy
|
|
73
73
|
# @example
|
74
74
|
# Natsy::Config.set(logger: Rails.logger)
|
75
75
|
#
|
76
|
+
attr_reader :logger
|
77
|
+
|
78
|
+
# {include:Natsy::Config::Options#logger}
|
76
79
|
def logger=(new_logger)
|
77
80
|
@logger = new_logger
|
78
81
|
Utils.log(@logger, "Set the logger to #{@logger.inspect}", level: :debug)
|
79
82
|
end
|
80
83
|
|
81
|
-
# Optional logger for lifecycle events, messages received, etc.
|
82
|
-
#
|
83
|
-
# @see Natsy::Config::Options#logger=
|
84
|
-
#
|
85
|
-
attr_reader :logger
|
86
|
-
|
87
84
|
# Set a default queue for subscriptions.
|
88
85
|
#
|
89
86
|
# **NOTE:** The following two examples do exactly the same thing.
|
@@ -109,17 +106,14 @@ module Natsy
|
|
109
106
|
# options.default_queue = nil
|
110
107
|
# end
|
111
108
|
#
|
109
|
+
attr_reader :default_queue
|
110
|
+
|
111
|
+
# {include:Natsy::Config::Options#default_queue}
|
112
112
|
def default_queue=(new_queue)
|
113
113
|
@default_queue = Utils.presence(new_queue.to_s)
|
114
114
|
Utils.log(logger, "Setting the default queue to #{@default_queue || '(none)'}", level: :debug)
|
115
115
|
end
|
116
116
|
|
117
|
-
# Optional default queue for message subscription and replies.
|
118
|
-
#
|
119
|
-
# @see Natsy::Config::Options#default_queue=
|
120
|
-
#
|
121
|
-
attr_reader :default_queue
|
122
|
-
|
123
117
|
# Returns ONLY the config options THAT HAVE BEEN SET as a +Hash+. Will not
|
124
118
|
# have keys for properties that are unassigned, but will have keys for
|
125
119
|
# properties assigned +nil+.
|
data/lib/natsy/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: natsy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Keegan Leitz
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-05-
|
11
|
+
date: 2021-05-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -178,7 +178,7 @@ homepage: https://github.com/openbay/natsy
|
|
178
178
|
licenses:
|
179
179
|
- MIT
|
180
180
|
metadata:
|
181
|
-
documentation_uri: https://www.rubydoc.info/gems/natsy/0.4.
|
181
|
+
documentation_uri: https://www.rubydoc.info/gems/natsy/0.4.3
|
182
182
|
post_install_message:
|
183
183
|
rdoc_options: []
|
184
184
|
require_paths:
|