ffaker 1.23.0 → 1.24.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NDJlYTY2NjI5NzI1ZWY2ZmI2N2FlMmY4MWU4YTBmZWMxOTlkZGQ3MA==
4
+ MTcyMTBmNWNkOGY2MjhiOGZmYmIzNjlhNGY0ODUwZWZjNjA4YWI1OA==
5
5
  data.tar.gz: !binary |-
6
- MGMwOThhODk4YTlhOWM1NmJkMGJiN2I1Y2ZiMmFjN2I5MmY4NjVjYg==
6
+ YjNmZDVkN2M2MGYyNzNmNzY2Zjg3YmNiYTU1MjBhNTM0YWFhZWRlYg==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- OTVmNWU4MWEzMzc3N2JlZWU4Yjc0ZDIwMGQzNTBjODE2ZTc2NDg2MTdjMWUw
10
- Y2UxYmY1YTZjZjRlZjUwMzhlZmY2Y2JhNDFkOWVlNmRiZjlhMTJiMmQ4MWIy
11
- NzMxZmExMmZlNjVkMDJjNmI4ODlhMTQ2Njg1ZWI5NmQ2MmMwNTI=
9
+ MWUzMGUxOTJjZGZhZWE3YjVlYzJjMzc0MmNmZWFlOTRhNDdjNmQ4MzQ1MGM4
10
+ M2VhNTEyZDU4MmQ1NGM0MzIxOGVlZDZjMmFiMDI4NTY2YjIxN2NkM2VjODBk
11
+ MzMyM2ExZGIyODc3NzJiM2NhOGU0ZjNlYjRkMTQ2MTE5OGExMzI=
12
12
  data.tar.gz: !binary |-
13
- YmFhNGUxMzQ5OGRhZDQ1Yzg2OTJkZDdkODExM2Y4ZDRlNzE5MmJlNjk0NDlh
14
- MTA5ZDk1NmIzNjk1OWZjMTc1NjIwZWJmZWNiZDNkNDE5MjAzY2NlNzlhNDMz
15
- ZWI1M2RjNjM2NDRlNjRhMmI5OWUyODU3MTM1Yzk4NGY4OTc2ZWM=
13
+ MjdlODA4YzdlNmVmOWI4ZmFjM2FlZDk4ZDk4Y2I1ZmU1NDg4YjU5MDhiYzY4
14
+ N2ZkZjQ1ZTBiMjg2NzNjMDNhNjgzYzE2YTU3OGIzNWUzZDA2OTgwMDE4NTZj
15
+ ZGM5NjZhMDJlNTBkZGQ3MmM0NjZlNjIxOTI3Y2M0YzFlMWY4ZDI=
data/Changelog.md CHANGED
@@ -1,3 +1,11 @@
1
+ ## 1.24.0
2
+
3
+ API additions
4
+
5
+ ## 1.23.0
6
+
7
+ API additions
8
+
1
9
  ## 1.22.1
2
10
 
3
11
  Bugfixes and minor API additions.
data/ffaker.gemspec CHANGED
@@ -4,8 +4,8 @@ Gem::Specification.new do |s|
4
4
  s.rubygems_version = '1.3.5'
5
5
 
6
6
  s.name = 'ffaker'
7
- s.version = '1.23.0'
8
- s.date = '2014-01-24'
7
+ s.version = '1.24.0'
8
+ s.date = '2014-04-02'
9
9
  s.rubyforge_project = 'ffaker'
10
10
 
11
11
  s.license = 'MIT'
@@ -45,6 +45,7 @@ Gem::Specification.new do |s|
45
45
  lib/ffaker/address_us.rb
46
46
  lib/ffaker/bacon_ipsum.rb
47
47
  lib/ffaker/company.rb
48
+ lib/ffaker/company_it.rb
48
49
  lib/ffaker/company_se.rb
49
50
  lib/ffaker/conference.rb
50
51
  lib/ffaker/data/address/city_suffixes
