brcpfcnpj 3.0.2 → 3.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -35,7 +35,7 @@
35
35
  # e.cnpj = "12343" # ==> um cnpj invalido
36
36
  # puts e.valid? # ==> false
37
37
  # e.save # ==> false
38
- # e.errors.on(:cnpj) # ==> 'numero invalido'
38
+ # e.errors.on(:cnpj) # ==> 'número inválido'
39
39
  #
40
40
  # c = Cnpj.new("69103604000160")
41
41
  # e.cnpj = "69.103.604/0001-60"
data/lib/brcpfcnpj/cpf.rb CHANGED
@@ -38,7 +38,7 @@
38
38
  # p.cpf = "12345" # ==> um cpf invalido
39
39
  # puts p.valid? # ==> false
40
40
  # p.save # ==> false
41
- # p.errors.on(:cpf) # ==> 'numero invalido'
41
+ # p.errors.on(:cpf) # ==> 'número inválido'
42
42
  #
43
43
  # c = Cpf.new("11144477735")
44
44
  # p.cpf = "111.444.777-35"
@@ -37,7 +37,7 @@ module CpfCnpjActiveRecord #:nodoc:
37
37
  def #{name}_valido?
38
38
  value = read_attribute('#{name}')
39
39
  if !value.nil? && value.strip != '' && !#{name}.nil? && !#{name}.valido?
40
- self.errors.add('#{name}', 'numero invalido')
40
+ self.errors.add('#{name}', 'número inválido')
41
41
  end
42
42
  end
43
43
  def #{name}=(value)
@@ -2,7 +2,7 @@ module BrCpfCnpj
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 3
4
4
  MINOR = 0
5
- TINY = 2
5
+ TINY = 3
6
6
 
7
7
  STRING = "#{MAJOR}.#{MINOR}.#{TINY}"
8
8
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: brcpfcnpj
3
3
  version: !ruby/object:Gem::Version
4
- hash: 3
5
- prerelease: false
4
+ hash: 1
5
+ prerelease:
6
6
  segments:
7
7
  - 3
8
8
  - 0
9
- - 2
10
- version: 3.0.2
9
+ - 3
10
+ version: 3.0.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - "Marcos Tapaj\xC3\xB3s"
@@ -21,7 +21,7 @@ autorequire:
21
21
  bindir: bin
22
22
  cert_chain: []
23
23
 
24
- date: 2010-12-09 00:00:00 -02:00
24
+ date: 2011-02-14 00:00:00 -02:00
25
25
  default_executable:
26
26
  dependencies:
27
27
  - !ruby/object:Gem::Dependency
@@ -142,7 +142,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
142
142
  requirements:
143
143
  - none
144
144
  rubyforge_project: brcpfcnpj
145
- rubygems_version: 1.3.7
145
+ rubygems_version: 1.5.0
146
146
  signing_key:
147
147
  specification_version: 3
148
148
  summary: "brcpfcnpj \xC3\xA9 uma das gems que compoem o Brazilian Rails"