bitex 0.1.3 → 0.1.4

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.
data/README.md CHANGED
@@ -71,6 +71,14 @@ on that page. Once done you can start using it as follows:
71
71
 
72
72
  ruby > Bitex::Transaction.all
73
73
 
74
+ ## Sandbox
75
+
76
+ Bitex.la has a sandbox environment available at https://sandbox.bitex.la, you
77
+ can signup and create api keys there, and try this library on the sandbox
78
+ enviornment by doing
79
+
80
+ ruby > Bitex.sandbox = true
81
+
74
82
  ## Want more?
75
83
 
76
84
  Find the full API description at
@@ -17,7 +17,7 @@ module Bitex
17
17
  thing.personal_id_issuer = json[4]
18
18
  thing.personal_id_type = json[5]
19
19
  thing.tax_id = json[6]
20
- thing.birth_date = Time.at(json[7])
20
+ thing.birth_date = json[7] ? Time.at(json[7]) : nil
21
21
  thing.nationality = json[8]
22
22
  thing.gender = json[9]
23
23
  thing.occupation = json[10]
@@ -1,3 +1,3 @@
1
1
  module Bitex
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.4"
3
3
  end
@@ -135,4 +135,11 @@ describe Bitex::KycProfile do
135
135
  kyc_files.should be_an Array
136
136
  kyc_files.first.should be_a Bitex::KycFile
137
137
  end
138
+
139
+ it 'can have a nil birth_date' do
140
+ json = as_json.dup
141
+ json[7] = nil
142
+ kyc_profile = Bitex::KycProfile.from_json(json)
143
+ kyc_profile.birth_date.should be_nil
144
+ end
138
145
  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.1.3
4
+ version: 0.1.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: