nebulous_stomp 3.0.0 → 3.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/nebulous_stomp/request.rb +1 -1
- data/lib/nebulous_stomp/version.rb +1 -1
- data/nebulous.gemspec +2 -2
- data/spec/request_spec.rb +5 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 53e2585b6b1424042306d69a871a38632257e79a
|
4
|
+
data.tar.gz: 0f4c7affb0acf4b97838866a0a16420daf234814
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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 =
|
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 =
|
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.
|
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:
|
11
|
+
date: 2017-04-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|