validates_as_cnpj 0.2.0 → 0.2.1

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.textile +3 -3
  2. data/VERSION +1 -1
  3. metadata +2 -2
@@ -6,16 +6,16 @@ h2. Installation
6
6
 
7
7
  You can install as gem:
8
8
 
9
- <pre>config.gem "validates_as_cnpj"</pre>
9
+ <pre>gem "validates_as_cnpj"</pre>
10
10
 
11
11
  Or as plugin:
12
12
 
13
- <pre>$ script/plugin install git://github.com/sobrinho/validates_as_cnpj.git</pre>
13
+ <pre>$ rails plugin install git://github.com/sobrinho/validates_as_cnpj.git</pre>
14
14
 
15
15
  h2. Usage
16
16
 
17
17
  <pre>class Company < ActiveRecord::Base
18
- validates_as_cnpj :document
18
+ validates :document, :cnpj => true
19
19
  end</pre>
20
20
 
21
21
  h2. License
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.0
1
+ 0.2.1
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 2
8
- - 0
9
- version: 0.2.0
8
+ - 1
9
+ version: 0.2.1
10
10
  platform: ruby
11
11
  authors:
12
12
  - Gabriel Sobrinho