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 CHANGED
@@ -1,6 +1,6 @@
1
1
  # IbanValidation
2
2
 
3
- a ActiveModel::Validations IBAN validator based on IBANTools
3
+ ActiveModel Internation Bank Account Number (IBAN) validator based on IBANTools
4
4
 
5
5
  ## Installation
6
6
 
@@ -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::Validations IBAN validator}
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, 'is not a valid IBAN'
5
+ record.errors.add attribute, :invalid
6
6
  end
7
7
  end
8
8
  end
@@ -1,3 +1,3 @@
1
1
  module IbanValidation
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  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.1
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-01-04 00:00:00.000000000 Z
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::Validations IBAN validator
87
+ summary: ActiveModel IBAN validator
88
88
  test_files: []
89
89
  has_rdoc: