bank-validator 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -1
- data/VERSION +1 -1
- data/bank-validator.gemspec +2 -2
- data/lib/active_model/bic_validator.rb +1 -1
- data/lib/active_model/iban_validator.rb +1 -1
- data/lib/active_model/routing_number_validator.rb +1 -1
- data/test/dummy/Gemfile.lock +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4e50ae23a715911b48b2719007826a9cade6f052
|
4
|
+
data.tar.gz: ff4026eb0d5ade84c6d5d60e48f68d7589e6b0e2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fe563fd57de306b2a158ea02fc43e22e573b863ea9174f89d79df90ce534290d9d2b82b63e6b7f8343d37c11ef7c06101c282089c94571c069386b6c73e7fd38
|
7
|
+
data.tar.gz: 4846d208591cde4ec4168882b0cc2a76e668d295fbc8cbbab55a2835299e13ef601ffbcc27c6024c0edf431984bf01823dd6e31975631f16e27565d8b10bb73b
|
data/README.md
CHANGED
@@ -28,7 +28,9 @@ validates :bic, bic: true
|
|
28
28
|
validates :routing_number, routing_number: true
|
29
29
|
```
|
30
30
|
|
31
|
-
|
31
|
+
You can also pass custom messages to your validations. Otherwise the symbols `:invalid_iban`, `:invalid_bic`, `:invalid_routing_number` are returned, which you can map to internationalized error messages.
|
32
|
+
|
33
|
+
Now you're ready to go!
|
32
34
|
|
33
35
|
## Contributing to bank-validator
|
34
36
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.2
|
data/bank-validator.gemspec
CHANGED
@@ -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
|
+
# stub: bank-validator 0.2.2 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "bank-validator"
|
9
|
-
s.version = "0.2.
|
9
|
+
s.version = "0.2.2"
|
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"]
|
@@ -9,7 +9,7 @@ class RoutingNumberValidator < ActiveModel::EachValidator
|
|
9
9
|
private
|
10
10
|
|
11
11
|
def record_error(record, attribute, value)
|
12
|
-
record.errors.add(attribute, :
|
12
|
+
record.errors.add(attribute, (:invalid_routing_number || options[:message]))
|
13
13
|
end
|
14
14
|
|
15
15
|
def regexp
|
data/test/dummy/Gemfile.lock
CHANGED