quanto-ruby 0.0.13 → 0.0.14

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: cb3e0089a8dd510b1a38fd1d7410052ea07792ac
4
- data.tar.gz: a1f74cf0bc0543b489f1c309e853c78b5cc8c392
3
+ metadata.gz: 3336c326db32b2674e9f0f5c5a0127841a323d59
4
+ data.tar.gz: 7f01075f8816b20a0254c0ac9f35d5003fac2836
5
5
  SHA512:
6
- metadata.gz: 29cc7b1be43d820c0fca381d98411518cbb02a13483930389be5f140c2930b64740377b2b7d5f03d5645a76ef4c7092db5666a1376e212d94bd62dd68d78e01e
7
- data.tar.gz: 28edec9beff4e2b03f7cc59acdd3695c64dc421e4c8bf21ebd5696ba03870f0f66285f2b20821c43efdaca06f09a326ac364fd9fc311f99fd65392cc3f1697f6
6
+ metadata.gz: c2f2b674d6f2195a9fd986a35bdc55f92740f7aa20dad3c3f07eaff0ffbf30fe92b78475d5c76551f2a2420f4e8c3b7fd4e9942f46de57230368c18419caea90
7
+ data.tar.gz: 4332e0d7bc99ca0c5c38bdcbe3504f997b9a37f675ff220ed2295d29016f0b570428bf6401f4d71062287da58d1620a0baf2632ca76126cbcf5c5dc1061b3494
data/lib/quanto/client.rb CHANGED
@@ -32,7 +32,8 @@ module Quanto
32
32
 
33
33
  def post(path, options={})
34
34
  url = "/api/v#{API_VERSION}/#{path}"
35
- access_token.post(url, body: options)
35
+ response = access_token.post(url, body: options)
36
+ JSON.parse(response)
36
37
  end
37
38
 
38
39
  def get(path, options={})
@@ -1,3 +1,3 @@
1
1
  module Quanto
2
- VERSION = "0.0.13"
2
+ VERSION = "0.0.14"
3
3
  end
@@ -74,7 +74,7 @@ describe Quanto::Client do
74
74
  it 'prepends /api/v1' do
75
75
  path = 'foo'
76
76
  prefix = "/api/v1/"
77
- expect(token).to receive(:post).with("#{prefix}#{path}", anything)
77
+ expect(token).to receive(:post).with("#{prefix}#{path}", anything).and_return ('[]')
78
78
  client.send(:post, path, {})
79
79
  end
80
80
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: quanto-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.13
4
+ version: 0.0.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rasmus Rygaard