br-cnpj 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +27 -12
- data/ext/CNPJ/CNPJ.so +0 -0
- metadata +4 -3
data/README.rdoc
CHANGED
@@ -1,17 +1,32 @@
|
|
1
1
|
= br-cnpj
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
==
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
3
|
+
Lib implementada em C (gera uma lib compilada nativamente) que calcula e valida CNPJs.
|
4
|
+
|
5
|
+
== Instala��o
|
6
|
+
|
7
|
+
sudo gem install br-cnpj
|
8
|
+
|
9
|
+
== Exemplos
|
10
|
+
|
11
|
+
require 'rubygems'
|
12
|
+
require 'br/cnpj'
|
13
|
+
|
14
|
+
BR::CNPJ.valid? '00000000000191'
|
15
|
+
=> true
|
16
|
+
|
17
|
+
BR::CNPJ.valid? 191
|
18
|
+
=> true
|
19
|
+
|
20
|
+
BR::CNPJ.valid? 192
|
21
|
+
=> false
|
22
|
+
|
23
|
+
raiz = 0
|
24
|
+
filial = 1
|
25
|
+
BR::CNPJ.new(raiz, filial).to_s
|
26
|
+
=> '00000000000191'
|
27
|
+
|
28
|
+
|
14
29
|
|
15
30
|
== Copyright
|
16
31
|
|
17
|
-
Copyright (c) 2010 Bruno Coimbra.
|
32
|
+
Copyright (c) 2010 Bruno Coimbra. Veja o arquivo LICENSE para mais detalhes.
|
data/ext/CNPJ/CNPJ.so
ADDED
Binary file
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 1
|
8
|
-
-
|
9
|
-
version: 0.1.
|
8
|
+
- 2
|
9
|
+
version: 0.1.2
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Bruno Coimbra
|
@@ -31,7 +31,7 @@ dependencies:
|
|
31
31
|
version: 1.2.9
|
32
32
|
type: :development
|
33
33
|
version_requirements: *id001
|
34
|
-
description:
|
34
|
+
description: Lib implemented in C that calculates and validates CNPJ.
|
35
35
|
email: bbcoimbra@gmail.com
|
36
36
|
executables: []
|
37
37
|
|
@@ -41,6 +41,7 @@ extra_rdoc_files:
|
|
41
41
|
- LICENSE
|
42
42
|
- README.rdoc
|
43
43
|
files:
|
44
|
+
- ext/CNPJ/CNPJ.so
|
44
45
|
- ext/CNPJ/cnpj.c
|
45
46
|
- ext/CNPJ/cnpj.h
|
46
47
|
- ext/CNPJ/extconf.rb
|