bcash-ruby 1.0.0 → 1.0.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: da056ba52deafba16ee01151a62a5d48fc75774c
4
- data.tar.gz: f0e8e0c2a4d2d0e388e8e7c2418895809a6abe92
3
+ metadata.gz: c5527831f196904ff9541540a15ed485b561bc72
4
+ data.tar.gz: b88f11eab14cc2afe41b14b70a91a03643386765
5
5
  SHA512:
6
- metadata.gz: b858120cceb4faf482907c332fee959c2e1ac230244426baf51e89d305d9dcbbcdda7ff616b455eced20131ae2ab5ec9fc2b6e00e91246c68e03b0a22c05d133
7
- data.tar.gz: 70ab9db6d3afb3ff1aaf5efd33848fdbab0bb859a1bbc91213399661770cc0383d2a91b2f735991ebdc7f6f8740550fbdc7ad798070e7ce295b8081cd225b30b
6
+ metadata.gz: 396a14cf2ab0ea9fdb3b9aac8d1301e70012f8834acf41b464a1d9ab652e2d6b3f1ddad274262ec1ae0b758bb97d93732cd7f58d2d8587c5f8b391071850b84b
7
+ data.tar.gz: c360164db4c81e8f477f0b6587c89450f88e5501d1278bb7fcc5f59622ebc8f24a5ce40f8cdf9895f69091eb298df0f288d83bd8179a07f9f7c81e6e01c61325
@@ -1,7 +1,7 @@
1
1
  module Bcash::Api
2
2
  class CreateAccountResponse < AccountResponse
3
3
  def errors
4
- body['errors']
4
+ body['errors'] || body['list']
5
5
  end
6
6
  end
7
7
  end
data/lib/bcash/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Bcash
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
@@ -16,7 +16,7 @@ describe Bcash::Api::Accounts do
16
16
  expect(response.message).to eq('Foi encontrado 1 registro para o CPF ou email informado!')
17
17
  expect(response.cpf).to eq(cpf)
18
18
  expect(response.accounts.size).to eq(1)
19
- expect(response.accounts.first).to eq({"mail" => 'pessoa@hotmail.com', "token" => 'kx4F3mkZDlGUejQNKWdnP5Ttmk', "idClient" => '205' })
19
+ expect(response.accounts.first).to eq({"mail" => 'pessoa@hotmail.com', "token" => 'kx4F3mkZDlGUejQNKWdnP5Ttmk', "idClient" => '205', 'keyAccess' => '1A518323ABED913AC', 'accountType' => 'pessoal' })
20
20
  end
21
21
  end
22
22
  end
@@ -53,7 +53,7 @@ http_interactions:
53
53
  - keep-alive
54
54
  body:
55
55
  encoding: UTF-8
56
- string: '{"code":"1","message":"Foi+encontrado+1+registro+para+o+CPF+ou+email+informado%21","cpf":"07411111111","email":"","accounts":[{"mail":"pessoa%40hotmail.com","token":"kx4F3mkZDlGUejQNKWdnP5Ttmk","idClient":"205"}]}'
56
+ string: '{"code":"1","message":"Foi+encontrado+1+registro+para+o+CPF+ou+email+informado%21","cpf":"07411111111","email":"","accounts":[{"mail":"pessoa%40hotmail.com","token":"kx4F3mkZDlGUejQNKWdnP5Ttmk","idClient":"205","keyAccess":"1A518323ABED913AC","accountType":"pessoal"}]}'
57
57
  http_version:
58
58
  recorded_at: Mon, 08 Sep 2014 17:16:51 GMT
59
59
  recorded_with: VCR 2.9.2
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bcash-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Raphael Costa
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-10-08 00:00:00.000000000 Z
11
+ date: 2015-01-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty