natsy 0.4.1 → 0.4.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ece7795e8d0829b951bc59e8be816af7b48d8be4c30ddbb7cc6d30a802439ce6
4
- data.tar.gz: 9cd71c604e80e6b2caddec98d159a3bc27487bbd3c295ca779e9d88b7df26968
3
+ metadata.gz: 2897c319185a9098d4ccfa48b26e901acf3da7f75e40845fbe2bc1c22d957a5a
4
+ data.tar.gz: 784a846784ca0cb501a5f202c4f409a81ff8c1b0fed8eb66968a838a64beef43
5
5
  SHA512:
6
- metadata.gz: 9b9339a4ab42f14e494f6283a50bdfb32465a81c361dc488d636d14d79f62be52e2448a9ebd1f756e8e9dc77be5f001231a87bfa1e3e1535c37b9a7c634a8784
7
- data.tar.gz: 60dcb7f42d58fa4f6a42795ebd7ead07e74e58282564139f360f14da37cdc76e749e55af036bfcff79589bbd002a6f8cb02cb9e3da35e92c72a83b53911d465c
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
- response = raw_response.is_a?(String) ? raw_response : raw_response.to_json
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Natsy
4
- VERSION = "0.4.1"
4
+ VERSION = "0.4.2"
5
5
  end
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.1
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.1
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: