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.
@@ -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)['status'] == 'success'
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)
@@ -1,4 +1,4 @@
1
1
  module Cloudq
2
- VERSION = '0.0.7'
2
+ VERSION = '0.1.0'
3
3
  end
4
4
 
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: 17
4
+ hash: 27
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
+ - 1
8
9
  - 0
9
- - 7
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-06-12 00:00:00 Z
18
+ date: 2012-07-27 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: rspec