mxn_banks 0.1.2 → 0.1.3

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: c0a359a7a13b1e48479ede3cab9dc6ed02692a11
4
- data.tar.gz: 594d5bc25b465efd0e8e9c50d1eca227d52769e1
3
+ metadata.gz: b3b5ecbe15f286815a787c2df995fe9f1eb9b9cb
4
+ data.tar.gz: 54e815dc1f00074413915898ad4b1a2710d45ef9
5
5
  SHA512:
6
- metadata.gz: db76438dc98364c4f9fc88629910e44428f07cf6eb5c0305904c5ab66df0fdd117ce27f306292a9181fe573f2d66edc0b573057067c6ac79d50644b6204a3a8c
7
- data.tar.gz: 70ca54c1394e534822c23e67cdc67fdb4cf916ebd0a6d20c68e0c2fe92cb9fd1794105c5702fe0f606273220ac0effc8f1c3f8108c4aa88f148902871dd30365
6
+ metadata.gz: 3e075bef4ff6728bec903c5ef51178d269fccced255fba283bb0e46aee3dafcff37c3b4694435a6a92db1e3e89c013159836fde350db575789709c0fd5e74f73
7
+ data.tar.gz: 77e8a98cb953b4b1cfcea2afde53225843b669c37101c0a83942684221bde8c7e885f5eb68842c994639b8b715fbcbb832c237d9d178f2bbbed15333d83f3846
data/lib/mxn_banks.rb CHANGED
@@ -12,7 +12,7 @@ module MxnBanks
12
12
  @banks ||= JSON.parse(json_file, symbolize_names: true)
13
13
  end
14
14
 
15
- def self.valid(clabe)
15
+ def self.valid?(clabe)
16
16
  sliced_clabe = clabe.slice(0,17).split('')
17
17
  w_factor = weight(sliced_clabe)
18
18
  module_ten = sliced_clabe.map.with_index { |n, i| (n.to_i * w_factor[i]).modulo(10) }
@@ -1,3 +1,3 @@
1
1
  module MxnBanks
2
- VERSION = '0.1.2'.freeze
2
+ VERSION = '0.1.3'.freeze
3
3
  end
data/mxn_banks.gemspec CHANGED
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
10
10
  spec.authors = ['aldosolorzano']
11
11
  spec.email = ['aldosolorzanop@gmail.com']
12
12
 
13
- spec.summary = 'Created for the purpose of autocomplete banks info.'
13
+ spec.summary = 'Get mexican banks from IBAN'
14
14
  spec.homepage = 'https://github.com/aldosolorzano/mxn_banks'
15
15
  spec.license = 'MIT'
16
16
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mxn_banks
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - aldosolorzano
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-07-26 00:00:00.000000000 Z
11
+ date: 2017-08-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -125,5 +125,5 @@ rubyforge_project:
125
125
  rubygems_version: 2.4.8
126
126
  signing_key:
127
127
  specification_version: 4
128
- summary: Created for the purpose of autocomplete banks info.
128
+ summary: Get mexican banks from IBAN
129
129
  test_files: []