@@ -93,6 +94,8 @@ Gem::Specification.new do |s|
93
94
  lib/ffaker/data/job/job_prefix
94
95
  lib/ffaker/data/job_fr/job_nouns
95
96
  lib/ffaker/data/job_fr/job_prefixes
97
+ lib/ffaker/data/locale/language
98
+ lib/ffaker/data/locale/language_code
96
99
  lib/ffaker/data/lorem/characters
97
100
  lib/ffaker/data/lorem/words
98
101
  lib/ffaker/data/lorem_ar/words
@@ -137,9 +140,14 @@ Gem::Specification.new do |s|
137
140
  lib/ffaker/data/name_sn/first_names_female
138
141
  lib/ffaker/data/name_sn/first_names_male
139
142
  lib/ffaker/data/name_sn/last_names
143
+ lib/ffaker/data/name_th/first_names
144
+ lib/ffaker/data/name_th/last_names
145
+ lib/ffaker/data/name_th/nick_names
140
146
  lib/ffaker/data/name_vn/first_names
141
147
  lib/ffaker/data/name_vn/last_names
142
148
  lib/ffaker/data/name_vn/middle_names
149
+ lib/ffaker/data/phone_number_it/home_phone_prefixes
150
+ lib/ffaker/data/phone_number_it/mobile_phone_prefixes
143
151
  lib/ffaker/data/phone_number_se/phone_prefix
144
152
  lib/ffaker/data/product/adj
145
153
  lib/ffaker/data/product/b1
@@ -162,6 +170,7 @@ Gem::Specification.new do |s|
162
170
  lib/ffaker/internet_se.rb
163
171
  lib/ffaker/job.rb
164
172
  lib/ffaker/job_fr.rb
173
+ lib/ffaker/locale.rb
165
174
  lib/ffaker/lorem.rb
166
175
  lib/ffaker/lorem_ar.rb
167
176
  lib/ffaker/lorem_cn.rb
@@ -184,6 +193,7 @@ Gem::Specification.new do |s|
184
193
  lib/ffaker/name_ru.rb
185
194
  lib/ffaker/name_se.rb
186
195
  lib/ffaker/name_sn.rb
196
+ lib/ffaker/name_th.rb
187
197
  lib/ffaker/name_vn.rb
188
198
  lib/ffaker/nato_alphabet.rb
189
199
  lib/ffaker/phone_number.rb
@@ -191,6 +201,7 @@ Gem::Specification.new do |s|
191
201
  lib/ffaker/phone_number_da.rb
192
202
  lib/ffaker/phone_number_de.rb
193
203
  lib/ffaker/phone_number_fr.rb
204
+ lib/ffaker/phone_number_it.rb
194
205
  lib/ffaker/phone_number_mx.rb
195
206
  lib/ffaker/phone_number_se.rb
196
207
  lib/ffaker/phone_number_sg.rb
@@ -225,6 +236,7 @@ Gem::Specification.new do |s|
225
236
  test/test_array_utils.rb
226
237
  test/test_bacon_ipsum.rb
227
238
  test/test_company.rb
239
+ test/test_company_it.rb
228
240
  test/test_company_se.rb
229
241
  test/test_conference.rb
230
242
  test/test_dizzle_ipsum.rb
@@ -264,6 +276,7 @@ Gem::Specification.new do |s|
264
276
  test/test_name_ru.rb
265
277
  test/test_name_se.rb
266
278
  test/test_name_sn.rb
279
+ test/test_name_th.rb
267
280
  test/test_nato_alphabet.rb
268
281
  test/test_phone_number.rb
269
282
  test/test_phone_number_au.rb
@@ -286,6 +299,6 @@ Gem::Specification.new do |s|
286
299
 
287
300
  s.test_files = s.files.select { |path| path =~ /^test\/test_.*\.rb/ }
288
301
 
289
- s.add_development_dependency 'rake'
302
+ s.add_development_dependency 'rake', '~> 10.1.1'
290
303
  s.add_development_dependency 'test-unit'
