ivt_mellon_reader 0.4.1 → 0.4.2

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: 23786e6071fa5b047ffbd9e49a504135e7e2271d
4
- data.tar.gz: b209d8b3b5e5435e8fbc6fdf263dc1a9b6d90953
3
+ metadata.gz: 3aa8f6c72ed3f7e78059042a8d66db73c427899e
4
+ data.tar.gz: 00d97ecbf9350fe3918a4dd095972ffcffd5b5c4
5
5
  SHA512:
6
- metadata.gz: ef99b99ce50aa859be09989f27f54329b7ca54d1e3533b0d46d69cef3a8758d20ab247460e8a64affe89e96f6dca690ce3f24b3c24e7c4f240fc502ae477e1c6
7
- data.tar.gz: e6dbf844a0094490a834c20494cd139357115ab455db33700a55294e3cb6ef89cd5fe73a6724a18b93253165a0facb447ebd58a4d18a936cfe2469e77b87b13a
6
+ metadata.gz: 8b2c939bcbc54a8d422b731a96f21494c2f0abe59c098f9dd9e99f73ef2be1ba8ca7ce03f402187c5e694acfa6e75cea32cb26c176429f37daeb88b4d34912ee
7
+ data.tar.gz: af7837e98083f4e27f33d2dd63603e78f67ccfd4dcdd2551c8aa9636c74af57c5ea2c8402506f0d82cd8c350a1486b83c376ffd5304fc779eb0407b98702d050
@@ -103,7 +103,11 @@ module IvtMellonReader
103
103
 
104
104
  def birth_date
105
105
  if @client[:Titular].has_key? :dataNascimento
106
- Date.parse(@client[:Titular][:dataNascimento])
106
+ if !@client[:Titular][:dataNascimento].empty?
107
+ Date.parse(@client[:Titular][:dataNascimento])
108
+ else
109
+ return nil
110
+ end
107
111
  end
108
112
  end
109
113
 
@@ -1,3 +1,3 @@
1
1
  module IvtMellonReader
2
- VERSION = "0.4.1"
2
+ VERSION = "0.4.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ivt_mellon_reader
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lucas Pérez'
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-04-04 00:00:00.000000000 Z
11
+ date: 2017-04-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler