cpf_faker 1.2.0 → 1.3.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -3,14 +3,14 @@ GEM
3
3
  specs:
4
4
  br-cnpj (1.0.1)
5
5
  br-cpf (0.1.2)
6
- clipboard (0.9.4)
6
+ clipboard (0.9.9)
7
7
  diff-lcs (1.1.2)
8
8
  git (1.2.5)
9
9
  jeweler (1.5.2)
10
10
  bundler (~> 1.0.0)
11
11
  git (>= 1.2.5)
12
12
  rake
13
- rake (0.8.7)
13
+ rake (0.9.2)
14
14
  rcov (0.9.9)
15
15
  rspec (2.1.0)
16
16
  rspec-core (~> 2.1.0)
data/Rakefile CHANGED
@@ -1,3 +1,5 @@
1
+ # encoding: UTF-8
2
+
1
3
  require 'rubygems'
2
4
  require 'bundler'
3
5
  begin
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.2.0
1
+ 1.3.0
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{cpf_faker}
8
- s.version = "1.2.0"
8
+ s.version = "1.3.0"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
- s.authors = ["Bernardo de P\303\241dua"]
12
- s.date = %q{2011-01-18}
11
+ s.authors = ["Bernardo de Pádua"]
12
+ s.date = %q{2011-06-26}
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"]
@@ -39,7 +39,7 @@ Gem::Specification.new do |s|
39
39
  s.homepage = %q{http://github.com/bernardo/cpf_faker}
40
40
  s.licenses = ["MIT"]
41
41
  s.require_paths = ["lib"]
42
- s.rubygems_version = %q{1.3.7}
42
+ s.rubygems_version = %q{1.6.2}
43
43
  s.summary = %q{Generate fake brasilian CPF and CNPJ numbers for test purposes}
44
44
  s.test_files = [
45
45
  "spec/cnpj_faker_spec.rb",
@@ -48,7 +48,6 @@ Gem::Specification.new do |s|
48
48
  ]
49
49
 
50
50
  if s.respond_to? :specification_version then
51
- current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
52
51
  s.specification_version = 3
53
52
 
54
53
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
@@ -26,7 +26,7 @@ module Faker
26
26
  end
27
27
 
28
28
  second_validator = sum % 11
29
- (cnpj_root << second_validator = second_validator < 2 ? 0 : 11 - second_validator).to_s
29
+ (cnpj_root << second_validator = second_validator < 2 ? 0 : 11 - second_validator).join
30
30
  end
31
31
  alias numbers numeric
32
32
  alias number numeric
@@ -44,4 +44,4 @@ module Faker
44
44
 
45
45
  end
46
46
  end
47
- end
47
+ end
@@ -27,7 +27,7 @@ module Faker
27
27
 
28
28
  second_validator = sum % 11
29
29
  second_validator = second_validator < 2 ? 0 : 11 - second_validator
30
- (cpf_root << second_validator).to_s
30
+ (cpf_root << second_validator).join
31
31
  end
32
32
  alias number numeric
33
33
  alias numbers numeric
@@ -46,4 +46,4 @@ module Faker
46
46
  end
47
47
 
48
48
  end
49
- end
49
+ end
metadata CHANGED
@@ -1,138 +1,105 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: cpf_faker
3
- version: !ruby/object:Gem::Version
4
- hash: 31
5
- prerelease: false
6
- segments:
7
- - 1
8
- - 2
9
- - 0
10
- version: 1.2.0
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.3.0
5
+ prerelease:
11
6
  platform: ruby
12
- authors:
13
- - "Bernardo de P\xC3\xA1dua"
7
+ authors:
8
+ - Bernardo de Pádua
14
9
  autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
-
18
- date: 2011-01-18 00:00:00 -02:00
12
+ date: 2011-06-26 00:00:00.000000000 -03:00
19
13
  default_executable:
20
- dependencies:
21
- - !ruby/object:Gem::Dependency
22
- requirement: &id001 !ruby/object:Gem::Requirement
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: clipboard
17
+ requirement: &2158606260 !ruby/object:Gem::Requirement
23
18
  none: false
24
- requirements:
25
- - - ">="
26
- - !ruby/object:Gem::Version
27
- hash: 3
28
- segments:
29
- - 0
30
- version: "0"
19
+ requirements:
20
+ - - ! '>='
21
+ - !ruby/object:Gem::Version
22
+ version: '0'
31
23
  type: :runtime
32
- name: clipboard
33
24
  prerelease: false
34
- version_requirements: *id001
35
- - !ruby/object:Gem::Dependency
36
- requirement: &id002 !ruby/object:Gem::Requirement
25
+ version_requirements: *2158606260
26
+ - !ruby/object:Gem::Dependency
27
+ name: rspec
28
+ requirement: &2158605740 !ruby/object:Gem::Requirement
37
29
  none: false
38
- requirements:
30
+ requirements:
39
31
  - - ~>
40
- - !ruby/object:Gem::Version
41
- hash: 11
42
- segments:
43
- - 2
44
- - 1
45
- - 0
32
+ - !ruby/object:Gem::Version
46
33
  version: 2.1.0
47
34
  type: :development
48
- name: rspec
49
35
  prerelease: false
50
- version_requirements: *id002
51
- - !ruby/object:Gem::Dependency
52
- requirement: &id003 !ruby/object:Gem::Requirement
36
+ version_requirements: *2158605740
37
+ - !ruby/object:Gem::Dependency
38
+ name: bundler
39
+ requirement: &2158605140 !ruby/object:Gem::Requirement
53
40
  none: false
54
- requirements:
41
+ requirements:
55
42
  - - ~>
56
- - !ruby/object:Gem::Version
57
- hash: 23
58
- segments:
59
- - 1
60
- - 0
61
- - 0
43
+ - !ruby/object:Gem::Version
62
44
  version: 1.0.0
63
45
  type: :development
64
- name: bundler
65
46
  prerelease: false
66
- version_requirements: *id003
67
- - !ruby/object:Gem::Dependency
68
- requirement: &id004 !ruby/object:Gem::Requirement
47
+ version_requirements: *2158605140
48
+ - !ruby/object:Gem::Dependency
49
+ name: jeweler
50
+ requirement: &2158604560 !ruby/object:Gem::Requirement
69
51
  none: false
70
- requirements:
52
+ requirements:
71
53
  - - ~>
72
- - !ruby/object:Gem::Version
73
- hash: 1
74
- segments:
75
- - 1
76
- - 5
77
- - 1
54
+ - !ruby/object:Gem::Version
78
55
  version: 1.5.1
79
56
  type: :development
80
- name: jeweler
81
57
  prerelease: false
82
- version_requirements: *id004
83
- - !ruby/object:Gem::Dependency
84
- requirement: &id005 !ruby/object:Gem::Requirement
58
+ version_requirements: *2158604560
59
+ - !ruby/object:Gem::Dependency
60
+ name: rcov
61
+ requirement: &2158604020 !ruby/object:Gem::Requirement
85
62
  none: false
86
- requirements:
87
- - - ">="
88
- - !ruby/object:Gem::Version
89
- hash: 3
90
- segments:
91
- - 0
92
- version: "0"
63
+ requirements:
64
+ - - ! '>='
65
+ - !ruby/object:Gem::Version
66
+ version: '0'
93
67
  type: :development
94
- name: rcov
95
68
  prerelease: false
96
- version_requirements: *id005
97
- - !ruby/object:Gem::Dependency
98
- requirement: &id006 !ruby/object:Gem::Requirement
69
+ version_requirements: *2158604020
70
+ - !ruby/object:Gem::Dependency
71
+ name: br-cpf
72
+ requirement: &2158603420 !ruby/object:Gem::Requirement
99
73
  none: false
100
- requirements:
101
- - - ">="
102
- - !ruby/object:Gem::Version
103
- hash: 3
104
- segments:
105
- - 0
106
- version: "0"
74
+ requirements:
75
+ - - ! '>='
76
+ - !ruby/object:Gem::Version
77
+ version: '0'
107
78
  type: :development
108
- name: br-cpf
109
79
  prerelease: false
110
- version_requirements: *id006
111
- - !ruby/object:Gem::Dependency
112
- requirement: &id007 !ruby/object:Gem::Requirement
80
+ version_requirements: *2158603420
81
+ - !ruby/object:Gem::Dependency
82
+ name: br-cnpj
83
+ requirement: &2158602820 !ruby/object:Gem::Requirement
113
84
  none: false
114
- requirements:
115
- - - ">="
116
- - !ruby/object:Gem::Version
117
- hash: 3
118
- segments:
119
- - 0
120
- version: "0"
85
+ requirements:
86
+ - - ! '>='
87
+ - !ruby/object:Gem::Version
88
+ version: '0'
121
89
  type: :development
122
- name: br-cnpj
123
90
  prerelease: false
124
- version_requirements: *id007
125
- description: "Generates brazilian CPF and CNPJ numbers for use in testing. Great to be used alongside Faker and won't clutter your namespace. "
91
+ version_requirements: *2158602820
92
+ description: ! 'Generates brazilian CPF and CNPJ numbers for use in testing. Great
93
+ to be used alongside Faker and won''t clutter your namespace. '
126
94
  email: berpasan@gmail.com
127
- executables:
95
+ executables:
128
96
  - cnpj
129
97
  - cpf
130
98
  extensions: []
131
-
132
- extra_rdoc_files:
99
+ extra_rdoc_files:
133
100
  - LICENSE.txt
134
101
  - README.rdoc
135
- files:
102
+ files:
136
103
  - .document
137
104
  - .rspec
138
105
  - Gemfile
@@ -152,39 +119,34 @@ files:
152
119
  - spec/spec_helper.rb
153
120
  has_rdoc: true
154
121
  homepage: http://github.com/bernardo/cpf_faker
155
- licenses:
122
+ licenses:
156
123
  - MIT
157
124
  post_install_message:
158
125
  rdoc_options: []
159
-
160
- require_paths:
126
+ require_paths:
161
127
  - lib
162
- required_ruby_version: !ruby/object:Gem::Requirement
128
+ required_ruby_version: !ruby/object:Gem::Requirement
163
129
  none: false
164
- requirements:
165
- - - ">="
166
- - !ruby/object:Gem::Version
167
- hash: 3
168
- segments:
130
+ requirements:
131
+ - - ! '>='
132
+ - !ruby/object:Gem::Version
133
+ version: '0'
134
+ segments:
169
135
  - 0
170
- version: "0"
171
- required_rubygems_version: !ruby/object:Gem::Requirement
136
+ hash: 3156619073352718163
137
+ required_rubygems_version: !ruby/object:Gem::Requirement
172
138
  none: false
173
- requirements:
174
- - - ">="
175
- - !ruby/object:Gem::Version
176
- hash: 3
177
- segments:
178
- - 0
179
- version: "0"
139
+ requirements:
140
+ - - ! '>='
141
+ - !ruby/object:Gem::Version
142
+ version: '0'
180
143
  requirements: []
181
-
182
144
  rubyforge_project:
183
- rubygems_version: 1.3.7
145
+ rubygems_version: 1.6.2
184
146
  signing_key:
185
147
  specification_version: 3
186
148
  summary: Generate fake brasilian CPF and CNPJ numbers for test purposes
187
- test_files:
149
+ test_files:
188
150
  - spec/cnpj_faker_spec.rb
189
151
  - spec/cpf_faker_spec.rb
190
152
  - spec/spec_helper.rb