natsy 0.4.1 → 0.4.2
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/README.md +1 -0
- data/lib/natsy/client.rb +1 -2
- data/lib/natsy/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: 2897c319185a9098d4ccfa48b26e901acf3da7f75e40845fbe2bc1c22d957a5a
|
|
4
|
+
data.tar.gz: 784a846784ca0cb501a5f202c4f409a81ff8c1b0fed8eb66968a838a64beef43
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0bbca410ac8bb75384b526c53ef0f43eb9f4d4d79a5c60a7d213ddedcc82a34881cba72bca0030093540ea94e4f195348e782ccccc0c20cee335ad40410196b4
|
|
7
|
+
data.tar.gz: abf1c46ab12f7e4e64cff4d22da9e82ab13b35e8cd2b1bd1595b87ee6c6aa5c5d411717fb3c87af9e52f46cbe59c15107689d561cc16d56c0173188fbe987e27
|
data/README.md
CHANGED
|
@@ -13,6 +13,7 @@ The `natsy` gem allows you to listen for (and reply to) NATS messages asynchrono
|
|
|
13
13
|
- [ ] config for restart behavior (default is to restart listening on any `StandardError`)
|
|
14
14
|
- [ ] `on_error` handler so you can send a response (what's standard?)
|
|
15
15
|
- [ ] support lifecycle callbacks (like `on_connect`, `on_disconnect`, etc.) provided by the `nats` gem
|
|
16
|
+
- [ ] ability to _request_ (not just reply)
|
|
16
17
|
|
|
17
18
|
## Installation
|
|
18
19
|
|
data/lib/natsy/client.rb
CHANGED
|
@@ -241,8 +241,7 @@ module Natsy
|
|
|
241
241
|
|
|
242
242
|
log("Responding with '#{raw_response}'")
|
|
243
243
|
|
|
244
|
-
|
|
245
|
-
NATS.publish(reply_subject, response) if Utils.present?(reply_subject)
|
|
244
|
+
NATS.publish(reply_subject, raw_response.to_json) if Utils.present?(reply_subject)
|
|
246
245
|
end
|
|
247
246
|
end
|
|
248
247
|
end
|
data/lib/natsy/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Keegan Leitz
|
|
@@ -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.2
|
|
182
182
|
post_install_message:
|
|
183
183
|
rdoc_options: []
|
|
184
184
|
require_paths:
|