ffaker-cpfcnpj 0.1.0 → 0.2.0
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.
- data/README.rdoc +6 -2
- data/VERSION +1 -1
- data/ffaker-cpfcnpj.gemspec +1 -1
- data/lib/ffaker-cpfcnpj/cpfcnpj.rb +1 -1
- data/spec/ffaker-cpfcnpj_spec.rb +2 -2
- metadata +3 -3
data/README.rdoc
CHANGED
@@ -1,9 +1,13 @@
|
|
1
1
|
= ffaker-cpfcnpj
|
2
2
|
|
3
|
+
Installation
|
4
|
+
|
5
|
+
gem install ffaker-cpfcnpj
|
6
|
+
|
3
7
|
Quick start
|
4
8
|
|
5
|
-
Faker.
|
6
|
-
Faker.
|
9
|
+
Faker::CpfCnpj.cpf # generate a valid cpf
|
10
|
+
Faker::CpfCnpj.cnpj # generate a valid cnpj
|
7
11
|
|
8
12
|
|
9
13
|
== Contributing to ffaker-cpfcnpj
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.2.0
|
data/ffaker-cpfcnpj.gemspec
CHANGED
data/spec/ffaker-cpfcnpj_spec.rb
CHANGED
@@ -5,14 +5,14 @@ require 'ffaker-cpfcnpj'
|
|
5
5
|
|
6
6
|
describe "FfakerCpfcnpj" do
|
7
7
|
describe 'Cpf' do
|
8
|
-
subject {Faker::
|
8
|
+
subject {Faker::CpfCnpj.cpf }
|
9
9
|
|
10
10
|
it { should be_valido }
|
11
11
|
it { should be_kind_of(Cpf) }
|
12
12
|
end
|
13
13
|
|
14
14
|
describe 'Cnpj' do
|
15
|
-
subject {Faker::
|
15
|
+
subject {Faker::CpfCnpj.cnpj }
|
16
16
|
|
17
17
|
it { should be_valido }
|
18
18
|
it { should be_kind_of(Cnpj) }
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ffaker-cpfcnpj
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 23
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
|
-
-
|
8
|
+
- 2
|
9
9
|
- 0
|
10
|
-
version: 0.
|
10
|
+
version: 0.2.0
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Halan Pinheiro
|