bitex 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/bitex/api.rb +2 -2
- data/lib/bitex/version.rb +1 -1
- metadata +2 -2
data/lib/bitex/api.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
module Bitex
|
2
|
-
class ApiError <
|
2
|
+
class ApiError < StandardError; end
|
3
3
|
class Api
|
4
4
|
def self.curl(verb, path, options={})
|
5
5
|
verb = verb.upcase.to_sym
|
@@ -23,7 +23,7 @@ module Bitex
|
|
23
23
|
|
24
24
|
def self.private(verb, path, options={})
|
25
25
|
if Bitex.api_key.nil?
|
26
|
-
raise
|
26
|
+
raise StandardError.new("No api_key available to make private key calls")
|
27
27
|
end
|
28
28
|
JSON.parse(curl(verb, path, options.merge(api_key: Bitex.api_key)).body)
|
29
29
|
end
|
data/lib/bitex/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bitex
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2014-08-
|
13
|
+
date: 2014-08-17 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: activesupport
|