iban_validation 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +1 -1
- data/iban_validation.gemspec +1 -1
- data/lib/iban_validation/iban_validator.rb +1 -1
- data/lib/iban_validation/version.rb +1 -1
- metadata +3 -3
data/README.md
CHANGED
data/iban_validation.gemspec
CHANGED
@@ -13,7 +13,7 @@ Gem::Specification.new do |gem|
|
|
13
13
|
formally validating International Bank Account Numbers (IBAN).
|
14
14
|
It is based on the IBANTools gem.
|
15
15
|
EOF
|
16
|
-
gem.summary = %q{ActiveModel
|
16
|
+
gem.summary = %q{ActiveModel IBAN validator}
|
17
17
|
gem.homepage = "https://github.com/opahk/iban_validation"
|
18
18
|
|
19
19
|
gem.files = `git ls-files`.split($/)
|
@@ -2,7 +2,7 @@ module IbanValidation
|
|
2
2
|
class IbanValidator < ActiveModel::EachValidator
|
3
3
|
def validate_each(record, attribute, values)
|
4
4
|
unless IBANTools::IBAN.valid? values
|
5
|
-
record.errors.add attribute,
|
5
|
+
record.errors.add attribute, :invalid
|
6
6
|
end
|
7
7
|
end
|
8
8
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: iban_validation
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-04-19 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activemodel
|
@@ -84,6 +84,6 @@ rubyforge_project:
|
|
84
84
|
rubygems_version: 1.8.24
|
85
85
|
signing_key:
|
86
86
|
specification_version: 3
|
87
|
-
summary: ActiveModel
|
87
|
+
summary: ActiveModel IBAN validator
|
88
88
|
test_files: []
|
89
89
|
has_rdoc:
|