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 +4 -4
- data/lib/mxn_banks.rb +1 -1
- data/lib/mxn_banks/version.rb +1 -1
- data/mxn_banks.gemspec +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b3b5ecbe15f286815a787c2df995fe9f1eb9b9cb
|
4
|
+
data.tar.gz: 54e815dc1f00074413915898ad4b1a2710d45ef9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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) }
|
data/lib/mxn_banks/version.rb
CHANGED
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 = '
|
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.
|
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-
|
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:
|
128
|
+
summary: Get mexican banks from IBAN
|
129
129
|
test_files: []
|