ffaker 1.32.1 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (202) hide show
  1. checksums.yaml +4 -4
  2. data/Changelog.md +35 -23
  3. data/README.md +3 -3
  4. data/Rakefile +20 -0
  5. data/ffaker.gemspec +2 -2
  6. data/lib/ffaker.rb +2 -2
  7. data/lib/ffaker/address.rb +9 -9
  8. data/lib/ffaker/address_au.rb +3 -3
  9. data/lib/ffaker/address_br.rb +3 -3
  10. data/lib/ffaker/address_ca.rb +3 -3
  11. data/lib/ffaker/address_da.rb +3 -3
  12. data/lib/ffaker/address_de.rb +3 -3
  13. data/lib/ffaker/address_fi.rb +4 -4
  14. data/lib/ffaker/address_fr.rb +5 -5
  15. data/lib/ffaker/address_mx.rb +3 -3
  16. data/lib/ffaker/address_nl.rb +3 -3
  17. data/lib/ffaker/address_se.rb +4 -4
  18. data/lib/ffaker/address_sn.rb +2 -2
  19. data/lib/ffaker/address_uk.rb +3 -3
  20. data/lib/ffaker/address_us.rb +3 -3
  21. data/lib/ffaker/bacon_ipsum.rb +1 -1
  22. data/lib/ffaker/boolean.rb +1 -1
  23. data/lib/ffaker/color.rb +1 -1
  24. data/lib/ffaker/company.rb +1 -1
  25. data/lib/ffaker/company_it.rb +1 -1
  26. data/lib/ffaker/company_se.rb +1 -1
  27. data/lib/ffaker/conference.rb +1 -1
  28. data/lib/ffaker/courses.rb +1 -1
  29. data/lib/ffaker/currency.rb +1 -1
  30. data/lib/ffaker/dizzle_ipsum.rb +1 -1
  31. data/lib/ffaker/education.rb +1 -1
  32. data/lib/ffaker/food.rb +1 -1
  33. data/lib/ffaker/gender.rb +1 -1
  34. data/lib/ffaker/gender_cn.rb +1 -1
  35. data/lib/ffaker/gender_kr.rb +1 -1
  36. data/lib/ffaker/geolocation.rb +1 -1
  37. data/lib/ffaker/guid.rb +2 -2
  38. data/lib/ffaker/healthcare_ipsum.rb +1 -1
  39. data/lib/ffaker/hipster_ipsum.rb +1 -1
  40. data/lib/ffaker/html_ipsum.rb +9 -9
  41. data/lib/ffaker/identification.rb +3 -3
  42. data/lib/ffaker/identification_es.rb +1 -1
  43. data/lib/ffaker/identification_es_cl.rb +1 -1
  44. data/lib/ffaker/identification_es_co.rb +2 -2
  45. data/lib/ffaker/identification_mx.rb +1 -1
  46. data/lib/ffaker/internet.rb +2 -2
  47. data/lib/ffaker/internet_se.rb +2 -2
  48. data/lib/ffaker/job.rb +1 -1
  49. data/lib/ffaker/job_fr.rb +1 -1
  50. data/lib/ffaker/job_ja.rb +1 -1
  51. data/lib/ffaker/job_kr.rb +1 -1
  52. data/lib/ffaker/locale.rb +1 -1
  53. data/lib/ffaker/lorem.rb +1 -1
  54. data/lib/ffaker/lorem_ar.rb +1 -1
  55. data/lib/ffaker/lorem_cn.rb +1 -1
  56. data/lib/ffaker/lorem_fr.rb +1 -1
  57. data/lib/ffaker/lorem_kr.rb +1 -1
  58. data/lib/ffaker/movie.rb +7 -7
  59. data/lib/ffaker/name.rb +1 -1
  60. data/lib/ffaker/name_br.rb +1 -1
  61. data/lib/ffaker/name_cn.rb +1 -1
  62. data/lib/ffaker/name_cs.rb +6 -6
  63. data/lib/ffaker/name_da.rb +2 -2
  64. data/lib/ffaker/name_de.rb +2 -2
  65. data/lib/ffaker/name_fr.rb +1 -1
  66. data/lib/ffaker/name_ga.rb +1 -1
  67. data/lib/ffaker/name_it.rb +1 -1
  68. data/lib/ffaker/name_ja.rb +1 -1
  69. data/lib/ffaker/name_kr.rb +1 -1
  70. data/lib/ffaker/name_mx.rb +2 -2
  71. data/lib/ffaker/name_nb.rb +2 -2
  72. data/lib/ffaker/name_nl.rb +2 -2
  73. data/lib/ffaker/name_ph.rb +2 -2
  74. data/lib/ffaker/name_ru.rb +7 -7
  75. data/lib/ffaker/name_se.rb +2 -2
  76. data/lib/ffaker/name_sn.rb +1 -1
  77. data/lib/ffaker/name_th.rb +1 -1
  78. data/lib/ffaker/name_vn.rb +1 -1
  79. data/lib/ffaker/nato_alphabet.rb +1 -1
  80. data/lib/ffaker/phone_number.rb +3 -3
  81. data/lib/ffaker/phone_number_au.rb +7 -7
  82. data/lib/ffaker/phone_number_cu.rb +12 -14
  83. data/lib/ffaker/phone_number_da.rb +3 -3
  84. data/lib/ffaker/phone_number_de.rb +4 -4
  85. data/lib/ffaker/phone_number_fr.rb +3 -3
  86. data/lib/ffaker/phone_number_it.rb +2 -2
  87. data/lib/ffaker/phone_number_kr.rb +3 -3
  88. data/lib/ffaker/phone_number_mx.rb +7 -7
  89. data/lib/ffaker/phone_number_nl.rb +5 -5
  90. data/lib/ffaker/phone_number_se.rb +5 -5
  91. data/lib/ffaker/phone_number_sg.rb +9 -9
  92. data/lib/ffaker/phone_number_sn.rb +5 -5
  93. data/lib/ffaker/product.rb +1 -1
  94. data/lib/ffaker/skill.rb +1 -1
  95. data/lib/ffaker/ssn.rb +2 -2
  96. data/lib/ffaker/ssn_mx.rb +7 -7
  97. data/lib/ffaker/ssn_se.rb +1 -1
  98. data/lib/ffaker/string.rb +1 -1
  99. data/lib/ffaker/time.rb +1 -1
  100. data/lib/ffaker/unit.rb +1 -1
  101. data/lib/ffaker/unit_english.rb +2 -2
  102. data/lib/ffaker/unit_metric.rb +2 -2
  103. data/lib/ffaker/utils/array_utils.rb +1 -1
  104. data/lib/ffaker/utils/module_utils.rb +3 -3
  105. data/lib/ffaker/vehicle.rb +3 -3
  106. data/lib/ffaker/venue.rb +1 -1
  107. data/scripts/benchmark.rb +2 -2
  108. data/scripts/profiling.rb +1 -1
  109. data/test/test_address.rb +21 -21
  110. data/test/test_address_au.rb +17 -17
  111. data/test/test_address_br.rb +7 -7
  112. data/test/test_address_ca.rb +4 -4
  113. data/test/test_address_da.rb +9 -9
  114. data/test/test_address_de.rb +5 -5
  115. data/test/test_address_fi.rb +6 -6
  116. data/test/test_address_mx.rb +5 -5
  117. data/test/test_address_nl.rb +1 -1
  118. data/test/test_address_se.rb +6 -6
  119. data/test/test_address_sn.rb +4 -4
  120. data/test/test_address_uk.rb +3 -3
  121. data/test/test_address_us.rb +7 -7
  122. data/test/test_array_utils.rb +1 -1
  123. data/test/test_bacon_ipsum.rb +6 -6
  124. data/test/test_boolean.rb +1 -1
  125. data/test/test_color.rb +1 -1
  126. data/test/test_company.rb +6 -6
  127. data/test/test_company_it.rb +4 -4
  128. data/test/test_company_se.rb +2 -2
  129. data/test/test_conference.rb +1 -1
  130. data/test/test_course_mathematiques.rb +1 -1
  131. data/test/test_course_philosophie.rb +1 -1
  132. data/test/test_dizzle_ipsum.rb +6 -6
  133. data/test/test_education.rb +1 -1
  134. data/test/test_faker.rb +6 -6
  135. data/test/test_food.rb +4 -4
  136. data/test/test_gender.rb +1 -1
  137. data/test/test_gender_cn.rb +1 -1
  138. data/test/test_gender_kr.rb +1 -1
  139. data/test/test_geolocation.rb +3 -3
  140. data/test/test_guid.rb +1 -1
  141. data/test/test_healthcare_ipsum.rb +6 -6
  142. data/test/test_hipster_ipsum.rb +6 -6
  143. data/test/test_html_ipsum.rb +19 -19
  144. data/test/test_identification.rb +1 -1
  145. data/test/test_identification_co.rb +1 -1
  146. data/test/test_identification_es.rb +1 -1
  147. data/test/test_identification_es_cl.rb +1 -1
  148. data/test/test_identification_es_mx.rb +7 -7
  149. data/test/test_internet.rb +1 -1
  150. data/test/test_internet_se.rb +1 -1
  151. data/test/test_job.rb +1 -1
  152. data/test/test_job_fr.rb +1 -1
  153. data/test/test_job_ja.rb +1 -1
  154. data/test/test_job_kr.rb +1 -1
  155. data/test/test_lorem.rb +13 -13
  156. data/test/test_lorem_ar.rb +8 -8
  157. data/test/test_lorem_cn.rb +10 -10
  158. data/test/test_lorem_fr.rb +8 -8
  159. data/test/test_lorem_kr.rb +2 -2
  160. data/test/test_module_utils.rb +1 -1
  161. data/test/test_movie.rb +1 -1
  162. data/test/test_name.rb +1 -1
  163. data/test/test_name_br.rb +1 -1
  164. data/test/test_name_cn.rb +1 -1
  165. data/test/test_name_cs.rb +6 -6
  166. data/test/test_name_de.rb +1 -1
  167. data/test/test_name_fr.rb +10 -10
  168. data/test/test_name_ga.rb +12 -12
  169. data/test/test_name_it.rb +10 -10
  170. data/test/test_name_ja.rb +2 -2
  171. data/test/test_name_kr.rb +1 -1
  172. data/test/test_name_mx.rb +58 -58
  173. data/test/test_name_nb.rb +5 -5
  174. data/test/test_name_nl.rb +1 -1
  175. data/test/test_name_ph.rb +1 -1
  176. data/test/test_name_ru.rb +5 -5
  177. data/test/test_name_se.rb +5 -5
  178. data/test/test_name_sn.rb +21 -21
  179. data/test/test_name_th.rb +6 -6
  180. data/test/test_nato_alphabet.rb +5 -5
  181. data/test/test_phone_number.rb +2 -2
  182. data/test/test_phone_number_au.rb +10 -10
  183. data/test/test_phone_number_cu.rb +13 -13
  184. data/test/test_phone_number_de.rb +10 -10
  185. data/test/test_phone_number_kr.rb +1 -1
  186. data/test/test_phone_number_mx.rb +1 -1
  187. data/test/test_phone_number_nl.rb +1 -1
  188. data/test/test_phone_number_se.rb +15 -15
  189. data/test/test_phone_number_sg.rb +1 -1
  190. data/test/test_phone_number_sn.rb +7 -7
  191. data/test/test_skill.rb +4 -4
  192. data/test/test_ssn.rb +1 -1
  193. data/test/test_ssn_mx.rb +10 -10
  194. data/test/test_ssn_se.rb +5 -5
  195. data/test/test_string.rb +1 -1
  196. data/test/test_time.rb +1 -1
  197. data/test/test_units.rb +5 -5
  198. data/test/test_units_english.rb +11 -11
  199. data/test/test_units_metric.rb +11 -11
  200. data/test/test_vehicle.rb +9 -9
  201. data/test/test_venue.rb +1 -1
  202. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5b588ca2533b6e332745917664aae48df59fadd9
