bitex 0.2.6 → 0.2.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bitex.gemspec +1 -1
- data/lib/bitex/api.rb +2 -8
- data/lib/bitex/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d74361878cf503d9bd8f5e6292396dc1d9c2fd86
|
4
|
+
data.tar.gz: 2dfb13b5ef634ad67614d1f6cbb2ae41f63fa298
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1bc334db5cd0f105e38a166f07d53774764ce046e4da00d48692d6d9914075f8bf8415704e37e8216ba084868d3f0eb98910a6e0bd57c55c2f94b9806357f93b
|
7
|
+
data.tar.gz: 624e68302c3d01d7153590f2679d5251e3b9823beeb98fb7b060e8364dc53faf3350547950681b1a699bc798217e4dc26fc593e000d9db6b97e9c4cac15d7a3f
|
data/bitex.gemspec
CHANGED
@@ -20,7 +20,7 @@ Gem::Specification.new do |spec|
|
|
20
20
|
spec.require_paths = ["lib"]
|
21
21
|
|
22
22
|
spec.add_dependency "activesupport"
|
23
|
-
spec.add_dependency "curb"
|
23
|
+
spec.add_dependency "curb", "~> 0.9.3"
|
24
24
|
|
25
25
|
spec.required_ruby_version = '>= 1.9.3'
|
26
26
|
spec.add_development_dependency "bundler", "~> 1.3"
|
data/lib/bitex/api.rb
CHANGED
@@ -44,10 +44,7 @@ module Bitex
|
|
44
44
|
|
45
45
|
def self.public(path, options={})
|
46
46
|
c = curl(:GET, path)
|
47
|
-
|
48
|
-
c.close
|
49
|
-
GC.start
|
50
|
-
JSON.parse(body)
|
47
|
+
JSON.parse(c.body)
|
51
48
|
end
|
52
49
|
|
53
50
|
def self.private(verb, path, options={}, files={})
|
@@ -55,10 +52,7 @@ module Bitex
|
|
55
52
|
raise StandardError.new("No api_key available to make private key calls")
|
56
53
|
end
|
57
54
|
c = curl(verb, path, options.merge(api_key: Bitex.api_key), files)
|
58
|
-
|
59
|
-
c.close
|
60
|
-
GC.start
|
61
|
-
JSON.parse(body)
|
55
|
+
JSON.parse(c.body)
|
62
56
|
end
|
63
57
|
|
64
58
|
# Deserialize a single object from a json representation as specified on the
|
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.7
|
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: 2016-
|
12
|
+
date: 2016-05-09 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activesupport
|
@@ -29,16 +29,16 @@ dependencies:
|
|
29
29
|
name: curb
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|
31
31
|
requirements:
|
32
|
-
- - "
|
32
|
+
- - "~>"
|
33
33
|
- !ruby/object:Gem::Version
|
34
|
-
version:
|
34
|
+
version: 0.9.3
|
35
35
|
type: :runtime
|
36
36
|
prerelease: false
|
37
37
|
version_requirements: !ruby/object:Gem::Requirement
|
38
38
|
requirements:
|
39
|
-
- - "
|
39
|
+
- - "~>"
|
40
40
|
- !ruby/object:Gem::Version
|
41
|
-
version:
|
41
|
+
version: 0.9.3
|
42
42
|
- !ruby/object:Gem::Dependency
|
43
43
|
name: bundler
|
44
44
|
requirement: !ruby/object:Gem::Requirement
|