bank-validator 0.2.5 → 0.2.6

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: facd0fa64440463997e92a2a2ba83a60200bb8f6
4
- data.tar.gz: d9efc05d5b615fd8f770192fd85674c89848e7df
3
+ metadata.gz: 8ce9dfb2ac40f6e67a817150ced7e267876b20d0
4
+ data.tar.gz: 96f37413314b55d0dcaba4a0368527c1b05a7bf5
5
5
  SHA512:
6
- metadata.gz: 5e1d1e82fb24d17c0205e60d53f0fd9a320f32bbaa1bde188721d3db6ec92e6485af66d4e38c8a2dfe71370872f71d46e54a973595dba88c8f1ec5834c8ea334
7
- data.tar.gz: bcc36d85a3d0ff0e4f48ae49098e9d5389acc21385504cd3333a1ba883c9bbcb2a79199aae976cf583d8838e6c40ca49f1bc098309b703b6dd25c953bd1fca25
6
+ metadata.gz: 547219217a8979c3e97530aa50fcd3bf7c0a278972fa3cba0db314b1452c5057b64871a857dcc23211818a9ea14999d4dfc033439268d5695dcae394b989ed43
7
+ data.tar.gz: 7a1cad541fad80d485d205e189844d583316cdc13d6b627d13173dc65b14a46be909f75e55befaa924ab0f983ff30f99f97698afd16f4f16ab603fd172b2e2ad
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.5
1
+ 0.2.6
@@ -2,11 +2,11 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
- # stub: bank-validator 0.2.5 ruby lib
5
+ # stub: bank-validator 0.2.6 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "bank-validator"
9
- s.version = "0.2.5"
9
+ s.version = "0.2.6"
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
12
  s.require_paths = ["lib"]
@@ -17,7 +17,7 @@ class RoutingNumberValidator < ActiveModel::EachValidator
17
17
  end
18
18
 
19
19
  def valid_routing_number?(route_number)
20
- d = route_number.chars
20
+ d = route_number.each_char.to_a
21
21
 
22
22
  ((3 * (d[0].to_i + d[3].to_i + d[6].to_i)) + (7 * (d[1].to_i + d[4].to_i + d[7].to_i)) + (d[2].to_i + d[5].to_i + d[8].to_i)) % 10 == 0
23
23
  end
@@ -1,10 +1,8 @@
1
1
  PATH
2
2
  remote: ~/Workspace/bank-validator
3
3
  specs:
4
- bank-validator (0.2.3)
4
+ bank-validator (0.2.5)
5
5
  activemodel (>= 3.0)
6
- activerecord (>= 3.0)
7
- activesupport (>= 3.0)
8
6
 
9
7
  GEM
10
8
  remote: https://rubygems.org/
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bank-validator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.5
4
+ version: 0.2.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Bahlke