nebulous_stomp 3.0.0 → 3.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
  SHA1:
3
- metadata.gz: 2b884a207187065896c92f83149c9a9701fb4b32
4
- data.tar.gz: 18ec13584623af59f629a7c1e4ebc2d904c59cf3
3
+ metadata.gz: 53e2585b6b1424042306d69a871a38632257e79a
4
+ data.tar.gz: 0f4c7affb0acf4b97838866a0a16420daf234814
5
5
  SHA512:
6
- metadata.gz: 25d7c1f7cda1c2a509c837b4de72a998fbca6354bf29f9ec1a9e4931df1a22458b19b9cf57a4bf7e5c61fbb1f3d22ceeb7ff66dc93f1327756c0a98e7293e93b
7
- data.tar.gz: b9cfecbfdb21aaa42f36162b9baf57221a53706779721a584f5998a3a4f853fd0929789722b1a8ca896231b75123a43fdecfb76a051826f4fd7ff73cebe94f5b
6
+ metadata.gz: 0ebec48ed70a194f814af1fc38382a9fd6b72b30b66212675ed75b6d8c70a321fd1c462660d60ca4ece99691778859fa4fcd24d6cc110e9776ea101ada50ae7f
7
+ data.tar.gz: 1bf072025eb60e1e7da496ca5d399fd77f989140ba0d567c0e30bdb35ee861e6fd2096faa53586a92a7c4f22a784012b279253e0461b38b2e4b72ddace52ee44
@@ -202,7 +202,7 @@ module NebulousStomp
202
202
  # Write to the Redis cache
203
203
  #
204
204
  def cache_write(response, timeout)
205
- redis_handler.set(@message.protocol_json, response.to_h, ex: timeout)
205
+ redis_handler.set(@message.protocol_json, response.to_h.to_json, ex: timeout)
206
206
  end
207
207
 
208
208
  end # Request
@@ -1,5 +1,5 @@
1
1
  module NebulousStomp
2
2
 
3
3
  # Nebulous version number
4
- VERSION = "3.0.0"
4
+ VERSION = "3.0.1"
5
5
  end
data/nebulous.gemspec CHANGED
@@ -8,7 +8,7 @@ Gem::Specification.new do |spec|
8
8
  spec.authors = ["Andy Jones"]
9
9
  spec.email = ["andy.jones@twosticksconsulting.co.uk"]
10
10
  spec.summary = %q{Handles request-and-response messaging via STOMP}
11
- spec.description = <<~DESC
11
+ spec.description = <<-DESC.gsub(/^\s+/, "")
12
12
  A library and protocol to allow disperate systems to ask a question via
13
13
  STOMP and receive an answer in return. Optionally, answers can be cached in
14
14
  Redis.
@@ -27,7 +27,7 @@ Gem::Specification.new do |spec|
27
27
  spec.requirements << 'STOMP Messaging server'
28
28
  spec.requirements << 'Redis server (optional)'
29
29
 
30
- spec.post_install_message = <<~MESSAGE
30
+ spec.post_install_message = <<-MESSAGE.gsub(/^\s+/, "")
31
31
  Nebulous has been installed ...sort of... ::waves arms noncomittedly::
32
32
  MESSAGE
33
33
 
data/spec/request_spec.rb CHANGED
@@ -216,6 +216,11 @@ describe Request do
216
216
  expect( response.verb ).to eq "frog"
217
217
  end
218
218
 
219
+ fit "writes the response to the cache as JSON" do
220
+ response = request1.send
221
+ expect{ JSON.parse @redis_handler.fake_pair.values.first }.not_to raise_exception
222
+ end
223
+
219
224
  it "allows you to specify a message timeout" do
220
225
  expect{ request1.send(3) }.not_to raise_exception
221
226
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nebulous_stomp
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0
4
+ version: 3.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andy Jones
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-12-13 00:00:00.000000000 Z
11
+ date: 2017-04-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler