brcpfcnpj 2.1.12 → 2.1.13

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.
@@ -46,7 +46,7 @@ module CpfCnpj
46
46
  elsif self.instance_of? Cnpj
47
47
  return false if limpo.length != 14
48
48
  end
49
- return false if limpo.scan(/\d/).sort.join == limpo
49
+ return false if limpo.scan(/\d/).uniq.length == 1
50
50
  primeiro_verificador = primeiro_digito_verificador
51
51
  segundo_verificador = segundo_digito_verificador(primeiro_verificador)
52
52
  verif = primeiro_verificador + segundo_verificador
@@ -2,7 +2,7 @@ module BrCpfCnpj
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 2
4
4
  MINOR = 1
5
- TINY = 12
5
+ TINY = 13
6
6
 
7
7
  STRING = "#{MAJOR}.#{MINOR}.#{TINY}"
8
8
  end
metadata CHANGED
@@ -1,13 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: brcpfcnpj
3
3
  version: !ruby/object:Gem::Version
4
- hash: 19
5
4
  prerelease: false
6
5
  segments:
7
6
  - 2
8
7
  - 1
9
- - 12
10
- version: 2.1.12
8
+ - 13
9
+ version: 2.1.13
11
10
  platform: ruby
12
11
  authors:
13
12
  - "Marcos Tapaj\xC3\xB3s"
@@ -19,18 +18,16 @@ autorequire:
19
18
  bindir: bin
20
19
  cert_chain: []
21
20
 
22
- date: 2010-07-01 00:00:00 -03:00
21
+ date: 2010-08-23 00:00:00 -03:00
23
22
  default_executable:
24
23
  dependencies:
25
24
  - !ruby/object:Gem::Dependency
26
25
  name: actionpack
27
26
  prerelease: false
28
27
  requirement: &id001 !ruby/object:Gem::Requirement
29
- none: false
30
28
  requirements:
31
29
  - - ">="
32
30
  - !ruby/object:Gem::Version
33
- hash: 47
34
31
  segments:
35
32
  - 1
36
33
  - 13
@@ -42,11 +39,9 @@ dependencies:
42
39
  name: activesupport
43
40
  prerelease: false
44
41
  requirement: &id002 !ruby/object:Gem::Requirement
45
- none: false
46
42
  requirements:
47
43
  - - ">="
48
44
  - !ruby/object:Gem::Version
49
- hash: 3
50
45
  segments:
51
46
  - 1
52
47
  - 4
@@ -83,27 +78,23 @@ rdoc_options: []
83
78
  require_paths:
84
79
  - lib
85
80
  required_ruby_version: !ruby/object:Gem::Requirement
86
- none: false
87
81
  requirements:
88
82
  - - ">="
89
83
  - !ruby/object:Gem::Version
90
- hash: 3
91
84
  segments:
92
85
  - 0
93
86
  version: "0"
94
87
  required_rubygems_version: !ruby/object:Gem::Requirement
95
- none: false
96
88
  requirements:
97
89
  - - ">="
98
90
  - !ruby/object:Gem::Version
99
- hash: 3
100
91
  segments:
101
92
  - 0
102
93
  version: "0"
103
94
  requirements:
104
95
  - none
105
96
  rubyforge_project: brcpfcnpj
106
- rubygems_version: 1.3.7
97
+ rubygems_version: 1.3.6
107
98
  signing_key:
108
99
  specification_version: 3
109
100
  summary: "brcpfcnpj \xC3\xA9 uma das gems que compoem o Brazilian Rails"