cloudq_client 0.0.7 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/cloudq/publish.rb +2 -1
- data/lib/cloudq/version.rb +1 -1
- metadata +4 -4
data/lib/cloudq/publish.rb
CHANGED
@@ -16,8 +16,9 @@ module Cloudq
|
|
16
16
|
# JSON.parse(response)['status'] == 'success'
|
17
17
|
# end
|
18
18
|
resp = RestClient.post [Cloudq::Connection.url, @queue].join('/'), data, headers
|
19
|
-
JSON.parse(resp)
|
19
|
+
parsed_resp = JSON.parse(resp)
|
20
20
|
|
21
|
+
parsed_resp['status'] == 'success' || parsed_resp['ok'] == true
|
21
22
|
end
|
22
23
|
|
23
24
|
def jsonize(data)
|
data/lib/cloudq/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cloudq_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 27
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
|
+
- 1
|
8
9
|
- 0
|
9
|
-
|
10
|
-
version: 0.0.7
|
10
|
+
version: 0.1.0
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Tom Wilson
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2012-
|
18
|
+
date: 2012-07-27 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: rspec
|