cpf_faker 1.1.0 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -6,6 +6,8 @@ source "http://rubygems.org"
6
6
  # Add dependencies to develop your gem here.
7
7
  # Include everything needed to run rake, tests, features, etc.
8
8
 
9
+ gem "clipboard"
10
+
9
11
  group :development do
10
12
  gem "rspec", "~> 2.1.0"
11
13
  gem "bundler", "~> 1.0.0"
data/Gemfile.lock CHANGED
@@ -3,6 +3,7 @@ GEM
3
3
  specs:
4
4
  br-cnpj (1.0.1)
5
5
  br-cpf (0.1.2)
6
+ clipboard (0.9.4)
6
7
  diff-lcs (1.1.2)
7
8
  git (1.2.5)
8
9
  jeweler (1.5.2)
@@ -27,6 +28,7 @@ DEPENDENCIES
27
28
  br-cnpj
28
29
  br-cpf
29
30
  bundler (~> 1.0.0)
31
+ clipboard
30
32
  jeweler (~> 1.5.1)
31
33
  rcov
32
34
  rspec (~> 2.1.0)
data/README.rdoc CHANGED
@@ -40,13 +40,15 @@ Or add it to your Gemfile if your project uses bundler (ex.: Rails apps)
40
40
 
41
41
  === Command line
42
42
 
43
- The command line executables are ridiculously simple and do nothing besides output number-only cpfs and cnpjs.
43
+ The command line executables are ridiculously simple and do nothing besides printing and coping number-only cpfs and cnpjs.
44
44
 
45
45
  $ cpf
46
46
  85968473240
47
+ CPF Copied to your clipboard!
47
48
 
48
49
  $ cnpj
49
50
  69068788849200
51
+ CNPJ Copied to your clipboard!
50
52
 
51
53
  == Motivation
52
54
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.0
1
+ 1.2.0
data/bin/cnpj CHANGED
@@ -1,6 +1,9 @@
1
1
  #!/usr/bin/env ruby
2
- $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
3
2
 
3
+ require 'rubygems'
4
4
  require 'cpf_faker'
5
+ require 'clipboard'
5
6
 
6
- puts Faker::CNPJ.numeric
7
+ puts generated = Faker::CNPJ.numeric
8
+ Clipboard.copy generated
9
+ puts "CNPJ Copied to your clipboard!"
data/bin/cpf CHANGED
@@ -1,6 +1,9 @@
1
1
  #!/usr/bin/env ruby
2
- $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
3
2
 
3
+ require 'rubygems'
4
4
  require 'cpf_faker'
5
+ require 'clipboard'
5
6
 
