brcpfcnpj 3.0.2 → 3.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/brcpfcnpj/cnpj.rb +1 -1
- data/lib/brcpfcnpj/cpf.rb +1 -1
- data/lib/brcpfcnpj/cpf_cnpj_activerecord.rb +1 -1
- data/lib/brcpfcnpj/version.rb +1 -1
- metadata +6 -6
data/lib/brcpfcnpj/cnpj.rb
CHANGED
@@ -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) # ==> '
|
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
@@ -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}', '
|
40
|
+
self.errors.add('#{name}', 'número inválido')
|
41
41
|
end
|
42
42
|
end
|
43
43
|
def #{name}=(value)
|
data/lib/brcpfcnpj/version.rb
CHANGED
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:
|
5
|
-
prerelease:
|
4
|
+
hash: 1
|
5
|
+
prerelease:
|
6
6
|
segments:
|
7
7
|
- 3
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 3.0.
|
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:
|
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.
|
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"
|