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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c10011a0236765c8f3afd40a87b0a22188479e53
4
- data.tar.gz: eb575522bcd9789dad19879ecf40b29931ffe7bb
3
+ metadata.gz: d74361878cf503d9bd8f5e6292396dc1d9c2fd86
4
+ data.tar.gz: 2dfb13b5ef634ad67614d1f6cbb2ae41f63fa298
5
5
  SHA512:
6
- metadata.gz: a308a9ea298cc1604a400a701ed0edb8f93219c9d1a10ccd505727b90ef482a9a731ae15b1fda9e04742e31fd5c9323c9b3c56aa386e80cf22ddf22d414f96e2
7
- data.tar.gz: 5e2cfdd8c334b7073a36087f041b891c5460dc6ebe6a9afd028d7c739da4d8739bd03419650093a7c9be8ed083c81efe0333e3706df8ae134a9b9a5ab35d72e8
6
+ metadata.gz: 1bc334db5cd0f105e38a166f07d53774764ce046e4da00d48692d6d9914075f8bf8415704e37e8216ba084868d3f0eb98910a6e0bd57c55c2f94b9806357f93b
7
+ data.tar.gz: 624e68302c3d01d7153590f2679d5251e3b9823beeb98fb7b060e8364dc53faf3350547950681b1a699bc798217e4dc26fc593e000d9db6b97e9c4cac15d7a3f
@@ -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"
@@ -44,10 +44,7 @@ module Bitex
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
+ 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
- body = c.body
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
@@ -1,3 +1,3 @@
1
1
  module Bitex
2
- VERSION = "0.2.6"
2
+ VERSION = "0.2.7"
3
3
  end
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.6
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-02-03 00:00:00.000000000 Z
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: '0'
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: '0'
41
+ version: 0.9.3
42
42
  - !ruby/object:Gem::Dependency
43
43
  name: bundler
44
44
  requirement: !ruby/object:Gem::Requirement