4
- data.tar.gz: 85b3fffdac045b0b22c2f11cb9a2ce9313d74b47
3
+ metadata.gz: 862894ba20d39b03c8265bd7198a6844b5080303
4
+ data.tar.gz: 2367534621bb52657c10a4cdbc8d868d62d9aa38
5
5
  SHA512:
6
- metadata.gz: 023a290e83a50bb66077338a09b5364ce0d34f767327fed4bc64725ec4671e25d24bf79d1b0ca23c7a060f0cdeb16afd20a5261a9025c8dabe44264ee20590e9
7
- data.tar.gz: fcb3a89939c5f1d08db51eca718d66a9b95ccc0aaa9c2e139a4e007b428e756b34e16373d53202c3b04e242b1d2f8c09c74c3f44e7ca76b1d42f4216d3eaf07e
6
+ metadata.gz: 515c5818c9fb8c8f19fa9df9da1db1b01dac1310f80b43c87f5b60a0d12c13c0260998946350ca1dea4b5448482024a2726954cf035cdc18cf599da9719f3dd0
7
+ data.tar.gz: b5acad51337d9b91248b57b8330b12cbd9823ae3822e06f4daca6af2d4c9fd6ae79fcd67cb8f95a47bf8da73f4bdb785a5bb032d29ca5e646c49503c22b2d50b
@@ -1,3 +1,15 @@
1
+ ## 2.0.0
2
+ - switched faker to ffaker namespace, you should now be able to use
3
+ faker and ffaker gem together.
4
+ ## 1.32.1
5
+ - set required ruby version for gem
6
+ ## 1.32.0
7
+ - add Korean lorem to API
8
+ - add 100 canadian largest cities to API
9
+ - add Cuban phone numbers to API
10
+ - add currency code to API
11
+ - internal code-style improvements
12
+
1
13
  ## 1.31.0
