brcpfcnpj 3.0.7 → 3.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -36,7 +36,7 @@
36
36
  # e.cnpj = "12343" # ==> um cnpj invalido
37
37
  # puts e.valid? # ==> false
38
38
  # e.save # ==> false
39
- # e.errors.on(:cnpj) # ==> 'número inválido'
39
+ # e.errors.on(:cnpj) # ==> 'não é válido' # de acordo com a I18n
40
40
  #
41
41
  # c = Cnpj.new("69103604000160")
42
42
  # e.cnpj = "69.103.604/0001-60"
data/lib/brcpfcnpj/cpf.rb CHANGED
@@ -39,7 +39,7 @@
39
39
  # p.cpf = "12345" # ==> um cpf invalido
40
40
  # puts p.valid? # ==> false
41
41
  # p.save # ==> false
42
- # p.errors.on(:cpf) # ==> 'número inválido'
42
+ # p.errors.on(:cpf) # ==> 'não é válido' # de acordo com o I18n
43
43
  #
44
44
  # c = Cpf.new("11144477735")
45
45
  # p.cpf = "111.444.777-35"
@@ -38,7 +38,7 @@ module CpfCnpjActiveRecord #:nodoc:
38
38
  def #{name}_valido?
39
39
  value = read_attribute('#{name}')
40
40
  if !value.nil? && value.strip != '' && !#{name}.nil? && !#{name}.valido?
41
- self.errors.add('#{name}', 'número inválido')
41
+ self.errors.add('#{name}', :invalid)
42
42
  end
43
43
  end
44
44
  def #{name}=(value)
@@ -2,7 +2,7 @@ module BrCpfCnpj
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 3
4
4
  MINOR = 0
5
- TINY = 7
5
+ TINY = 8
6
6
 
7
7
  STRING = "#{MAJOR}.#{MINOR}.#{TINY}"
8
8
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 3
7
7
  - 0
8
- - 7
9
- version: 3.0.7
8
+ - 8
9
+ version: 3.0.8
10
10
  platform: ruby
11
11
  authors:
12
12
  - "Marcos Tapaj\xC3\xB3s"
@@ -123,7 +123,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
123
123
  requirements:
124
124
  - - ">="
125
125
  - !ruby/object:Gem::Version
126
- hash: -1969045908206341566
126
+ hash: 2603333950043614332
127
127
  segments:
128
128
  - 0
129
129
  version: "0"
@@ -132,7 +132,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
132
132
  requirements:
133
133
  - - ">="
134
134
  - !ruby/object:Gem::Version
135
- hash: -1969045908206341566
135
+ hash: 2603333950043614332
136
136
  segments:
137
137
  - 0
138
138
  version: "0"