bitex 0.2.5 → 0.2.6

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: c20547e560a9429bc177f38ebeb2933813d495b7
4
- data.tar.gz: e6f52c5f447f5d2dc3ce1e3d70f8a06fb32e84f2
3
+ metadata.gz: c10011a0236765c8f3afd40a87b0a22188479e53
4
+ data.tar.gz: eb575522bcd9789dad19879ecf40b29931ffe7bb
5
5
  SHA512:
6
- metadata.gz: b2acad0ac491239f3ef614aafcc081bd90bdc2be67beafebe2566e40fcfe25671962102eb9d2008fe1149eb9f2e3915d34f6e8c84ea897285ea8a1c59bade464
7
- data.tar.gz: 6c161cce3d216e448618c189ee795a8b995cd854bbe6e4fe661899428dc70b06ae18a696fab3e46bdd13f13b2ed6a532c74f2c06fad330462c401f434b6cdc3b
6
+ metadata.gz: a308a9ea298cc1604a400a701ed0edb8f93219c9d1a10ccd505727b90ef482a9a731ae15b1fda9e04742e31fd5c9323c9b3c56aa386e80cf22ddf22d414f96e2
7
+ data.tar.gz: 5e2cfdd8c334b7073a36087f041b891c5460dc6ebe6a9afd028d7c739da4d8739bd03419650093a7c9be8ed083c81efe0333e3706df8ae134a9b9a5ab35d72e8
@@ -43,14 +43,22 @@ module Bitex
43
43
  end
44
44
 
45
45
  def self.public(path, options={})
46
- JSON.parse(curl(:GET, path).body)
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
- JSON.parse(curl(verb, path, options.merge(api_key: Bitex.api_key), files).body)
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
@@ -1,6 +1,5 @@
1
1
  module Bitex
2
2
  class Payment
3
-
4
3
  attr_accessor :id, :user_id, :amount, :currency_id, :expected_quantity,
5
4
  :previous_expected_quantity, :confirmed_quantity, :unconfirmed_quantity,
6
5
  :valid_until, :quote_valid_until, :last_quoted_on, :status, :address,
@@ -1,3 +1,3 @@
1
1
  module Bitex
2
- VERSION = "0.2.5"
2
+ VERSION = "0.2.6"
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.5
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: 2015-08-07 00:00:00.000000000 Z
12
+ date: 2016-02-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport