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 +4 -4
- data/README.md +1 -1
- data/VERSION.semver +1 -1
- data/kraken_client.gemspec +1 -1
- data/lib/kraken_client/endpoints/public.rb +5 -2
- metadata +5 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 04377c155144b8ce23bba506d69f5410997cedba
|
4
|
+
data.tar.gz: bcd9a42733eea7f1f99442fef95953f40f60ada9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4bc2d7b0a27e6cd9b79041387862ddb810ee8d5a9cfa2dcbbfc21b41f4751f7eb501b2c36edf09cad7aa7f3e510ffab8bdc5018812bb0ab30e6ad9636500d3be
|
7
|
+
data.tar.gz: 9c01148e5f25c7594aebc0e8bb2bfb07234d6da849a48e6cc6fd28d1fb63d981147ae1024dac9ffd9f6450a17a512a8fd0111d927d1cc7efa626bd01cc5cecfa
|
data/README.md
CHANGED
data/VERSION.semver
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.3.0
|
data/kraken_client.gemspec
CHANGED
@@ -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.
|
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
|
-
|
8
|
-
|
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.
|
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-
|
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:
|
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:
|
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.
|
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:
|