ffaker 2.2.0 → 2.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (320) hide show
  1. checksums.yaml +4 -4
  2. data/Changelog.md +34 -0
  3. data/README.md +4 -0
  4. data/REFERENCE.md +1153 -800
  5. data/Rakefile +23 -24
  6. data/ffaker.gemspec +12 -420
  7. data/lib/ffaker.rb +47 -7
  8. data/lib/ffaker/address.rb +11 -11
  9. data/lib/ffaker/address_au.rb +60 -60
  10. data/lib/ffaker/address_br.rb +5 -5
  11. data/lib/ffaker/address_ca.rb +7 -7
  12. data/lib/ffaker/address_ch.rb +1 -2
  13. data/lib/ffaker/address_ch_de.rb +1 -1
  14. data/lib/ffaker/address_ch_fr.rb +1 -1
  15. data/lib/ffaker/address_ch_it.rb +1 -1
  16. data/lib/ffaker/address_da.rb +5 -5
  17. data/lib/ffaker/address_de.rb +16 -12
  18. data/lib/ffaker/address_fi.rb +7 -8
  19. data/lib/ffaker/address_fr.rb +13 -13
  20. data/lib/ffaker/address_gr.rb +40 -0
  21. data/lib/ffaker/address_in.rb +12 -12
  22. data/lib/ffaker/address_kr.rb +87 -0
  23. data/lib/ffaker/address_mx.rb +409 -409
  24. data/lib/ffaker/address_nl.rb +17 -13
  25. data/lib/ffaker/address_ru.rb +6 -6
  26. data/lib/ffaker/address_se.rb +7 -8
  27. data/lib/ffaker/address_sn.rb +3 -3
  28. data/lib/ffaker/address_ua.rb +8 -8
  29. data/lib/ffaker/address_uk.rb +5 -5
  30. data/lib/ffaker/address_us.rb +9 -9
  31. data/lib/ffaker/airline.rb +16 -0
  32. data/lib/ffaker/avatar.rb +3 -3
  33. data/lib/ffaker/aws.rb +24 -0
  34. data/lib/ffaker/bacon_ipsum.rb +2 -2
  35. data/lib/ffaker/book.rb +45 -0
  36. data/lib/ffaker/boolean.rb +2 -2
  37. data/lib/ffaker/cheesy_lingo.rb +15 -12
  38. data/lib/ffaker/color.rb +54 -1
  39. data/lib/ffaker/color_ua.rb +1 -1
  40. data/lib/ffaker/company.rb +13 -11
  41. data/lib/ffaker/company_cn.rb +23 -0
  42. data/lib/ffaker/company_it.rb +4 -4
  43. data/lib/ffaker/company_se.rb +2 -2
  44. data/lib/ffaker/conference.rb +1 -1
  45. data/lib/ffaker/courses.rb +2 -3
  46. data/lib/ffaker/currency.rb +2 -2
  47. data/lib/ffaker/data/address_gr/city +79 -0
  48. data/lib/ffaker/data/address_gr/region +13 -0
  49. data/lib/ffaker/data/address_gr/street +100 -0
  50. data/lib/ffaker/data/address_kr/boroughs +29 -0
  51. data/lib/ffaker/data/address_kr/cities +51 -0
  52. data/lib/ffaker/data/airline/codes_list +209 -0
  53. data/lib/ffaker/data/airline/names_list +206 -0
  54. data/lib/ffaker/data/aws/ec2_instance_type +59 -0
  55. data/lib/ffaker/data/aws/ec2_reserved_instance_tenancy +3 -0
  56. data/lib/ffaker/data/aws/ec2_reserved_offering_type +6 -0
  57. data/lib/ffaker/data/aws/ec2_reserved_product_description +14 -0
  58. data/lib/ffaker/data/book/adj_and_adv +20 -0
  59. data/lib/ffaker/data/book/genres +369 -0
  60. data/lib/ffaker/data/book/nouns +36 -0
  61. data/lib/ffaker/data/book/prefixes +17 -0
  62. data/lib/ffaker/data/color/names_list +128 -0
  63. data/lib/ffaker/data/education/degree_prefix +274 -0
  64. data/lib/ffaker/data/education/degree_short_prefix +19 -0
  65. data/lib/ffaker/data/job_br/job_nouns +52 -0
  66. data/lib/ffaker/data/job_vn/job_nouns +191 -0
  67. data/lib/ffaker/data/lorem_ja/characters +101 -0
  68. data/lib/ffaker/data/lorem_ja/sentences +30 -0
  69. data/lib/ffaker/data/lorem_ja/sentences_end +21 -0
  70. data/lib/ffaker/data/lorem_ja/words +81 -0
  71. data/lib/ffaker/data/name/first_names_female +4275 -0
  72. data/lib/ffaker/data/name/first_names_male +1219 -0
  73. data/lib/ffaker/data/name_br/first_names_female +1068 -0
  74. data/lib/ffaker/data/name_br/first_names_male +607 -0
  75. data/lib/ffaker/data/name_br/last_names +52 -0
  76. data/lib/ffaker/data/name_gr/female_first_names +80 -0
  77. data/lib/ffaker/data/name_gr/female_last_names +45 -0
  78. data/lib/ffaker/data/name_gr/male_first_names +90 -0
  79. data/lib/ffaker/data/name_gr/male_last_names +57 -0
  80. data/lib/ffaker/data/name_kh/first_names +64 -0
  81. data/lib/ffaker/data/name_kh/last_names +71 -0
  82. data/lib/ffaker/data/name_kh/nick_names +30 -0
  83. data/lib/ffaker/data/name_then/first_names +292 -0
  84. data/lib/ffaker/data/name_then/last_names +63 -0
  85. data/lib/ffaker/data/name_then/nick_names +30 -0
  86. data/lib/ffaker/data/phone_number/phone_calling_code +205 -0
  87. data/lib/ffaker/data/sport/names +57 -24
  88. data/lib/ffaker/data/tweet/hashtag +58 -0
  89. data/lib/ffaker/data/youtube/video_ids +50 -0
  90. data/lib/ffaker/dizzle_ipsum.rb +2 -2
  91. data/lib/ffaker/education.rb +17 -16
  92. data/lib/ffaker/food.rb +5 -6
  93. data/lib/ffaker/gender.rb +4 -4
  94. data/lib/ffaker/gender_br.rb +17 -0
  95. data/lib/ffaker/gender_cn.rb +4 -4
  96. data/lib/ffaker/gender_kr.rb +4 -4
  97. data/lib/ffaker/geolocation.rb +26 -26
  98. data/lib/ffaker/healthcare_ipsum.rb +2 -2
  99. data/lib/ffaker/hipster_ipsum.rb +2 -2
  100. data/lib/ffaker/html_ipsum.rb +101 -81
  101. data/lib/ffaker/identification.rb +4 -4
  102. data/lib/ffaker/identification_br.rb +84 -0
  103. data/lib/ffaker/identification_es.rb +2 -2
  104. data/lib/ffaker/identification_es_cl.rb +7 -5
  105. data/lib/ffaker/identification_es_co.rb +9 -10
  106. data/lib/ffaker/identification_kr.rb +3 -4
  107. data/lib/ffaker/identification_mx.rb +27 -11
  108. data/lib/ffaker/internet.rb +26 -23
  109. data/lib/ffaker/internet_se.rb +21 -21
  110. data/lib/ffaker/job.rb +1 -1
  111. data/lib/ffaker/job_br.rb +12 -0
  112. data/lib/ffaker/job_cn.rb +1 -1
  113. data/lib/ffaker/job_fr.rb +3 -3
  114. data/lib/ffaker/job_ja.rb +2 -1
  115. data/lib/ffaker/job_kr.rb +1 -1
  116. data/lib/ffaker/job_vn.rb +13 -0
  117. data/lib/ffaker/locale.rb +2 -3
  118. data/lib/ffaker/lorem.rb +5 -5
  119. data/lib/ffaker/lorem_ar.rb +4 -4
  120. data/lib/ffaker/lorem_cn.rb +3 -3
  121. data/lib/ffaker/lorem_fr.rb +4 -4
  122. data/lib/ffaker/lorem_ja.rb +40 -0
  123. data/lib/ffaker/lorem_kr.rb +4 -4
  124. data/lib/ffaker/lorem_ua.rb +8 -11
  125. data/lib/ffaker/movie.rb +18 -20
  126. data/lib/ffaker/music.rb +4 -4
  127. data/lib/ffaker/name.rb +100 -11
  128. data/lib/ffaker/name_br.rb +37 -6
  129. data/lib/ffaker/name_cn.rb +2 -2
  130. data/lib/ffaker/name_cs.rb +10 -10
  131. data/lib/ffaker/name_da.rb +6 -6
  132. data/lib/ffaker/name_de.rb +5 -5
  133. data/lib/ffaker/name_fr.rb +4 -4
  134. data/lib/ffaker/name_ga.rb +4 -5
  135. data/lib/ffaker/name_gr.rb +60 -0
  136. data/lib/ffaker/name_it.rb +4 -4
  137. data/lib/ffaker/name_ja.rb +3 -3
  138. data/lib/ffaker/name_kh.rb +22 -0
  139. data/lib/ffaker/name_kr.rb +3 -3
  140. data/lib/ffaker/name_mx.rb +14 -14
  141. data/lib/ffaker/name_nb.rb +5 -5
  142. data/lib/ffaker/name_nl.rb +7 -7
  143. data/lib/ffaker/name_ph.rb +2 -2
  144. data/lib/ffaker/name_ru.rb +7 -8
  145. data/lib/ffaker/name_se.rb +5 -5
  146. data/lib/ffaker/name_sn.rb +23 -23
  147. data/lib/ffaker/name_th.rb +3 -3
  148. data/lib/ffaker/name_th_en.rb +26 -0
  149. data/lib/ffaker/name_ua.rb +8 -8
  150. data/lib/ffaker/name_vn.rb +4 -4
  151. data/lib/ffaker/nato_alphabet.rb +10 -10
  152. data/lib/ffaker/phone_number.rb +31 -21
  153. data/lib/ffaker/phone_number_au.rb +3 -3
  154. data/lib/ffaker/phone_number_br.rb +9 -8
  155. data/lib/ffaker/phone_number_ch.rb +7 -7
  156. data/lib/ffaker/phone_number_cu.rb +5 -5
  157. data/lib/ffaker/phone_number_de.rb +1 -1
  158. data/lib/ffaker/phone_number_fr.rb +4 -4
  159. data/lib/ffaker/phone_number_it.rb +2 -2
  160. data/lib/ffaker/phone_number_kr.rb +4 -4
  161. data/lib/ffaker/phone_number_mx.rb +4 -5
  162. data/lib/ffaker/phone_number_nl.rb +13 -13
  163. data/lib/ffaker/phone_number_se.rb +18 -19
  164. data/lib/ffaker/phone_number_sg.rb +8 -8
  165. data/lib/ffaker/phone_number_sn.rb +2 -2
  166. data/lib/ffaker/product.rb +18 -14
  167. data/lib/ffaker/skill.rb +3 -3
  168. data/lib/ffaker/sport.rb +1 -1
  169. data/lib/ffaker/ssn_se.rb +19 -20
  170. data/lib/ffaker/string.rb +21 -23
  171. data/lib/ffaker/time.rb +19 -7
  172. data/lib/ffaker/tweet.rb +59 -0
  173. data/lib/ffaker/unit.rb +12 -12
  174. data/lib/ffaker/unit_english.rb +34 -35
  175. data/lib/ffaker/unit_metric.rb +25 -25
  176. data/lib/ffaker/utils/array_utils.rb +12 -9
  177. data/lib/ffaker/utils/module_utils.rb +9 -6
  178. data/lib/ffaker/utils/random_utils.rb +33 -0
  179. data/lib/ffaker/vehicle.rb +21 -21
  180. data/lib/ffaker/venue.rb +1 -1
  181. data/lib/ffaker/youtube.rb +24 -0
  182. data/scripts/benchmark.rb +3 -3
  183. data/scripts/reference.rb +26 -23
  184. data/test/helper.rb +50 -0
  185. data/test/test_address.rb +40 -21
  186. data/test/test_address_au.rb +19 -9
  187. data/test/test_address_br.rb +9 -2
  188. data/test/test_address_ca.rb +7 -0
  189. data/test/test_address_ch.rb +6 -2
  190. data/test/test_address_ch_de.rb +7 -3
  191. data/test/test_address_ch_fr.rb +7 -3
  192. data/test/test_address_ch_it.rb +5 -1
  193. data/test/test_address_da.rb +18 -9
  194. data/test/test_address_de.rb +12 -5
  195. data/test/test_address_fi.rb +10 -3
  196. data/test/test_address_fr.rb +13 -0
  197. data/test/test_address_gr.rb +43 -0
  198. data/test/test_address_in.rb +20 -12
  199. data/test/test_address_kr.rb +14 -0
  200. data/test/test_address_mx.rb +12 -5
  201. data/test/test_address_nl.rb +11 -5
  202. data/test/test_address_ru.rb +11 -5
  203. data/test/test_address_se.rb +9 -3
  204. data/test/test_address_sn.rb +7 -1
  205. data/test/test_address_ua.rb +17 -10
  206. data/test/test_address_uk.rb +11 -3
  207. data/test/test_address_us.rb +15 -6
  208. data/test/test_airline.rb +17 -0
  209. data/test/test_array_utils.rb +51 -3
  210. data/test/test_avatar.rb +5 -1
  211. data/test/test_aws.rb +25 -0
  212. data/test/test_bacon_ipsum.rb +12 -6
  213. data/test/test_book.rb +41 -0
  214. data/test/test_boolean.rb +4 -0
  215. data/test/test_cheesy_lingo.rb +14 -10
  216. data/test/test_color.rb +126 -1
  217. data/test/test_color_ua.rb +5 -1
  218. data/test/test_company.rb +7 -0
  219. data/test/test_company_cn.rb +24 -0
  220. data/test/test_company_it.rb +7 -1
  221. data/test/test_company_se.rb +6 -0
  222. data/test/test_conference.rb +5 -2
  223. data/test/test_course_mathematiques.rb +5 -1
  224. data/test/test_course_philosophie.rb +5 -1
  225. data/test/test_currency.rb +12 -0
  226. data/test/test_dizzle_ipsum.rb +12 -6
  227. data/test/test_education.rb +9 -2
  228. data/test/test_faker.rb +8 -1
  229. data/test/test_food.rb +11 -4
  230. data/test/test_gender.rb +5 -1
  231. data/test/test_gender_br.rb +18 -0
  232. data/test/test_gender_cn.rb +5 -2
  233. data/test/test_gender_kr.rb +7 -3
  234. data/test/test_geolocation.rb +11 -8
  235. data/test/test_guid.rb +6 -1
  236. data/test/test_healthcare_ipsum.rb +13 -6
  237. data/test/test_hipster_ipsum.rb +13 -6
  238. data/test/test_html_ipsum.rb +28 -20
  239. data/test/test_identification.rb +9 -2
  240. data/test/test_identification_br.rb +46 -0
  241. data/test/test_identification_co.rb +7 -0
  242. data/test/test_identification_es.rb +5 -1
  243. data/test/test_identification_es_cl.rb +5 -1
  244. data/test/test_identification_es_mx.rb +7 -2
  245. data/test/test_identification_kr.rb +4 -0
  246. data/test/test_internet.rb +36 -5
  247. data/test/test_internet_se.rb +12 -4
  248. data/test/test_job.rb +4 -0
  249. data/test/test_job_br.rb +17 -0
  250. data/test/test_job_cn.rb +4 -0
  251. data/test/test_job_fr.rb +4 -0
  252. data/test/test_job_ja.rb +4 -0
  253. data/test/test_job_kr.rb +4 -0
  254. data/test/test_job_vn.rb +22 -0
  255. data/test/test_locale.rb +10 -4
  256. data/test/test_lorem.rb +18 -11
  257. data/test/test_lorem_ar.rb +16 -8
  258. data/test/test_lorem_cn.rb +9 -2
  259. data/test/test_lorem_fr.rb +16 -8
  260. data/test/test_lorem_ja.rb +81 -0
  261. data/test/test_lorem_kr.rb +17 -8
  262. data/test/test_lorem_ua.rb +15 -8
  263. data/test/test_module_utils.rb +2 -2
  264. data/test/test_movie.rb +5 -1
  265. data/test/test_music.rb +11 -4
  266. data/test/test_name.rb +114 -1
  267. data/test/test_name_br.rb +41 -2
  268. data/test/test_name_cn.rb +7 -0
  269. data/test/test_name_cs.rb +7 -0
  270. data/test/test_name_da.rb +13 -6
  271. data/test/test_name_de.rb +4 -0
  272. data/test/test_name_fr.rb +7 -0
  273. data/test/test_name_ga.rb +7 -0
  274. data/test/test_name_gr.rb +70 -0
  275. data/test/test_name_it.rb +7 -0
  276. data/test/test_name_ja.rb +7 -0
  277. data/test/test_name_kh.rb +32 -0
  278. data/test/test_name_kr.rb +7 -0
  279. data/test/test_name_mx.rb +9 -0
  280. data/test/test_name_nb.rb +8 -0
  281. data/test/test_name_nl.rb +4 -0
  282. data/test/test_name_ph.rb +7 -0
  283. data/test/test_name_ru.rb +10 -3
  284. data/test/test_name_se.rb +12 -4
  285. data/test/test_name_sn.rb +8 -0
  286. data/test/test_name_th.rb +7 -0
  287. data/test/test_name_th_en.rb +35 -0
  288. data/test/test_name_ua.rb +26 -17
  289. data/test/test_name_vn.rb +42 -0
  290. data/test/test_nato_alphabet.rb +15 -4
  291. data/test/test_phone_number.rb +24 -6
  292. data/test/test_phone_number_au.rb +17 -6
  293. data/test/test_phone_number_br.rb +22 -13
  294. data/test/test_phone_number_cu.rb +29 -18
  295. data/test/test_phone_number_da.rb +16 -7
  296. data/test/test_phone_number_de.rb +17 -9
  297. data/test/test_phone_number_kr.rb +9 -0
  298. data/test/test_phone_number_mx.rb +16 -8
  299. data/test/test_phone_number_nl.rb +9 -2
  300. data/test/test_phone_number_se.rb +12 -7
  301. data/test/test_phone_number_sg.rb +17 -9
  302. data/test/test_phone_number_sn.rb +12 -4
  303. data/test/test_products.rb +22 -0
  304. data/test/test_skill.rb +8 -2
  305. data/test/test_sports.rb +4 -0
  306. data/test/test_ssn.rb +3 -1
  307. data/test/test_ssn_mx.rb +6 -1
  308. data/test/test_ssn_se.rb +3 -0
  309. data/test/test_string.rb +28 -1
  310. data/test/test_time.rb +33 -2
  311. data/test/test_tweet.rb +59 -0
  312. data/test/test_units.rb +7 -0
  313. data/test/test_units_english.rb +9 -0
  314. data/test/test_units_metric.rb +9 -0
  315. data/test/test_vehicle.rb +24 -15
  316. data/test/test_venue.rb +5 -1
  317. data/test/test_youtube.rb +28 -0
  318. metadata +101 -5
  319. data/lib/ffaker/data/name/first_names +0 -3008
  320. data/lib/ffaker/data/name_br/first_names +0 -91