291
304
  end
data/lib/ffaker.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  module Faker
2
- VERSION = "1.23.0"
2
+ VERSION = "1.24.0"
3
3
 
4
4
  require 'ffaker/utils/array_utils'
5
5
  require 'ffaker/utils/module_utils'
@@ -27,5 +27,7 @@ module Faker
27
27
  end
28
28
 
29
29
  # Load all constants.
30
- Dir["#{BASE_LIB_PATH}/ffaker/*rb"].sort.each { |f| require f }
30
+ Dir["#{BASE_LIB_PATH}/ffaker/*.rb"].sort.each do |f|
31
+ require "ffaker/#{File.basename(f, '.rb')}"
32
+ end
31
33
  end
@@ -31,8 +31,8 @@ module Faker
31
31
 
32
32
  def street
33
33
  case rand(1)
34
- when 0 then "#{street_prefix} #{Name.name}"
35
- when 1 then "#{street_prefix} #{Name.first_name} #{Name.last_name} #{Name.last_name}"
34
+ when 0 then "#{street_prefix} #{NameBR.name}"
35
+ when 1 then "#{street_prefix} #{NameBR.first_name} #{NameBR.last_name} #{NameBR.last_name}"
36
36
  end
37
37
  end
38
38
 
@@ -0,0 +1,28 @@
1
+ # encoding: utf-8
2
+
3
+ module Faker
4
+ module CompanyIT
5
+ extend ModuleUtils
6
+ extend self
7
+
8
+ def name
9
+ case rand(2)
10
+ when 0 then "#{NameIT.last_name} #{suffix}"
11
+ when 1 then "#{NameIT.last_name} e #{NameIT.last_name} #{suffix}"
12
+ when 2 then "#{prefix} #{NameIT.last_name}"
13
+ end
14
+ end
15
+
16
+ def suffix
17
+ SUFFIXES.rand
18
+ end
19
+
20
+ def prefix
21
+ PREFIXES.rand
22
+ end
23
+
24
+ PREFIXES = k ["Studio Legale", "Studio Tecnico", "Laboratorio"]
25
+ SUFFIXES = k %w(S.p.a. s.r.l. s.n.c. Avvocati Architetti Ingegneri)
26
+
27
+ end
28
+ end
@@ -0,0 +1,136 @@
1
+ Afar
2
+ Abkhazian
3
+ Afrikaans
4
+ Amharic
5
+ Arabic
6
+ Assamese
7
+ Aymara
8
+ Azerbaijani
9
+ Bashkir
10
+ Byelorussian
11
+ Bulgarian
12
+ Bihari
13
+ Bislama
14
+ Bengali
15
+ Tibetan
16
+ Breton
17
+ Catalan
18
+ Corsican
19
+ Czech
20
+ Welsh
21
+ Danish
22
+ German
23
+ Bhutani
24
+ Greek
25
+ English
26
+ Esperanto
27
+ Spanish
28
+ Estonian
29
+ Basque
30
+ Persian
31
+ Finnish
32
+ Fiji
33
+ Faeroese
34
+ French
35
+ Frisian
36
+ Irish
37
+ Gaelic
38
+ Galician
39
+ Guarani
40
+ Gujarati
41
+ Hausa
42
+ Hindi
43
+ Croatian
44
+ Hungarian
45
+ Armenian
46
+ Interlingua
47
+ Interlingue
48
+ Inupiak
49
+ Indonesian
50
+ Icelandic
51
+ Italian
52
+ Hebrew
53
+ Japanese
54
+ Yiddish
55
+ Javanese
56
+ Georgian
57
+ Kazakh
58
+ Greenlandic
59
+ Cambodian
60
+ Kannada
61
+ Korean
62
+ Kashmiri
63
+ Kurdish
64
+ Kirghiz
65
+ Latin
66
+ Lingala
67
+ Laothian
68
+ Lithuanian
69
+ Latvian
70
+ Malagasy
71
+ Maori
72
+ Macedonian
73
+ Malayalam
74
+ Mongolian
75
+ Moldavian
76
+ Marathi
77
+ Malay
78
+ Maltese
79
+ Burmese
80
+ Nauru
81
+ Nepali
82
+ Dutch
83
+ Norwegian
84
+ Occitan
85
+ Oromo
86
+ Oriya
87
+ Punjabi
88
+ Polish
89
+ Pashto
90
+ Portuguese
91
+ Quechua
92
+ Rhaeto
93
+ Kirundi
94
+ Romanian
95
+ Russian
96
+ Kinyarwanda
97
+ Sanskrit
98
+ Sindhi
99
+ Sangro
100
+ Serbo
101
+ Singhalese
102
+ Slovak
103
+ Slovenian
104
+ Samoan
105
+ Shona
106
+ Somali
107
+ Albanian
108
+ Serbian
109
+ Siswati
110
+ Sesotho
111
+ Sudanese
112
+ Swedish
113
+ Swahili
114
+ Tamil
115
+ Tegulu
116
+ Tajik
117
+ Thai
118
+ Tigrinya
119
+ Turkmen
120
+ Tagalog
121
+ Setswana
122
+ Tonga
123
+ Turkish
124
+ Tsonga
125
+ Tatar
126
+ Twi
127
+ Ukrainian
128
+ Urdu
129
+ Uzbek
130
+ Vietnamese
131
+ Volapuk
132
+ Wolof
133
+ Xhosa
134
+ Yoruba
135
+ Chinese
136
+ Zulu
@@ -0,0 +1,136 @@
1
+ AA
2
+ AB
3
+ AF
4
+ AM
5
+ AR
6
+ AS
7
+ AY
8
+ AZ
9
+ BA
10
+ BE
11
+ BG
12
+ BH
13
+ BI
14
+ BN
15
+ BO
16
+ BR
17
+ CA
18
+ CO
19
+ CS
20
+ CY
21
+ DA
22
+ DE
23
+ DZ
24
+ EL
25
+ EN
26
+ EO
27
+ ES
28
+ ET
29
+ EU
30
+ FA
31
+ FI
32
+ FJ
33
+ FO
34
+ FR
35
+ FY
36
+ GA
37
+ GD
38
+ GL
39
+ GN
40
+ GU
41
+ HA
42
+ HI
43
+ HR
44
+ HU
45
+ HY
46
+ IA
47
+ IE
48
+ IK
49
+ IN
50
+ IS
51
+ IT
52
+ IW
53
+ JA
54
+ JI
55
+ JW
56
+ KA
57
+ KK
58
+ KL
59
+ KM
60
+ KN
61
+ KO
62
+ KS
63
+ KU
64
+ KY
65
+ LA
66
+ LN
67
+ LO
68
+ LT
69
+ LV
70
+ MG
71
+ MI
72
+ MK
73
+ ML
74
+ MN
75
+ MO
76
+ MR
77
+ MS
78
+ MT
79
+ MY
80
+ NA
81
+ NE
82
+ NL
83
+ NO
84
+ OC
85
+ OM
86
+ OR
87
+ PA
88
+ PL
89
+ PS
90
+ PT
91
+ QU
92
+ RM
93
+ RN
94
+ RO
95
+ RU
96
+ RW
97
+ SA
98
+ SD
99
+ SG
100
+ SH
101
+ SI
102
+ SK
103
+ SL
104
+ SM
105
+ SN
106
+ SO
107
+ SQ
108
+ SR
109
+ SS
110
+ ST
111
+ SU
112
+ SV
113
+ SW
114
+ TA
115
+ TE
116
+ TG
117
+ TH
118
+ TI
119
+ TK
120
+ TL
121
+ TN
122
+ TO
123
+ TR
124
+ TS
125
+ TT
126
+ TW
127
+ UK
128
+ UR
129
+ UZ
130
+ VI
131
+ VO
132
+ WO
133
+ XH
134
+ YO
135
+ ZH
136
+ ZU