kraken_client 1.2.1 → 1.3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 37b48406d145e4a2c9d9d49d1b8a75e23380fb7f
4
- data.tar.gz: ec4f1f2fe16064ccb79ef0fc7b7b337b8f2bda2b
3
+ metadata.gz: 04377c155144b8ce23bba506d69f5410997cedba
4
+ data.tar.gz: bcd9a42733eea7f1f99442fef95953f40f60ada9
5
5
  SHA512:
6
- metadata.gz: 239771d6f06ab37d78ea75b904d61cc10c720637a405ff8aac861f027d7c28dd2e5a546a6a8574d2c33922f1faba300d3c0202a01ada024ada9da876b745b595
7
- data.tar.gz: da5213fc3e8b9131df6eeb8a8e6b4217c5e94f6b5affca9eec48a141eac3c8f29cd9778bb4cfff1f70068c19f99b5834f860957c2e369a4b5b21f352c296e083
6
+ metadata.gz: 4bc2d7b0a27e6cd9b79041387862ddb810ee8d5a9cfa2dcbbfc21b41f4751f7eb501b2c36edf09cad7aa7f3e510ffab8bdc5018812bb0ab30e6ad9636500d3be
7
+ data.tar.gz: 9c01148e5f25c7594aebc0e8bb2bfb07234d6da849a48e6cc6fd28d1fb63d981147ae1024dac9ffd9f6450a17a512a8fd0111d927d1cc7efa626bd01cc5cecfa
data/README.md CHANGED
@@ -64,7 +64,7 @@ example:
64
64
  Add this line to your application's Gemfile:
65
65
 
66
66
  ```ruby
67
- gem 'kraken_client', '~> 1.2'
67
+ gem 'kraken_client', '~> 1.2.1'
68
68
  ```
69
69
 
70
70
  And then execute:
@@ -1 +1 @@
1
- 1.2.1
1
+ 1.3.0
@@ -19,7 +19,7 @@ Gem::Specification.new do |spec|
19
19
  spec.add_development_dependency 'pry'
20
20
  spec.add_development_dependency 'webmock'
21
21
  spec.add_development_dependency 'vcr'
22
- spec.add_development_dependency 'yard', '~> 0.8'
22
+ spec.add_development_dependency 'yard', '~> 0.9.11'
23
23
  spec.add_development_dependency 'simplecov', '~> 0.7.1'
24
24
  spec.add_development_dependency 'codeclimate-test-reporter'
25
25
 
@@ -4,8 +4,11 @@ module KrakenClient
4
4
 
5
5
  def perform(endpoint_name, args)
6
6
  response = request_manager.call(url(endpoint_name), args)
7
- hash = JSON.parse(response.body).with_indifferent_access
8
- hash[:result]
7
+ if response.status == 200
8
+ hash = JSON.parse(response.body).with_indifferent_access
9
+ return hash[:result]
10
+ end
11
+ raise KrakenClient::Exception, "Response status #{response.status} received."
9
12
  end
10
13
 
11
14
  def data
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kraken_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.1
4
+ version: 1.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sidney SISSAOUI
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-09-26 00:00:00.000000000 Z
11
+ date: 2017-12-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -100,14 +100,14 @@ dependencies:
100
100
  requirements:
101
101
  - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: '0.8'
103
+ version: 0.9.11
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
108
  - - "~>"
109
109
  - !ruby/object:Gem::Version
110
- version: '0.8'
110
+ version: 0.9.11
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: simplecov
113
113
  requirement: !ruby/object:Gem::Requirement
@@ -254,9 +254,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
254
254
  version: '0'
255
255
  requirements: []
256
256
  rubyforge_project:
257
- rubygems_version: 2.4.5
257
+ rubygems_version: 2.5.2.1
258
258
  signing_key:
259
259
  specification_version: 4
260
260
  summary: "'Wrapper for Kraken Exchange API'"
261
261
  test_files: []
262
- has_rdoc: