nifval 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,8 +1,9 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- nifval (0.1.0)
4
+ nifval (0.1.3)
5
5
  activemodel
6
+ i18n
6
7
 
7
8
  GEM
8
9
  remote: http://rubygems.org/
@@ -6,7 +6,7 @@ module Nifval
6
6
  class NifValidator < ActiveModel::EachValidator
7
7
  def validate_each(record, attribute, value)
8
8
  if !is_valid_nif value
9
- record.errors.add(attribute, t("nifval.wrong"))
9
+ record.errors.add(attribute, I18n.t("nifval.wrong"))
10
10
  end
11
11
  end
12
12
 
@@ -1,3 +1,3 @@
1
1
  module NifVal
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.4"
3
3
  end
@@ -21,4 +21,5 @@ Gem::Specification.new do |s|
21
21
 
22
22
  s.add_development_dependency "rspec", "~> 2.5"
23
23
  s.add_dependency "activemodel"
24
+ s.add_dependency "i18n"
24
25
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nifval
3
3
  version: !ruby/object:Gem::Version
4
- hash: 29
4
+ hash: 19
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 3
10
- version: 0.1.3
9
+ - 4
10
+ version: 0.1.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - Albert Bellonch
@@ -47,6 +47,20 @@ dependencies:
47
47
  version: "0"
48
48
  type: :runtime
49
49
  version_requirements: *id002
50
+ - !ruby/object:Gem::Dependency
51
+ name: i18n
52
+ prerelease: false
53
+ requirement: &id003 !ruby/object:Gem::Requirement
54
+ none: false
55
+ requirements:
56
+ - - ">="
57
+ - !ruby/object:Gem::Version
58
+ hash: 3
59
+ segments:
60
+ - 0
61
+ version: "0"
62
+ type: :runtime
63
+ version_requirements: *id003
50
64
  description: Validates a Spanish NIF/CIF/NIE by verifying that the digit control corresponds to the number.
51
65
  email:
52
66
  - albert@itnig.net