bitex 0.2.5 → 0.2.6
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 +4 -4
- data/lib/bitex/api.rb +10 -2
- data/lib/bitex/payment.rb +0 -1
- data/lib/bitex/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c10011a0236765c8f3afd40a87b0a22188479e53
|
4
|
+
data.tar.gz: eb575522bcd9789dad19879ecf40b29931ffe7bb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a308a9ea298cc1604a400a701ed0edb8f93219c9d1a10ccd505727b90ef482a9a731ae15b1fda9e04742e31fd5c9323c9b3c56aa386e80cf22ddf22d414f96e2
|
7
|
+
data.tar.gz: 5e2cfdd8c334b7073a36087f041b891c5460dc6ebe6a9afd028d7c739da4d8739bd03419650093a7c9be8ed083c81efe0333e3706df8ae134a9b9a5ab35d72e8
|
data/lib/bitex/api.rb
CHANGED
@@ -43,14 +43,22 @@ module Bitex
|
|
43
43
|
end
|
44
44
|
|
45
45
|
def self.public(path, options={})
|
46
|
-
|
46
|
+
c = curl(:GET, path)
|
47
|
+
body = c.body
|
48
|
+
c.close
|
49
|
+
GC.start
|
50
|
+
JSON.parse(body)
|
47
51
|
end
|
48
52
|
|
49
53
|
def self.private(verb, path, options={}, files={})
|
50
54
|
if Bitex.api_key.nil?
|
51
55
|
raise StandardError.new("No api_key available to make private key calls")
|
52
56
|
end
|
53
|
-
|
57
|
+
c = curl(verb, path, options.merge(api_key: Bitex.api_key), files)
|
58
|
+
body = c.body
|
59
|
+
c.close
|
60
|
+
GC.start
|
61
|
+
JSON.parse(body)
|
54
62
|
end
|
55
63
|
|
56
64
|
# Deserialize a single object from a json representation as specified on the
|
data/lib/bitex/payment.rb
CHANGED
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.2.
|
4
|
+
version: 0.2.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nubis
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2016-02-03 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activesupport
|