2
14
 
3
15
  - add deprecation warning to ArrayUtils#rand method
@@ -78,15 +90,15 @@ NameKR (https://github.com/EmmanuelOga/ffaker/pull/47) and PhoneNumbersSG
78
90
 
79
91
  ## 1.14.0
80
92
 
81
- AddressSN (thanks PapePathe), and a bugfix on Faker::Product.model (thanks finarfin).
93
+ AddressSN (thanks PapePathe), and a bugfix on FFaker::Product.model (thanks finarfin).
82
94
 
83
95
  ## 1.13.0
84
96
 
85
- Education bug fix, Faker::Job (thanks Piotr Usewicz)
97
+ Education bug fix, FFaker::Job (thanks Piotr Usewicz)
86
98
 
87
99
  ## 1.12.0
88
100
 
89
- Faker::AddressAU and FakkerAddressPhoneAU modules (thanks Ben Wiseley).
101
+ FFaker::AddressAU and FakkerAddressPhoneAU modules (thanks Ben Wiseley).
90
102
 
91
103
  ## 1.11.0
92
104
 
@@ -94,13 +106,13 @@ Extraction of AddressUK and AddressUS classes. (Thanks doctorbh).
94
106
 
95
107
  ## 1.10.1
96
108
 
97
- Faker::AddressCA (Thanks doctorbh, https://github.com/EmmanuelOga/ffaker/pull/27)
109
+ FFaker::AddressCA (Thanks doctorbh, https://github.com/EmmanuelOga/ffaker/pull/27)
98
110
 
99
111
  ## 1.9.1
100
112
 
101
- Faker::NameSN, Faker::PhoneNumberSN (Thanks SENE, https://github.com/EmmanuelOga/ffaker/pull/26)
113
+ FFaker::NameSN, FFaker::PhoneNumberSN (Thanks SENE, https://github.com/EmmanuelOga/ffaker/pull/26)
102
114
 
103
- Added Faker::NameJA (Thanks kichiro, https://github.com/EmmanuelOga/ffaker/pull/21)
115
+ Added FFaker::NameJA (Thanks kichiro, https://github.com/EmmanuelOga/ffaker/pull/21)
104
116
 
105
117
  ## 1.8.1
106
118
 
@@ -108,52 +120,52 @@ Remove a warning.
108
120
 
109
121
  ## 1.8.0
110
122
 
111
- Faker::HTMLIpsum module inspired in http://html-ipsum.com/ (Thanks Chris Bloom, https://github.com/EmmanuelOga/ffaker/pull/18)
123
+ FFaker::HTMLIpsum module inspired in http://html-ipsum.com/ (Thanks Chris Bloom, https://github.com/EmmanuelOga/ffaker/pull/18)
112
124
 
113
125
  ## 1.7.0
114
126
 
115
- Faker::LoremCN (Thanks Shane Weng, Shane Weng, https://github.com/swcool, https://github.com/EmmanuelOga/ffaker/pull/16/files)
127
+ FFaker::LoremCN (Thanks Shane Weng, Shane Weng, https://github.com/swcool, https://github.com/EmmanuelOga/ffaker/pull/16/files)
116
128
 
117
129
  ## 1.6.0
118
130
 
119
- Faker::NameDE (thanks David Noelte, https://github.com/marvin, https://github.com/EmmanuelOga/ffaker/pull/17)
120
- Added Faker::Internet#disposable_email (Thanks Port 80 Labs, https://github.com/port80labs, https://github.com/EmmanuelOga/ffaker/pull/15)
131
+ FFaker::NameDE (thanks David Noelte, https://github.com/marvin, https://github.com/EmmanuelOga/ffaker/pull/17)
132
+ Added FFaker::Internet#disposable_email (Thanks Port 80 Labs, https://github.com/port80labs, https://github.com/EmmanuelOga/ffaker/pull/15)
121
133
 
122
134
  ## 1.5.0
123
135
 
124
- Faker::NameRU (Thanks Vsevolod Romashov, https://github.com/7even, https://github.com/EmmanuelOga/ffaker/pull/14)
136
+ FFaker::NameRU (Thanks Vsevolod Romashov, https://github.com/7even, https://github.com/EmmanuelOga/ffaker/pull/14)
125
137
 
126
138
  ## 1.4.0
127
139
 
128
- Faker::Product and Faker::Education (thanks Rico Sta. Cruz, https://github.com/EmmanuelOga/ffaker/pull/12 )
140
+ FFaker::Product and FFaker::Education (thanks Rico Sta. Cruz, https://github.com/EmmanuelOga/ffaker/pull/12 )
129
141
 
130
142
  ## 1.3.0
131
143
 
132
- Faker::Lorem.word as a convenience method, instead of Faker::Lorem.words(1).first.
144
+ FFaker::Lorem.word as a convenience method, instead of FFaker::Lorem.words(1).first.
133
145
 
134
146
  ## 1.2.0
135
147
 
136
- New Faker::NameCN module (contributions by qichunren)
148
+ New FFaker::NameCN module (contributions by qichunren)
137
149
 
138
- Faker::NameCN.first_name # => 鑫洋
139
- Faker::NameCN.last_name # => 禹
140
- Faker::NameCN.name # => 俊伶漫
150
+ FFaker::NameCN.first_name # => 鑫洋
151
+ FFaker::NameCN.last_name # => 禹
152
+ FFaker::NameCN.name # => 俊伶漫
141
153
 
142
154
  ## 1.1.0
143
155
 
144
156
  Api additions (contributions by Robert Berry)
145
157
 
146
- Faker::Internet.uri(protocol)
147
- Faker::Internet.http_url
148
- Faker::Internet.ip_v4_address
158
+ FFaker::Internet.uri(protocol)
159
+ FFaker::Internet.http_url
160
+ FFaker::Internet.ip_v4_address
149
161
 
150
162
  ## 0.4.0
151
163
 
152
164
  Api additions by Rafael Souza
153
165
 
154
- Faker::Geolocation.lat # => 40.6609944585817
155
- Faker::Geolocation.lng # => -73.8454648940358
156
- Faker::Address.neighborhood # => "Renton West"
166
+ FFaker::Geolocation.lat # => 40.6609944585817
167
+ FFaker::Geolocation.lng # => -73.8454648940358
168
+ FFaker::Address.neighborhood # => "Renton West"
157
169
 
158
170
 
159
171
  ## 0.3.3 2010-01-14
data/README.md CHANGED
@@ -9,8 +9,8 @@
9
9
 
10
10
  ```ruby
11
11
  require 'ffaker'
12
- Faker::Name.name => "Christophe Bartell"
13
- Faker::Internet.email => "kirsten.greenholt@corkeryfisher.info"
12
+ FFaker::Name.name => "Christophe Bartell"
13
+ FFaker::Internet.email => "kirsten.greenholt@corkeryfisher.info"
14
14
  ```
15
15
 
16
16
  ## ffaker vs faker
@@ -55,7 +55,7 @@ for Faker modules, so if you try to use a constant that is not defined
55
55
  in the module, the
56
56
  [override](https://github.com/EmmanuelOga/ffaker/blob/master/lib/ffaker/utils/module_utils.rb#L9)
57
57
  will look for a data file matching the name of the constant. E.G.: the
58
- first time someone accesses ++Faker::Name::FIRST_NAMES++, a const of that
58
+ first time someone accesses ++FFaker::Name::FIRST_NAMES++, a const of that
59
59
  name will be set with data from ffaker/data/name/first_names.
60
60
 
61
61
  ## TODO
data/Rakefile CHANGED
@@ -2,6 +2,26 @@ require 'rubygems'
2
2
  require 'rake'
3
3
  require 'date'
4
4
 
5
+ require "test/unit/testsuite"
6
+
7
+ module Test
8
+ module Unit
9
+ class TestSuite
10
+
11
+ def run(result, &progress_block)
12
+ yield(STARTED, name)
13
+ run_startup(result)
14
+ @tests.each do |test|
15
+ test.run(result, &progress_block)
16
+ break unless result.passed?
17
+ end
18
+ run_shutdown(result)
19
+ yield(FINISHED, name)
20
+ end
21
+ end
22
+ end
23
+ end
24
+
5
25
  #############################################################################
6
26
  #
7
27
  # Helper functions
@@ -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.32.1'
8
- s.date = '2015-02-05'
7
+ s.version = '2.0.0'
8
+ s.date = '2015-03-16'
9
9
  s.rubyforge_project = 'ffaker'
10
10
  s.required_ruby_version = '>= 1.9'
11
11
 
@@ -1,5 +1,5 @@
1
- module Faker
2
- VERSION = "1.32.1"
1
+ module FFaker
2
+ VERSION = '2.0.0'
3
3
 
4
4
  require 'ffaker/utils/array_utils'
5
5
  require 'ffaker/utils/module_utils'
@@ -1,6 +1,6 @@
1
1
  # encoding: utf-8
2
2
 
3
- module Faker
3
+ module FFaker
4
4
  module Address
5
5
  extend ModuleUtils
6
6
  extend self
@@ -12,17 +12,17 @@ module Faker
12
12
  # @deprecated US specific address info. Moved into {AddressUS}
13
13
  def zip_code
14
14
  warn '[zip_code] is deprecated. For US addresses please use the AddressUS module'
15
- Faker::AddressUS.zip_code
15
+ FFaker::AddressUS.zip_code
16
16
  end
17
17
 
18
18
  def us_state
19
19
  warn '[us_state] is deprecated. For US addresses please use the AddressUS module'
20
- Faker::AddressUS.state
20
+ FFaker::AddressUS.state
21
21
  end
22
22
 
23
23
  def us_state_abbr
24
24
  warn '[state_abbr] is deprecated. For US addresses please use the AddressUS module'
25
- Faker::AddressUS.state_abbr
25
+ FFaker::AddressUS.state_abbr
26
26
  end
27
27
  # end US deprecation
28
28
 
@@ -48,7 +48,7 @@ module Faker
48
48
  end
49
49
 
50
50
  def building_number
51
- Faker.numerify(( '#' * rand(3) ) << '###')
51
+ FFaker.numerify(( '#' * rand(3) ) << '###')
52
52
  end
53
53
 
54
54
  def street_name
@@ -65,24 +65,24 @@ module Faker
65
65
  end
66
66
 
67
67
  def secondary_address
68
- Faker.numerify(SEC_ADDR.sample)
68
+ FFaker.numerify(SEC_ADDR.sample)
69
69
  end
70
70
 
71
71
  # @deprecated UK specific address info. Moved into {AddressUK}
72
72
  # UK Variants
73
73
  def uk_county
74
74
  warn '[uk_county] is deprecated. For UK addresses please use the AddressUK module'
75
- Faker::AddressUK.county
75
+ FFaker::AddressUK.county
76
76
  end
77
77
 
78
78
  def uk_country
79
79
  warn '[uk_country] is deprecated. For UK addresses please use the AddressUK module'
80
- Faker::AddressUK.country
80
+ FFaker::AddressUK.country
81
81
  end
82
82
 
83
83
  def uk_postcode
84
84
  warn '[uk_postcode] is deprecated. For UK addresses please use the AddressUK module'
85
- Faker::AddressUK.postcode
85
+ FFaker::AddressUK.postcode
86
86
  end
87
87
  # end UK deprecation
88
88
 
@@ -2,10 +2,10 @@
2
2
 
3
3
  require 'ffaker/address'
4
4
 
5
- module Faker
5
+ module FFaker
6
6
  # Author wiseleyb<wiseleyb@gmail.com>
7
7
  module AddressAU
8
- include Faker::Address
8
+ include FFaker::Address
9
9
 
10
10
  extend ModuleUtils
11
11
  extend self
@@ -97,7 +97,7 @@ module Faker
97
97
 
98
98
  def full_address(st_abbr = nil)
99
99
  st_abbr ||= state_abbr
100
- "#{Faker::Address.street_address}, #{suburb(st_abbr)} #{st_abbr} #{postcode}"
100
+ "#{FFaker::Address.street_address}, #{suburb(st_abbr)} #{st_abbr} #{postcode}"
101
101
  end
102
102
  end
103
103
  end
@@ -2,9 +2,9 @@
2
2
 
3
3
  require 'ffaker/address'
4
4
 
5
- module Faker
5
+ module FFaker
6
6
  module AddressBR
7
- include Faker::Address
7
+ include FFaker::Address
8
8
 
9
9
  extend ModuleUtils
10
10
  extend self
@@ -12,7 +12,7 @@ module Faker
12
12
  STREET_PREFIX = %w( Rua Avenida Travessa Alameda )
13
13
 
14
14
  def zip_code
15
- Faker.numerify '#####-###'
15
+ FFaker.numerify '#####-###'
16
16
  end
17
17
 
18
18
  def state
@@ -2,9 +2,9 @@
2
2
 
3
3
  require 'ffaker/address'
4
4
 
5
- module Faker
5
+ module FFaker
6
6
  module AddressCA
7
- include Faker::Address
7
+ include FFaker::Address
8
8
 
9
9
  extend ModuleUtils
10
10
  extend self
@@ -13,7 +13,7 @@ module Faker
13
13
  PROVINCE_ABBRS = %w(NL NS PE NB QC ON MB SK AB BC YT NT NU)
14
14
 
15
15
  def postal_code
16
- Faker.bothify(POSTAL_CODE_FORMATS.sample).upcase
16
+ FFaker.bothify(POSTAL_CODE_FORMATS.sample).upcase
17
17
  end
18
18
 
19
19
  def province
@@ -2,9 +2,9 @@
2
2
 
3
3
  require 'ffaker/address'
4
4
 
5
- module Faker
5
+ module FFaker
6
6
  module AddressDA
7
- include Faker::Address
7
+ include FFaker::Address
8
8
 
9
9
  extend ModuleUtils
10
10
  extend self
@@ -15,7 +15,7 @@ module Faker
15
15
  STATE = REGION
16
16
 
17
17
  def zip_code
18
- Faker.numerify('####')
18
+ FFaker.numerify('####')
19
19
  end
20
20
 
21
21
  def post_nr
@@ -2,15 +2,15 @@
2
2
 
3
3
  require 'ffaker/address'
4
4
 
5
- module Faker
5
+ module FFaker
6
6
  module AddressDE
7
- include Faker::Address
7
+ include FFaker::Address
8
8
 
9
9
  extend ModuleUtils
10
10
  extend self
11
11
 
12
12
  def zip_code
13
- Faker.numerify '#####'
13
+ FFaker.numerify '#####'
14
14
  end
15
15
 
16
16
  def state
@@ -2,13 +2,13 @@
2
2
 
3
3
  require 'ffaker/address'
4
4
 
5
- module Faker
5
+ module FFaker
6
6
  # List of countries is from Freebase:
7
7
  # https://www.googleapis.com/freebase/v1/mqlread?lang=/lang/fi&query=[%7B%22name%22:null,%22type%22:%22/location/country%22%7D]
8
8
  # Streetnames are from areacode 32100 (http://posti.fi/postipalvelee/tyokalut/postinumerohaku/)
9
9
  # List of cities is from http://fi.wikipedia.org/wiki/Luettelo_Suomen_kaupungeista
10
10
  module AddressFI
11
- include Faker::Address
11
+ include FFaker::Address
12
12
 
13
13
  extend ModuleUtils
14
14
  extend self
@@ -17,7 +17,7 @@ module Faker
17
17
  STREET_NBR_FORMATS = ['##', '#', '# a', '# b', '###', '# a #', '# b #']
18
18
 
19
19
  def zip_code
20
- Faker.numerify ZIP_FORMATS.sample
20
+ FFaker.numerify ZIP_FORMATS.sample
21
21
  end
22
22
 
23
23
  def city
@@ -33,7 +33,7 @@ module Faker
33
33
  end
34
34
 
35
35
  def street_nbr
36
- Faker.numerify STREET_NBR_FORMATS.sample
36
+ FFaker.numerify STREET_NBR_FORMATS.sample
37
37
  end
38
38
 
39
39
  def full_address
@@ -2,9 +2,9 @@
2
2
 
3
3
  require 'ffaker/address'
4
4
 
5
- module Faker
5
+ module FFaker
6
6
  module AddressFR
7
- include Faker::Address
7
+ include FFaker::Address
8
8
 
9
9
  extend ModuleUtils
10
10
  extend self
@@ -16,15 +16,15 @@ module Faker
16
16
  POSTAL_CODE_FORMATS = ['####', '#####', '97####', '2A###', '2B###']
17
17
 
18
18
  def street_address
19
- Faker.numerify(NUM.sample) +
19
+ FFaker.numerify(NUM.sample) +
20
20
  MOD.sample +
21
21
  SEP.sample +
22
22
  TYPE.sample + ' ' +
23
- Faker::NameFR.name
23
+ FFaker::NameFR.name
24
24
  end
25
25
 
26
26
  def postal_code
27
- Faker.numerify POSTAL_CODE_FORMATS.sample
27
+ FFaker.numerify POSTAL_CODE_FORMATS.sample
28
28
  end
29
29
 
30
30
  def city
@@ -1,17 +1,17 @@
1
1
  # encoding: utf-8
2
2
 
3
- module Faker
3
+ module FFaker
4
4
  # Author Guapolo <github.com/guapolo>
5
5
  module AddressMX
6
6
  extend ModuleUtils
7
7
  extend self
8
8
 
9
9
  def zip_code
10
- Faker.numerify('#####')
10
+ FFaker.numerify('#####')
11
11
  end
12
12
 
13
13
  def postal_code
14
- Faker.numerify('#####')
14
+ FFaker.numerify('#####')
15
15
  end
16
16
 
17
17
  def state