6
- puts Faker::CPF.numeric
7
+ puts generated = Faker::CPF.numeric
8
+ Clipboard.copy generated
9
+ puts "CPF Copied to your clipboard!"
data/cpf_faker.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{cpf_faker}
8
- s.version = "1.1.0"
8
+ s.version = "1.2.0"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Bernardo de P\303\241dua"]
12
- s.date = %q{2011-01-07}
12
+ s.date = %q{2011-01-18}
13
13
  s.description = %q{Generates brazilian CPF and CNPJ numbers for use in testing. Great to be used alongside Faker and won't clutter your namespace. }
14
14
  s.email = %q{berpasan@gmail.com}
15
15
  s.executables = ["cnpj", "cpf"]
@@ -52,6 +52,7 @@ Gem::Specification.new do |s|
52
52
  s.specification_version = 3
53
53
 
54
54
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
55
+ s.add_runtime_dependency(%q<clipboard>, [">= 0"])
55
56
  s.add_development_dependency(%q<rspec>, ["~> 2.1.0"])
56
57
  s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
57
58
  s.add_development_dependency(%q<jeweler>, ["~> 1.5.1"])
@@ -59,6 +60,7 @@ Gem::Specification.new do |s|
59
60
  s.add_development_dependency(%q<br-cpf>, [">= 0"])
60
61
  s.add_development_dependency(%q<br-cnpj>, [">= 0"])
61
62
  else
63
+ s.add_dependency(%q<clipboard>, [">= 0"])
62
64
  s.add_dependency(%q<rspec>, ["~> 2.1.0"])
63
65
  s.add_dependency(%q<bundler>, ["~> 1.0.0"])
64
66
  s.add_dependency(%q<jeweler>, ["~> 1.5.1"])
@@ -67,6 +69,7 @@ Gem::Specification.new do |s|
67
69
  s.add_dependency(%q<br-cnpj>, [">= 0"])
68
70
  end
69
71
  else
72
+ s.add_dependency(%q<clipboard>, [">= 0"])
70
73
  s.add_dependency(%q<rspec>, ["~> 2.1.0"])
71
74
  s.add_dependency(%q<bundler>, ["~> 1.0.0"])
72
75
  s.add_dependency(%q<jeweler>, ["~> 1.5.1"])
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cpf_faker
3
3
  version: !ruby/object:Gem::Version
4
- hash: 19
4
+ hash: 31
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
- - 1
8
+ - 2
9
9
  - 0
10
- version: 1.1.0
10
+ version: 1.2.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - "Bernardo de P\xC3\xA1dua"
@@ -15,11 +15,25 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-01-07 00:00:00 -02:00
18
+ date: 2011-01-18 00:00:00 -02:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
22
22
  requirement: &id001 !ruby/object:Gem::Requirement
23
+ none: false
24
+ requirements:
25
+ - - ">="
26
+ - !ruby/object:Gem::Version
27
+ hash: 3
28
+ segments:
29
+ - 0
30
+ version: "0"
31
+ type: :runtime
32
+ name: clipboard
33
+ prerelease: false
34
+ version_requirements: *id001
35
+ - !ruby/object:Gem::Dependency
36
+ requirement: &id002 !ruby/object:Gem::Requirement
23
37
  none: false
24
38
  requirements:
25
39
  - - ~>
@@ -33,9 +47,9 @@ dependencies:
33
47
  type: :development
34
48
  name: rspec
35
49
  prerelease: false
36
- version_requirements: *id001
50
+ version_requirements: *id002
37
51
  - !ruby/object:Gem::Dependency
38
- requirement: &id002 !ruby/object:Gem::Requirement
52
+ requirement: &id003 !ruby/object:Gem::Requirement
39
53
  none: false
40
54
  requirements:
41
55
  - - ~>
@@ -49,9 +63,9 @@ dependencies:
49
63
  type: :development
50
64
  name: bundler
51
65
  prerelease: false
52
- version_requirements: *id002
66
+ version_requirements: *id003
53
67
  - !ruby/object:Gem::Dependency
54
- requirement: &id003 !ruby/object:Gem::Requirement
68
+ requirement: &id004 !ruby/object:Gem::Requirement
55
69
  none: false
56
70
  requirements:
57
71
  - - ~>
@@ -65,9 +79,9 @@ dependencies:
65
79
  type: :development
66
80
  name: jeweler
67
81
  prerelease: false
68
- version_requirements: *id003
82
+ version_requirements: *id004
69
83
  - !ruby/object:Gem::Dependency
70
- requirement: &id004 !ruby/object:Gem::Requirement
84
+ requirement: &id005 !ruby/object:Gem::Requirement
71
85
  none: false
72
86
  requirements:
73
87
  - - ">="
@@ -79,9 +93,9 @@ dependencies:
79
93
  type: :development
80
94
  name: rcov
81
95
  prerelease: false
82
- version_requirements: *id004
96
+ version_requirements: *id005
83
97
  - !ruby/object:Gem::Dependency
84
- requirement: &id005 !ruby/object:Gem::Requirement
98
+ requirement: &id006 !ruby/object:Gem::Requirement
85
99
  none: false
86
100
  requirements:
87
101
  - - ">="
@@ -93,9 +107,9 @@ dependencies:
93
107
  type: :development
94
108
  name: br-cpf
95
109
  prerelease: false
96
- version_requirements: *id005
110
+ version_requirements: *id006
97
111
  - !ruby/object:Gem::Dependency
98
- requirement: &id006 !ruby/object:Gem::Requirement
112
+ requirement: &id007 !ruby/object:Gem::Requirement
99
113
  none: false
100
114
  requirements:
101
115
  - - ">="
@@ -107,7 +121,7 @@ dependencies:
107
121
  type: :development
108
122
  name: br-cnpj
109
123
  prerelease: false
110
- version_requirements: *id006
124
+ version_requirements: *id007
111
125
  description: "Generates brazilian CPF and CNPJ numbers for use in testing. Great to be used alongside Faker and won't clutter your namespace. "
112
126
  email: berpasan@gmail.com
113
127
  executables: