quanto-ruby 0.0.14 → 0.0.15

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: 3336c326db32b2674e9f0f5c5a0127841a323d59
4
- data.tar.gz: 7f01075f8816b20a0254c0ac9f35d5003fac2836
3
+ metadata.gz: e19692be1f07955f1cdf360c702ef83269a30752
4
+ data.tar.gz: 27eb8ab9b0915c1f93798064e4501faedd85d021
5
5
  SHA512:
6
- metadata.gz: c2f2b674d6f2195a9fd986a35bdc55f92740f7aa20dad3c3f07eaff0ffbf30fe92b78475d5c76551f2a2420f4e8c3b7fd4e9942f46de57230368c18419caea90
7
- data.tar.gz: 4332e0d7bc99ca0c5c38bdcbe3504f997b9a37f675ff220ed2295d29016f0b570428bf6401f4d71062287da58d1620a0baf2632ca76126cbcf5c5dc1061b3494
6
+ metadata.gz: 339e2cb357fa55e99e3e1c082b5d37420783004e5f515f223e95f9d910f3257479925b95a3be841b510cddb5213457a8afed338e38fd3a03e9481bf8102da9b8
7
+ data.tar.gz: 982007a465065680f33bd361caf58dcb6b7ca740da7b79ff898969456c15be19f263d8237b8e5a00272d607b7f0397e8a958227a0b3a24ddef2b10cd4a03fe94
data/lib/quanto/client.rb CHANGED
@@ -32,7 +32,7 @@ module Quanto
32
32
 
33
33
  def post(path, options={})
34
34
  url = "/api/v#{API_VERSION}/#{path}"
35
- response = access_token.post(url, body: options)
35
+ response = access_token.post(url, body: options).body
36
36
  JSON.parse(response)
37
37
  end
38
38
 
@@ -1,3 +1,3 @@
1
1
  module Quanto
2
- VERSION = "0.0.14"
2
+ VERSION = "0.0.15"
3
3
  end
@@ -72,9 +72,10 @@ describe Quanto::Client do
72
72
  end
73
73
 
74
74
  it 'prepends /api/v1' do
75
+ allow(JSON).to receive(:parse)
75
76
  path = 'foo'
76
77
  prefix = "/api/v1/"
77
- expect(token).to receive(:post).with("#{prefix}#{path}", anything).and_return ('[]')
78
+ expect(token).to receive(:post).with("#{prefix}#{path}", anything).and_return(double().as_null_object)
78
79
  client.send(:post, path, {})
79
80
  end
80
81
 
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.14
4
+ version: 0.0.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rasmus Rygaard