data/Rakefile CHANGED
@@ -2,12 +2,11 @@ require 'rubygems'
2
2
  require 'rake'
3
3
  require 'date'
4
4
 
5
- require "test/unit/testsuite"
5
+ require 'test/unit/testsuite'
6
6
 
7
7
  module Test
8
8
  module Unit
9
9
  class TestSuite
10
-
11
10
  def run(result, &progress_block)
12
11
  yield(STARTED, name)
13
12
  run_startup(result)
@@ -54,7 +53,7 @@ def gem_file
54
53
  end
55
54
 
56
55
  def replace_header(head, header_name)
57
- head.sub!(/(\.#{header_name}\s*= ').*'/) { "#{$1}#{send(header_name)}'"}
56
+ head.sub!(/(\.#{header_name}\s*= ').*'/) { "#{Regexp.last_match(1)}#{send(header_name)}'" }
58
57
  end
59
58
 
60
59
  #############################################################################
@@ -65,12 +64,12 @@ end
65
64
 
66
65
  require 'rake/testtask'
67
66
  Rake::TestTask.new do |t|
68
- t.libs << "test/" << "lib/"
67
+ t.libs << 'test/' << 'lib/'
69
68
  t.test_files = FileList['test/test*.rb']
70
69
  t.verbose = true
71
70
  end
72
71
 
73
- task :default => :test
72
+ task default: :test
74
73
 
75
74
  #############################################################################
76
75
  #
@@ -83,7 +82,7 @@ begin
83
82
  YARD::Rake::YardocTask.new
84
83
  rescue LoadError
85
84
  task :yardoc do
86
- abort "YARD is not available. In order to run yardoc, you must: sudo gem install yard"
85
+ abort 'YARD is not available. In order to run yardoc, you must: sudo gem install yard'
87
86
  end
88
87
  end
89
88
 
@@ -93,25 +92,25 @@ end
93
92
  #
94
93
  #############################################################################
95
94
 
96
- task :release => :build do
95
+ task release: :build do
97
96
  unless `git branch` =~ /^\* master$/
98
- puts "You must be on the master branch to release!"
97
+ puts 'You must be on the master branch to release!'
99
98
  exit!
100
99
  end
101
100
  sh "git commit --allow-empty -a -m 'Release #{version}'"
102
101
  sh "git tag v#{version}"
103
- sh "git push origin master"
104
- sh "git push --tags"
102
+ sh 'git push origin master'
103
+ sh 'git push --tags'
105
104
  sh "gem push pkg/#{name}-#{version}.gem"
106
105
  end
107
106
 
108
- task :build => [:gemspec, :reference] do
109
- sh "mkdir -p pkg"
107
+ task build: [:gemspec, :reference] do
108
+ sh 'mkdir -p pkg'
110
109
  sh "gem build #{gemspec_file}"
111
110
  sh "mv #{gem_file} pkg"
112
111
  end
113
112
 
114
- task :gemspec => :validate do
113
+ task gemspec: :validate do
115
114
  # read spec file and split out manifest section
116
115
  spec = File.read(gemspec_file)
117
116
  head, manifest, tail = spec.split(" # = MANIFEST =\n")
@@ -120,17 +119,17 @@ task :gemspec => :validate do
120
119
  replace_header(head, :name)
121
120
  replace_header(head, :version)
122
121
  replace_header(head, :date)
123
- #comment this out if your rubyforge_project has a different name
122
+ # comment this out if your rubyforge_project has a different name
124
123
  replace_header(head, :rubyforge_project)
125
124
 
126
125
  # determine file list from git ls-files
127
- files = `git ls-files`.
128
- split("\n").
129
- sort.
130
- reject { |file| file =~ /^\./ }.
131
- reject { |file| file =~ /^(rdoc|pkg)/ }.
132
- map { |file| " #{file}" }.
133
- join("\n")
126
+ files = `git ls-files`
127
+ .split("\n")
128
+ .sort
129
+ .reject { |file| file =~ /^\./ }
130
+ .reject { |file| file =~ /^(rdoc|pkg)/ }
131
+ .map { |file| " #{file}" }
132
+ .join("\n")
134
133
 
135
134
  # piece file back together and write
136
135
  manifest = " s.files = %w[\n#{files}\n ]\n"
@@ -146,12 +145,12 @@ task :validate do
146
145
  exit!
147
146
  end
148
147
  unless Dir['VERSION*'].empty?
149
- puts "A `VERSION` file at root level violates Gem best practices."
148
+ puts 'A `VERSION` file at root level violates Gem best practices.'
150
149
  exit!
151
150
  end
152
151
  end
153
152
 
154
- desc "Creates REFERENCE.md"
153
+ desc 'Creates REFERENCE.md'
155
154
  task :reference do
156
- system "ruby ./scripts/reference.rb > REFERENCE.md"
155
+ system 'ruby ./scripts/reference.rb > REFERENCE.md'
157
156
  end
@@ -1,33 +1,33 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.specification_version = 2 if s.respond_to? :specification_version=
3
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
3
+ s.required_rubygems_version = Gem::Requirement.new('>= 0') if s.respond_to? :required_rubygems_version=
4
4
  s.rubygems_version = '1.3.5'
5
5
 
6
6
  s.name = 'ffaker'
7
- s.version = '2.2.0'
8
- s.date = '2016-02-01'
7
+ s.version = '2.3.0'
8
+ s.date = '2016-11-13'
9
9
  s.rubyforge_project = 'ffaker'
10
10
  s.required_ruby_version = '>= 1.9'
11
11
 
12
12
  s.license = 'MIT'
13
13
 
14
- s.summary = "Ffaker generates dummy data."
15
- s.description = "Ffaker generates dummy data."
14
+ s.summary = 'Ffaker generates dummy data.'
15
+ s.description = 'Ffaker generates dummy data.'
16
16
 
17
- s.authors = [
17
+ s.authors = [
18
18
  'https://github.com/ffaker/ffaker/graphs/contributors',
19
19
  'Emmanuel Oga'
20
20
  ]
21
21
  s.email = 'EmmanuelOga@gmail.com'
22
22
  s.homepage = 'http://github.com/ffaker/ffaker'
23
23
 
24
- s.require_paths = %w[lib]
24
+ s.require_paths = %w(lib)
25
25
 
26
- s.rdoc_options = ["--charset=UTF-8"]
27
- s.extra_rdoc_files = %w[README.md LICENSE Changelog.md]
26
+ s.rdoc_options = ['--charset=UTF-8']
27
+ s.extra_rdoc_files = %w(README.md LICENSE Changelog.md)
28
28
 
29
29
  # = MANIFEST =
30
- s.files = %w[
30
+ s.files = %w(
31
31
  Changelog.md
32
32
  Gemfile
33
33
  LICENSE
@@ -35,418 +35,10 @@ Gem::Specification.new do |s|
35
35
  REFERENCE.md
36
36
  Rakefile
37
37
  ffaker.gemspec
38
- lib/ffaker.rb
39
- lib/ffaker/address.rb
40
- lib/ffaker/address_au.rb
41
- lib/ffaker/address_br.rb
42
- lib/ffaker/address_ca.rb
43
- lib/ffaker/address_ch.rb
44
- lib/ffaker/address_ch_de.rb
45
- lib/ffaker/address_ch_fr.rb
46
- lib/ffaker/address_ch_it.rb
47
- lib/ffaker/address_da.rb
48
- lib/ffaker/address_de.rb
49
- lib/ffaker/address_fi.rb
50
- lib/ffaker/address_fr.rb
51
- lib/ffaker/address_in.rb
52
- lib/ffaker/address_mx.rb
53
- lib/ffaker/address_nl.rb
54
- lib/ffaker/address_ru.rb
55
- lib/ffaker/address_se.rb
56
- lib/ffaker/address_sn.rb
57
- lib/ffaker/address_ua.rb
58
- lib/ffaker/address_uk.rb
59
- lib/ffaker/address_us.rb
60
- lib/ffaker/avatar.rb
61
- lib/ffaker/bacon_ipsum.rb
62
- lib/ffaker/boolean.rb
63
- lib/ffaker/cheesy_lingo.rb
64
- lib/ffaker/color.rb
65
- lib/ffaker/color_ua.rb
66
- lib/ffaker/company.rb
67
- lib/ffaker/company_it.rb
68
- lib/ffaker/company_se.rb
69
- lib/ffaker/conference.rb
70
- lib/ffaker/courses.rb
71
- lib/ffaker/currency.rb
72
- lib/ffaker/data/address/city_suffixes
73
- lib/ffaker/data/address/country
74
- lib/ffaker/data/address/country_code
75
- lib/ffaker/data/address/neighborhood
76
- lib/ffaker/data/address/street_suffix
77
- lib/ffaker/data/address/time_zone
78
- lib/ffaker/data/address_br/city
79
- lib/ffaker/data/address_br/state
80
- lib/ffaker/data/address_br/state_abbr
81
- lib/ffaker/data/address_ca/city
82
- lib/ffaker/data/address_ca/province
83
- lib/ffaker/data/address_ch/canton_abbr
84
- lib/ffaker/data/address_chde/canton
85
- lib/ffaker/data/address_chfr/canton
86
- lib/ffaker/data/address_chit/canton
87
- lib/ffaker/data/address_da/city
88
- lib/ffaker/data/address_da/kommune
89
- lib/ffaker/data/address_da/street
90
- lib/ffaker/data/address_de/city
91
- lib/ffaker/data/address_de/state
92
- lib/ffaker/data/address_fi/city
93
- lib/ffaker/data/address_fi/countries
94
- lib/ffaker/data/address_fi/street
95
- lib/ffaker/data/address_fr/city
96
- lib/ffaker/data/address_in/state
97
- lib/ffaker/data/address_in/state_abbr
98
- lib/ffaker/data/address_in/union_territory
99
- lib/ffaker/data/address_in/union_territory_abbr
100
- lib/ffaker/data/address_mx/state
101
- lib/ffaker/data/address_mx/state_abbr
102
- lib/ffaker/data/address_nl/city
103
- lib/ffaker/data/address_nl/province
104
- lib/ffaker/data/address_ru/city
105
- lib/ffaker/data/address_ru/province
106
- lib/ffaker/data/address_ru/street
107
- lib/ffaker/data/address_se/city
108
- lib/ffaker/data/address_se/countries
109
- lib/ffaker/data/address_se/street
110
- lib/ffaker/data/address_sn/arrondissements
111
- lib/ffaker/data/address_sn/departements
112
- lib/ffaker/data/address_sn/regions
113
- lib/ffaker/data/address_ua/city
114
- lib/ffaker/data/address_ua/country
115
- lib/ffaker/data/address_ua/province
116
- lib/ffaker/data/address_ua/street
117
- lib/ffaker/data/address_uk/county
118
- lib/ffaker/data/address_us/state
119
- lib/ffaker/data/address_us/state_abbr
120
- lib/ffaker/data/address_us/state_and_territories_abbr
121
- lib/ffaker/data/bacon_ipsum/bacon_words
122
- lib/ffaker/data/cheesy_lingo/cheesy_phrases
123
- lib/ffaker/data/cheesy_lingo/cheesy_words
124
- lib/ffaker/data/color/names_list
125
- lib/ffaker/data/color_ua/names_list
126
- lib/ffaker/data/company/bs_mid
127
- lib/ffaker/data/company/bs_pos
128
- lib/ffaker/data/company/bs_pre
129
- lib/ffaker/data/company/catch_mid
130
- lib/ffaker/data/company/catch_pos
131
- lib/ffaker/data/company/catch_pre
132
- lib/ffaker/data/company/position_areas
133
- lib/ffaker/data/conference/conference_list
134
- lib/ffaker/data/currency/currency_code
135
- lib/ffaker/data/currency/currency_name
136
- lib/ffaker/data/dizzle_ipsum/dizzle_words
137
- lib/ffaker/data/education/major_noun
138
- lib/ffaker/data/education/school_suffix
139
- lib/ffaker/data/food/fruit
140
- lib/ffaker/data/food/herb_spice
141
- lib/ffaker/data/food/meat
142
- lib/ffaker/data/food/vegetable
143
- lib/ffaker/data/healthcare_ipsum/healthcare_words
144
- lib/ffaker/data/hipster_ipsum/hipster_words
145
- lib/ffaker/data/identification_mx/estados_curp
146
- lib/ffaker/data/job/job_adj
147
- lib/ffaker/data/job/job_noun
148
- lib/ffaker/data/job/job_prefix
149
- lib/ffaker/data/job_cn/job_nouns
150
- lib/ffaker/data/job_fr/job_nouns
151
- lib/ffaker/data/job_fr/job_prefixes
152
- lib/ffaker/data/job_ja/job_nouns
153
- lib/ffaker/data/job_kr/job_nouns
154
- lib/ffaker/data/locale/language
155
- lib/ffaker/data/locale/language_code
156
- lib/ffaker/data/lorem/characters
157
- lib/ffaker/data/lorem/words
158
- lib/ffaker/data/lorem_ar/words
159
- lib/ffaker/data/lorem_cn/words
160
- lib/ffaker/data/lorem_fr/words
161
- lib/ffaker/data/lorem_kr/words
162
- lib/ffaker/data/lorem_ua/capital_chars
163
- lib/ffaker/data/lorem_ua/chars
164
- lib/ffaker/data/lorem_ua/words
165
- lib/ffaker/data/mathematiques/lessons
166
- lib/ffaker/data/movie/adj_and_adv
167
- lib/ffaker/data/movie/nouns
168
- lib/ffaker/data/movie/prefixes
169
- lib/ffaker/data/music/albums
170
- lib/ffaker/data/music/artists
171
- lib/ffaker/data/music/genres
172
- lib/ffaker/data/music/songs
173
- lib/ffaker/data/name/first_names
174
- lib/ffaker/data/name/last_names
175
- lib/ffaker/data/name_br/first_names
176
- lib/ffaker/data/name_br/last_names
177
- lib/ffaker/data/name_cn/first_names
178
- lib/ffaker/data/name_cn/last_names
179
- lib/ffaker/data/name_cs/prefixes
180
- lib/ffaker/data/name_da/female_first_names
181
- lib/ffaker/data/name_da/last_names
182
- lib/ffaker/data/name_da/male_first_names
183
- lib/ffaker/data/name_de/first_names
184
- lib/ffaker/data/name_de/last_names
185
- lib/ffaker/data/name_fr/first_names
186
- lib/ffaker/data/name_fr/last_names
187
- lib/ffaker/data/name_ga/first_names_female
188
- lib/ffaker/data/name_ga/first_names_male
189
- lib/ffaker/data/name_it/first_names
190
- lib/ffaker/data/name_it/last_names
191
- lib/ffaker/data/name_ja/first_names
192
- lib/ffaker/data/name_ja/last_names
193
- lib/ffaker/data/name_kr/first_names
194
- lib/ffaker/data/name_kr/last_names
195
- lib/ffaker/data/name_mx/female_first_names
196
- lib/ffaker/data/name_mx/last_names
197
- lib/ffaker/data/name_mx/male_first_names
198
- lib/ffaker/data/name_nb/first_names_female
199
- lib/ffaker/data/name_nb/first_names_male
200
- lib/ffaker/data/name_nb/last_names
201
- lib/ffaker/data/name_nl/first_names_female
202
- lib/ffaker/data/name_nl/first_names_male
203
- lib/ffaker/data/name_nl/last_names
204
- lib/ffaker/data/name_ph/autochthonous_surnames
205
- lib/ffaker/data/name_ph/spanish_surnames
206
- lib/ffaker/data/name_se/first_names_female
207
- lib/ffaker/data/name_se/first_names_male
208
- lib/ffaker/data/name_se/last_names
209
- lib/ffaker/data/name_sn/first_names_female
210
- lib/ffaker/data/name_sn/first_names_male
211
- lib/ffaker/data/name_sn/last_names
212
- lib/ffaker/data/name_th/first_names
213
- lib/ffaker/data/name_th/last_names
214
- lib/ffaker/data/name_th/nick_names
215
- lib/ffaker/data/name_ua/first_names_female
216
- lib/ffaker/data/name_ua/first_names_male
217
- lib/ffaker/data/name_ua/last_names_female
218
- lib/ffaker/data/name_ua/last_names_male
219
- lib/ffaker/data/name_ua/middle_names_female
220
- lib/ffaker/data/name_ua/middle_names_male
221
- lib/ffaker/data/name_vn/first_names
222
- lib/ffaker/data/name_vn/last_names
223
- lib/ffaker/data/name_vn/middle_names
224
- lib/ffaker/data/philosophie/lessons
225
- lib/ffaker/data/phone_number_it/home_phone_prefixes
226
- lib/ffaker/data/phone_number_it/mobile_phone_prefixes
227
- lib/ffaker/data/phone_number_se/phone_prefix
228
- lib/ffaker/data/product/adj
229
- lib/ffaker/data/product/b1
230
- lib/ffaker/data/product/noun
231
- lib/ffaker/data/skill/specialty_end
232
- lib/ffaker/data/skill/specialty_start
233
- lib/ffaker/data/skill/tech_skills
234
- lib/ffaker/data/sport/names
235
- lib/ffaker/data/vehicle/displacements_list
236
- lib/ffaker/data/vehicle/fuel_types_list
237
- lib/ffaker/data/vehicle/makes_list
238
- lib/ffaker/data/vehicle/models_list
239
- lib/ffaker/data/vehicle/transmissions_list
240
- lib/ffaker/data/vehicle/trims_list
241
- lib/ffaker/data/vehicle/upholstery_list
242
- lib/ffaker/data/venue/venue_list
243
- lib/ffaker/dizzle_ipsum.rb
244
- lib/ffaker/education.rb
245
- lib/ffaker/food.rb
246
- lib/ffaker/gender.rb
247
- lib/ffaker/gender_cn.rb
248
- lib/ffaker/gender_kr.rb
249
- lib/ffaker/geolocation.rb
250
- lib/ffaker/guid.rb
251
- lib/ffaker/healthcare_ipsum.rb
252
- lib/ffaker/hipster_ipsum.rb
253
- lib/ffaker/html_ipsum.rb
254
- lib/ffaker/identification.rb
255
- lib/ffaker/identification_es.rb
256
- lib/ffaker/identification_es_cl.rb
257
- lib/ffaker/identification_es_co.rb
258
- lib/ffaker/identification_kr.rb
259
- lib/ffaker/identification_mx.rb
260
- lib/ffaker/internet.rb
261
- lib/ffaker/internet_se.rb
262
- lib/ffaker/job.rb
263
- lib/ffaker/job_cn.rb
264
- lib/ffaker/job_fr.rb
265
- lib/ffaker/job_ja.rb
266
- lib/ffaker/job_kr.rb
267
- lib/ffaker/locale.rb
268
- lib/ffaker/lorem.rb
269
- lib/ffaker/lorem_ar.rb
270
- lib/ffaker/lorem_cn.rb
271
- lib/ffaker/lorem_fr.rb
272
- lib/ffaker/lorem_kr.rb
273
- lib/ffaker/lorem_ua.rb
274
- lib/ffaker/movie.rb
275
- lib/ffaker/music.rb
276
- lib/ffaker/name.rb
277
- lib/ffaker/name_br.rb
278
- lib/ffaker/name_cn.rb
279
- lib/ffaker/name_cs.rb
280
- lib/ffaker/name_da.rb
281
- lib/ffaker/name_de.rb
282
- lib/ffaker/name_fr.rb
283
- lib/ffaker/name_ga.rb
284
- lib/ffaker/name_it.rb
285
- lib/ffaker/name_ja.rb
286
- lib/ffaker/name_kr.rb
287
- lib/ffaker/name_mx.rb
288
- lib/ffaker/name_nb.rb
289
- lib/ffaker/name_nl.rb
290
- lib/ffaker/name_ph.rb
291
- lib/ffaker/name_ru.rb
292
- lib/ffaker/name_se.rb
293
- lib/ffaker/name_sn.rb
294
- lib/ffaker/name_th.rb
295
- lib/ffaker/name_ua.rb
296
- lib/ffaker/name_vn.rb
297
- lib/ffaker/nato_alphabet.rb
298
- lib/ffaker/phone_number.rb
299
- lib/ffaker/phone_number_au.rb
300
- lib/ffaker/phone_number_br.rb
301
- lib/ffaker/phone_number_ch.rb
302
- lib/ffaker/phone_number_cu.rb
303
- lib/ffaker/phone_number_da.rb
304
- lib/ffaker/phone_number_de.rb
305
- lib/ffaker/phone_number_fr.rb
306
- lib/ffaker/phone_number_it.rb
307
- lib/ffaker/phone_number_kr.rb
308
- lib/ffaker/phone_number_mx.rb
309
- lib/ffaker/phone_number_nl.rb
310
- lib/ffaker/phone_number_se.rb
311
- lib/ffaker/phone_number_sg.rb
312
- lib/ffaker/phone_number_sn.rb
313
- lib/ffaker/product.rb
314
- lib/ffaker/skill.rb
315
- lib/ffaker/sport.rb
316
- lib/ffaker/ssn.rb
317
- lib/ffaker/ssn_mx.rb
318
- lib/ffaker/ssn_se.rb
319
- lib/ffaker/string.rb
320
- lib/ffaker/time.rb
321
- lib/ffaker/unit.rb
322
- lib/ffaker/unit_english.rb
323
- lib/ffaker/unit_metric.rb
324
- lib/ffaker/utils/array_utils.rb
325
- lib/ffaker/utils/module_utils.rb
326
- lib/ffaker/vehicle.rb
327
- lib/ffaker/venue.rb
328
- scripts/benchmark.rb
329
- scripts/profile.sh
330
- scripts/profiling.rb
331
- scripts/reference.rb
332
- test/helper.rb
333
- test/test_address.rb
334
- test/test_address_au.rb
335
- test/test_address_br.rb
336
- test/test_address_ca.rb
337
- test/test_address_ch.rb
338
- test/test_address_ch_de.rb
339
- test/test_address_ch_fr.rb
340
- test/test_address_ch_it.rb
341
- test/test_address_da.rb
342
- test/test_address_de.rb
343
- test/test_address_fi.rb
344
- test/test_address_in.rb
345
- test/test_address_mx.rb
346
- test/test_address_nl.rb
347
- test/test_address_ru.rb
348
- test/test_address_se.rb
349
- test/test_address_sn.rb
350
- test/test_address_ua.rb
351
- test/test_address_uk.rb
352
- test/test_address_us.rb
353
- test/test_array_utils.rb
354
- test/test_avatar.rb
355
- test/test_bacon_ipsum.rb
356
- test/test_boolean.rb
357
- test/test_cheesy_lingo.rb
358
- test/test_color.rb
359
- test/test_color_ua.rb
360
- test/test_company.rb
361
- test/test_company_it.rb
362
- test/test_company_se.rb
363
- test/test_conference.rb
364
- test/test_course_mathematiques.rb
365
- test/test_course_philosophie.rb
366
- test/test_dizzle_ipsum.rb
367
- test/test_education.rb
368
- test/test_faker.rb
369
- test/test_food.rb
370
- test/test_gender.rb
371
- test/test_gender_cn.rb
372
- test/test_gender_kr.rb
373
- test/test_geolocation.rb
374
- test/test_guid.rb
375
- test/test_healthcare_ipsum.rb
376
- test/test_hipster_ipsum.rb
377
- test/test_html_ipsum.rb
378
- test/test_identification.rb
379
- test/test_identification_co.rb
380
- test/test_identification_es.rb
381
- test/test_identification_es_cl.rb
382
- test/test_identification_es_mx.rb
383
- test/test_identification_kr.rb
384
- test/test_internet.rb
385
- test/test_internet_se.rb
386
- test/test_job.rb
387
- test/test_job_cn.rb
388
- test/test_job_fr.rb
389
- test/test_job_ja.rb
390
- test/test_job_kr.rb
391
- test/test_locale.rb
392
- test/test_lorem.rb
393
- test/test_lorem_ar.rb
394
- test/test_lorem_cn.rb
395
- test/test_lorem_fr.rb
396
- test/test_lorem_kr.rb
397
- test/test_lorem_ua.rb
398
- test/test_module_utils.rb
399
- test/test_movie.rb
400
- test/test_music.rb
401
- test/test_name.rb
402
- test/test_name_br.rb
403
- test/test_name_cn.rb
404
- test/test_name_cs.rb
405
- test/test_name_da.rb
406
- test/test_name_de.rb
407
- test/test_name_fr.rb
408
- test/test_name_ga.rb
409
- test/test_name_it.rb
410
- test/test_name_ja.rb
411
- test/test_name_kr.rb
412
- test/test_name_mx.rb
413
- test/test_name_nb.rb
414
- test/test_name_nl.rb
415
- test/test_name_ph.rb
416
- test/test_name_ru.rb
417
- test/test_name_se.rb
418
- test/test_name_sn.rb
419
- test/test_name_th.rb
420
- test/test_name_ua.rb
421
- test/test_nato_alphabet.rb
422
- test/test_phone_number.rb
423
- test/test_phone_number_au.rb
424
- test/test_phone_number_br.rb
425
- test/test_phone_number_cu.rb
426
- test/test_phone_number_da.rb
427
- test/test_phone_number_de.rb
428
- test/test_phone_number_kr.rb
429
- test/test_phone_number_mx.rb
430
- test/test_phone_number_nl.rb
431
- test/test_phone_number_se.rb
432
- test/test_phone_number_sg.rb
433
- test/test_phone_number_sn.rb
434
- test/test_skill.rb
435
- test/test_sports.rb
436
- test/test_ssn.rb
437
- test/test_ssn_mx.rb
438
- test/test_ssn_se.rb
439
- test/test_string.rb
440
- test/test_time.rb
441
- test/test_units.rb
442
- test/test_units_english.rb
443
- test/test_units_metric.rb
444
- test/test_vehicle.rb
445
- test/test_venue.rb
446
- ]
38
+ ) + Dir['lib/**/*', 'scripts/*']
447
39
  # = MANIFEST =
448
40
 
449
- s.test_files = s.files.select { |path| path =~ /^test\/test_.*\.rb/ }
41
+ s.test_files = Dir['test/**/*']
450
42
 
451
43
  s.add_development_dependency 'rake', '~> 10.1.1'
452
44
  s.add_development_dependency 'test-unit'