br-cnpj 0.1.1 → 0.1.2

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.
Files changed (3) hide show
  1. data/README.rdoc +27 -12
  2. data/ext/CNPJ/CNPJ.so +0 -0
  3. metadata +4 -3
data/README.rdoc CHANGED
@@ -1,17 +1,32 @@
1
1
  = br-cnpj
2
2
 
3
- Calcules and validates Brazilian CNPJ
4
-
5
- == Note on Patches/Pull Requests
6
-
7
- * Fork the project.
8
- * Make your feature addition or bug fix.
9
- * Add tests for it. This is important so I don't break it in a
10
- future version unintentionally.
11
- * Commit, do not mess with rakefile, version, or history.
12
- (if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull)
13
- * Send me a pull request. Bonus points for topic branches.
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. See LICENSE for details.
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
- - 1
9
- version: 0.1.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: no descripton yet
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