faker 1.6.1 → 1.6.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 27c952ddf12f507892b74cf2671e181b01af31f9
4
- data.tar.gz: 8e2708410f8618f004ee8e4e5acac93c0aa26ed4
3
+ metadata.gz: f8d813fb3f02fe0b9cc3240c9527146419ae204c
4
+ data.tar.gz: 5f6f467713b08fa70f1e0584a5cbe6d850db4a6a
5
5
  SHA512:
6
- metadata.gz: 242db2ab7b4a4e05410c49554e8e5bd52f3056bb481a7344ceb77d6a28e1d3f74539b730fc02a3d02ca84d63e3b2f814d8b9509f3d832b4947dfa030adcbfc6a
7
- data.tar.gz: 2afa80a186b311afdc65f38d58cb84b8415adc4b4d7be1765835e661af54ca94720701be0b91fbf1f1b94775fdba27ab4989cbc87d15d488fd12b162f0882cca
6
+ metadata.gz: fa43666ec5c059693a67abf16729e7e2b2c568362779e78f3048cb57f9d06d9dcdcec45ba221c7ff39a53af3193fa28833ca73a516237a31fb778626b8d14bb0
7
+ data.tar.gz: f1cdfa4db3b887031455f01ea045a5fa59624d2588b03271e7d2269a616d43897a50d437882e3276137c22e182c5021a08eede35445a8aa9184cf210cb1aea26
@@ -1,3 +1,11 @@
1
+ == 1.6.2 2016-02-20
2
+ * Fix for locale-switching (Russian email addresses)
3
+ * Added Faker::Beer, Faker::Boolean, Faker::Cat, Faker::StarWars, and Faker::Superhero
4
+ * Added Faker::Color.color_name
5
+ * Added Faker::Date.between_except
6
+ * Fixed Faker::Internet.ip_v4_cidr and Faker::Internet.ip_v6_cidr
7
+ * Added locales: ca, ca-CAT, da-DK, fi-FI, and pt
8
+
1
9
  == 1.6.1 2015-11-23
2
10
  * Fix for locale issues in tests
3
11
 
data/README.md CHANGED
@@ -8,7 +8,12 @@ for the creation of this gem), having real-looking test data, and having your
8
8
  database populated with more than one or two records while you're doing
9
9
  development.
10
10
 
11
- NOTE: While Faker generates data at random, returned values are not guaranteed to be unique.
11
+ ### NOTE
12
+
13
+ * While Faker generates data at random, returned values are not guaranteed to be unique.
14
+ * This is the `master` branch of Faker and may contain changes that are not yet released.
15
+ Please refer the README of your version for the available methods.
16
+ List of all versions is [available here](https://github.com/stympy/faker/releases).
12
17
 
13
18
  Installing
14
19
  ----------
@@ -101,6 +106,23 @@ Faker::Code.ean #=> "4600051000057"
101
106
 
102
107
  ```
103
108
 
109
+ ###Faker::Color
110
+ ---------------
111
+
112
+ ```ruby
113
+
114
+ Faker::Color.hex_color #=> "#31a785"
115
+
116
+ Faker::Color.color_name #=> "yellow"
117
+
118
+ Faker::Color.rgb_color #=> [54, 233, 67]
119
+
120
+ Faker::Color.hsl_color #=> [69.87, 169.66, 225.3]
121
+
122
+ Faker::Color.hsla_color #=> [154.77, 232.36, 58.9, 0.26170574657729073]
123
+
124
+ ```
125
+
104
126
  ###Faker::Commerce
105
127
  ------------------
106
128
 
@@ -157,6 +179,9 @@ Faker::Company.profession #=> "firefighter"
157
179
  # Random date between dates
158
180
  Faker::Date.between(2.days.ago, Date.today) #=> "Wed, 24 Sep 2014"
159
181
 
182
+ # Randome date between dates except for certain date
183
+ Faker::Date.between_except(1.year.ago, 1.year.from_now, Date.today) #=> "Wed, 24 Sep 2014"
184
+
160
185
  # Random date in the future (up to maximum of N days)
161
186
  Faker::Date.forward(23) # => "Fri, 03 Oct 2014"
162
187
 
@@ -215,8 +240,12 @@ Faker::Internet.ip_v4_address #=> "24.29.18.175"
215
240
  # 172.16.0.0/12, or 192.168.0.0/16
216
241
  Faker::Internet.public_ip_v4_address #=> "24.29.18.175"
217
242
 
243
+ Faker::Internet.ip_v4_cidr #=> "24.29.18.175/21"
244
+
218
245
  Faker::Internet.ip_v6_address #=> "ac5f:d696:3807:1d72:2eb5:4e81:7d2b:e1df"
219
246
 
247
+ Faker::Internet.ip_v6_cidr #=> "ac5f:d696:3807:1d72:2eb5:4e81:7d2b:e1df/78"
248
+
220
249
  # Optional argument prefix=''
221
250
  Faker::Internet.mac_address #=> "e6:0d:00:11:ed:4f"
222
251
  Faker::Internet.mac_address('55:44:33') #=> "55:44:33:02:1d:9b"
@@ -339,6 +368,18 @@ Faker::Number.digit #=> "1"
339
368
 
340
369
  ```
341
370
 
371
+ ###Faker::Boolean
372
+ ----------------
373
+
374
+ ```ruby
375
+
376
+ # Optional parameter: true_ratio=0.5
377
+ Faker::Boolean.boolean #=> true
378
+
379
+ Faker::Boolean.boolean(0.2) #=> false
380
+
381
+ ```
382
+
342
383
  ###Faker::PhoneNumber
343
384
  ---------------------
344
385
 
@@ -557,7 +598,7 @@ Faker::Hipster.word #=> "irony"
557
598
  Faker::Hipster.words #=> ["pug", "pitchfork", "chia"]
558
599
  Faker::Hipster.words(4) #=> ["ugh", "cardigan", "poutine", "stumptown"]
559
600
  Faker::Hipster.words(4, true) #=> ["iste", "seitan", "normcore", "provident"]
560
- Faker::Hipster.words(4, true, true) #=> ["qui", "magni", "craft beer", "est"]
601
+ Faker::Hipster.words(4, true, true) #=> ["qui", "magni", "craft beer", "est"]
561
602
 
562
603
  # Optional arguments: word_count=4, supplemental=false, random_words_to_add=6
563
604
  Faker::Hipster.sentence #=> "Park iphone leggings put a bird on it."
@@ -584,6 +625,36 @@ Faker::Hipster.paragraphs(1) #=> ["Skateboard cronut synth +1 fashion axe. Pop-u
584
625
  Faker::Hipster.paragraphs(1, true) #=> ["Quae direct trade pbr&b quo taxidermy autem loko. Umami quas ratione migas cardigan sriracha minima. Tenetur perspiciatis pickled sed eum doloribus truffaut. Excepturi dreamcatcher meditation."]
585
626
  ```
586
627
 
628
+ ###Faker::Superhero
629
+ ------------------
630
+
631
+ ```ruby
632
+
633
+ # Random Superhero name
634
+ Faker::Superhero.name #=> "Magnificent Shatterstar"
635
+
636
+ # Random Superhero power
637
+ Faker::Superhero.power #=> "Photokinesis"
638
+ ```
639
+
640
+
641
+ ###Faker::StarWars
642
+ ----------------
643
+
644
+ ```ruby
645
+ Faker::StarWars.character #=> "Anakin Skywalker"
646
+
647
+ Faker::StarWars.droid #=> "C-3PO"
648
+
649
+ Faker::StarWars.planet #=> "Tatooine"
650
+
651
+ Faker::StarWars.quote #=> "Aren’t you a little short for a Stormtrooper?"
652
+
653
+ Faker::StarWars.specie #=> "Gungan"
654
+
655
+ Faker::StarWars.vehicle #=> "Sandcrawler"
656
+ ```
657
+
587
658
  Customization
588
659
  ------------
589
660
  Since you may want to make addresses and other types of data look different
@@ -24,6 +24,11 @@ module Faker
24
24
  def locale
25
25
  @locale || I18n.locale
26
26
  end
27
+
28
+ def own_locale
29
+ @locale
30
+ end
31
+
27
32
  end
28
33
  end
29
34
 
@@ -131,6 +136,15 @@ module Faker
131
136
  I18n.translate(*(args.push(opts)))
132
137
  end
133
138
 
139
+ # Executes block with given locale set.
140
+ def with_locale(tmp_locale = nil)
141
+ current_locale = Faker::Config.own_locale
142
+ Faker::Config.locale = tmp_locale
143
+ I18n.with_locale(tmp_locale) { yield }
144
+ ensure
145
+ Faker::Config.locale = current_locale
146
+ end
147
+
134
148
  def flexible(key)
135
149
  @flexible_key = key
136
150
  end
@@ -161,6 +175,7 @@ module Faker
161
175
  end
162
176
 
163
177
  require 'faker/address'
178
+ require 'faker/cat'
164
179
  require 'faker/code'
165
180
  require 'faker/color'
166
181
  require 'faker/company'
@@ -188,6 +203,10 @@ require 'faker/slack_emoji'
188
203
  require 'faker/book'
189
204
  require 'faker/hipster'
190
205
  require 'faker/shakespeare'
206
+ require 'faker/superhero'
207
+ require 'faker/beer'
208
+ require 'faker/boolean'
209
+ require 'faker/star_wars'
191
210
 
192
211
  require 'extensions/array'
193
212
  require 'extensions/symbol'
@@ -0,0 +1,39 @@
1
+ module Faker
2
+ class Beer < Base
3
+ flexible :beer
4
+
5
+ class << self
6
+ def name
7
+ fetch('beer.name')
8
+ end
9
+
10
+ def style
11
+ fetch('beer.style')
12
+ end
13
+
14
+ def hop
15
+ fetch('beer.hop')
16
+ end
17
+
18
+ def yeast
19
+ fetch('beer.yeast')
20
+ end
21
+
22
+ def malts
23
+ fetch('beer.malt')
24
+ end
25
+
26
+ def ibu
27
+ rand(10..100).to_s + ' IBU'
28
+ end
29
+
30
+ def alcohol
31
+ rand(2.0..10.0).round(1).to_s + '%'
32
+ end
33
+
34
+ def blg
35
+ rand(5.0..20.0).round(1).to_s + '°Blg'
36
+ end
37
+ end
38
+ end
39
+ end
@@ -0,0 +1,9 @@
1
+ module Faker
2
+ class Boolean < Base
3
+ class << self
4
+ def boolean(true_ratio = 0.5)
5
+ (rand < true_ratio)
6
+ end
7
+ end
8
+ end
9
+ end
@@ -0,0 +1,19 @@
1
+ module Faker
2
+ class Cat < Base
3
+ flexible :cat
4
+
5
+ class << self
6
+ def name
7
+ fetch('cat.name')
8
+ end
9
+
10
+ def breed
11
+ fetch('cat.breed')
12
+ end
13
+
14
+ def registry
15
+ fetch('cat.registry')
16
+ end
17
+ end
18
+ end
19
+ end
@@ -5,6 +5,10 @@ module Faker
5
5
  @hex_color = "#%06x" % (rand * 0xffffff)
6
6
  end
7
7
 
8
+ def color_name
9
+ fetch('color.name')
10
+ end
11
+
8
12
  def single_rgb_color
9
13
  @single_rgb_color = (0..255).to_a.sample
10
14
  @single_rgb_color
@@ -3,7 +3,7 @@ module Faker
3
3
 
4
4
  class << self
5
5
  def color
6
- fetch('commerce.color')
6
+ fetch('color.name')
7
7
  end
8
8
 
9
9
  def department(max = 3, fixed_amount = false)
@@ -8,6 +8,14 @@ module Faker
8
8
  Faker::Base::rand_in_range(from, to)
9
9
  end
10
10
 
11
+ def between_except(from, to, excepted)
12
+ begin
13
+ date = between(from, to)
14
+ end while date == excepted
15
+
16
+ date
17
+ end
18
+
11
19
  def forward(days = 365)
12
20
  from = ::Date.today + 1
13
21
  to = ::Date.today + days
@@ -15,7 +15,7 @@ module Faker
15
15
  end
16
16
 
17
17
  def user_name(specifier = nil, separators = %w(. _))
18
- I18n.with_locale(:en) do
18
+ with_locale(:en) do
19
19
  if specifier.kind_of? String
20
20
  return specifier.scan(/\w+/).shuffle.join(separators.sample).downcase
21
21
  elsif specifier.kind_of? Integer
@@ -72,7 +72,7 @@ module Faker
72
72
  end
73
73
 
74
74
  def domain_name
75
- I18n.with_locale(:en) { [Char.prepare(domain_word), domain_suffix].join('.') }
75
+ with_locale(:en) { [Char.prepare(domain_word), domain_suffix].join('.') }
76
76
  end
77
77
 
78
78
  def fix_umlauts(string)
@@ -122,7 +122,7 @@ module Faker
122
122
  end
123
123
 
124
124
  def ip_v4_cidr
125
- "#{ip_v4_address}/#{[1..32].sample}"
125
+ "#{ip_v4_address}/#{1 + rand(31)}"
126
126
  end
127
127
 
128
128
  def ip_v6_address
@@ -132,7 +132,7 @@ module Faker
132
132
  end
133
133
 
134
134
  def ip_v6_cidr
135
- "#{ip_v6_address}/#{[1..128].sample}"
135
+ "#{ip_v6_address}/#{1 + rand(127)}"
136
136
  end
137
137
 
138
138
  def url(host = domain_name, path = "/#{user_name}")
@@ -0,0 +1,67 @@
1
+ module Faker
2
+ class StarWars < Base
3
+ class << self
4
+ def character
5
+ planets.sample
6
+ end
7
+
8
+ def droid
9
+ droids.sample
10
+ end
11
+
12
+ def planet
13
+ planets.sample
14
+ end
15
+
16
+ def quote
17
+ quotes.sample
18
+ end
19
+
20
+ def specie
21
+ species.sample
22
+ end
23
+
24
+ def vehicle
25
+ vehicles.sample
26
+ end
27
+
28
+ def characters
29
+ ['Padme Amidala', 'Jar Jar Binks', 'Borvo the Hutt', 'Darth Caedus', 'Boba Fett', 'Jabba the Hutt', 'Obi-Wan Kenobi', 'Darth Maul', 'Leia Organa', 'Sheev Palpatine',
30
+ 'Kylo Ren', 'Darth Sidious', 'Anakin Skywalker', 'Luke Skywalker', 'Ben Solo', 'Han Solo', 'Darth Vader', 'Watto', 'Mace Windu', 'Yoda', 'Count Dooku', 'Sebulba',
31
+ 'Qui-Gon Jinn', 'Chewbacca', 'Jango Fett', 'Lando Calrissian', 'Bail Organa', 'Wedge Antilles', 'Poe Dameron', 'Ki-Adi-Mundi', 'Nute Gunray', 'Panaka', 'Rune Haako']
32
+ end
33
+
34
+ def droids
35
+ ['2-1B', '4-LOM', 'ASP', 'B2-RP', 'B1', 'BD-3000', 'FA-4', 'GH-7', 'GNK', 'LM-432', 'ID9', '11-4D', '2-1B', '327-T', '4-LOM', 'B4-D4',
36
+ 'NR-N99', 'C-3PO', 'R2-D2', 'BB-8', 'R2-Q5']
37
+ end
38
+
39
+ def planets
40
+ ['Alderaan', 'Bespin', 'Coruscant', 'DQar', 'Dagobah', 'Endor', 'Geonosis', 'Hoth',
41
+ 'Hosnian Prime', 'Jakku', 'Kamino', 'Kashyyyk', 'Lothal', 'Mustafar', 'Naboo',
42
+ 'Sullust', 'Takodana', 'Tatooine', 'Utapau', 'Yavin']
43
+ end
44
+
45
+ def quotes
46
+ ["Never tell me the odds!", "Well, you said you wanted to be around when I made a mistake.", "You will never find a more wretched hive of scum and villainy. We must be cautious.", "Wars not make one great.",
47
+ "You do have your moments. Not many, but you have them.", "Now, witness the power of this fully operational battle station.", "No reward is worth this.", "Shut him up or shut him down.",
48
+ "I have a bad feeling about this.", "Who\'s the more foolish; the fool, or the fool who follows him?", "Would somebody get this big walking carpet out of my way?", "I find your lack of faith disturbing.",
49
+ "If they follow standard Imperial procedure, they\'ll dump their garbage before they go to light-speed.", "Only at the end do you realize the power of the Dark Side.", "Bounty hunters! We don\'t need this scum.",
50
+ "It\'s not impossible. I used to bullseye womp rats in my T-16 back home, they\'re not much bigger than two meters.", "Strike me down, and I will become more powerful than you could possibly imagine.",
51
+ "You know, that little droid is going to cause me a lot of trouble.", "If you\'re saying that coming here was a bad idea, I\'m starting to agree with you.", "You\'ll find I\'m full of surprises!",
52
+ "Aren\'t you a little short for a Stormtrooper?", "You are unwise to lower your defenses!", "R2-D2, you know better than to trust a strange computer!", "Truly wonderful, the mind of a child is.",
53
+ "That is why you fail.", "A Jedi uses the Force for knowledge and defense, never for attack.", "Adventure. Excitement. A Jedi craves not these things.", "Judge me by my size, do you?",
54
+ "Fear is the path to the dark side... fear leads to anger... anger leads to hate... hate leads to suffering.", "Do. Or do not. There is no try."]
55
+ end
56
+
57
+ def species
58
+ ['Ewok', 'Hutt', 'Gungan', 'Ithorian', 'Jawa', 'Neimoidian', 'Sullustan', 'Wookiee', 'Mon Calamari']
59
+ end
60
+
61
+ def vehicles
62
+ ['V-Wing Fighter', 'ATT Battle Tank', 'Naboo N-1 Starfighter', 'Vulture Droid', 'Republic Cruiser', 'Naboo Royal Starship', 'Gungan Bongo Submarine', 'Flash Speeder', 'Trade Federation Battleship', 'Millennium Falcon',
63
+ 'Sith Infiltrator', 'AT-ST Walker', 'TIE Bomber', 'Imperial Shuttle', 'Sandcrawler', 'TIE Interceptor', 'Speeder Bike', 'Death Star', 'AT-AT Walker', 'Imperial Star Destroyer', 'X-Wing Fighter']
64
+ end
65
+ end
66
+ end
67
+ end
@@ -0,0 +1,25 @@
1
+ module Faker
2
+ class Superhero < Base
3
+ class << self
4
+ def power
5
+ fetch('superhero.power')
6
+ end
7
+
8
+ def prefix
9
+ fetch('superhero.prefix')
10
+ end
11
+
12
+ def suffix
13
+ fetch('superhero.suffix')
14
+ end
15
+
16
+ def descriptor
17
+ fetch('superhero.descriptor')
18
+ end
19
+
20
+ def name
21
+ parse('superhero.name')
22
+ end
23
+ end
24
+ end
25
+ end
@@ -1,3 +1,3 @@
1
1
  module Faker #:nodoc:
2
- VERSION = "1.6.1"
2
+ VERSION = "1.6.2"
3
3
  end
@@ -0,0 +1,24 @@
1
+ # encoding: utf-8
2
+ ca-CAT:
3
+ faker:
4
+ address:
5
+ city: [Amposta, Badalona, Barberà del Vallès, Barcelona, Blanes, Calafell, Cambrils, Castellar del Vallès, Castelldefels, Cerdanyola del Vallès, Cornellà de Llobregat, El Masnou, El Prat de Llobregat, El Vendrell, Esparreguera, Esplugues de Llobregat, Figueres, Gavà, Girona, Granollers, Igualada, Lleida, Lloret de Mar, Manlleu, Manresa, Martorell, Mataró, Molins de Rei, Mollet del Vallès, Montcada i Reixac, Olesa de Montserrat, Olot, Palafrugell, Pineda de Mar, Premià de Mar, Reus, Ripollet, Rubí, Sabadell, Salou, Salt, Sant Adrià de Besòs, Sant Andreu de la Barca, Sant Boi de Llobregat, Sant Cugat del Vallès, Sant Feliu de Guíxols, Sant Feliu de Llobregat, Sant Joan Despí, Sant Pere de Ribes, Sant Vicenç dels Horts, Santa Coloma de Gramenet, Santa Perpètua de Mogoda, Sitges, Tarragona, Terrassa, Tortosa, Valls, Vic, Vila-seca, Viladecans, Vilafranca del Penedès, Vilanova i la Geltrú]
6
+ country: [Afganistan, Albània, Alemanya, Algèria, Andorra, Angola, Antigua i Barbuda, Aràbia Saudita, Argentina, Armènia, Austràlia, Àustria, Azerbaidjan, Bahames, Bahrain, Bangla Desh, Barbados, Bèlgica, Belize, Benín, Bhutan, Bielorússia, Bolívia, Bòsnia i Hercegovina, Botswana, Brasil, Brunei, Bulgària, Burkina Faso, Burundi, Cambodja, Camerun, Canadà, Cap Verd, Catalunya, Ciutat del Vaticà, Colòmbia, Comores, Corea del Nord, Corea del Sud, Costa d''Ivori, Costa Rica, Croàcia, Cuba, Dinamarca, Djibouti, Dominica, Egipte, El Salvador, Emirats Àrabs Units, Equador, Eritrea, Eslovàquia, Eslovènia, Espanya, Estats Federats de Micronèsia, Estats Units, Estònia, Etiòpia, Fiji, Filipines, Finlàndia, França, Gabon, Gàmbia, Geòrgia, Ghana, Grècia, Grenada, Guatemala, Guinea, Guinea Bissau, Guinea Equatorial, Guyana, Haití, Hondures, Hongria, Iemen, Illes Marshall, Índia, Indonèsia, Iran, Iraq, Islàndia, Israel, Itàlia, Jamaica, Japó, Jordània, Kazakhstan, Kenya, Kirguizistan, Kiribati, Kuwait, Laos, Lesotho, Letònia, Líban, Libèria, Líbia, Liechtenstein, Lituània, Luxemburg, Macedònia, Madagascar, Malàisia, Malawi, Maldives, Mali, Malta, Marroc, Maurici, Mauritània, Mèxic, Moçambic, Moldàvia, Mònaco, Mongòlia, Myanmar, Namíbia, Nauru, Nepal, Nicaragua, Níger, Nigèria, Noruega, Nova Zelanda, Oman, Països Baixos, Pakistan, Palau, Panamà, Papua Nova Guinea, Paraguai, Perú, Polònia, Portugal, Qatar, Regne Unit, República Centreafricana, República d''Irlanda, República de la Xina, República del Congo, República Democràtica del Congo, República Dominicana, República Popular de la Xina, República Txeca, Romania, Rússia, Rwanda, Saint Kitts i Nevis, Saint Lucia, Saint Vincent i les Grenadines, Salomó, Samoa Occidental, San Marino, São Tomé i Príncipe, Senegal, Sèrbia i Montenegro, Seychelles, Sierra Leone, Singapur, Síria, Somàlia, Sri Lanka, Sud-àfrica, Sudan, Sudan del Sud, Suècia, Suïssa, Surinam, Swazilàndia, Tadjikistan, Tailàndia, Tanzània, Timor Oriental, Togo, Tonga, Trinitat i Tobago, Tunísia, Turkmenistan, Turquia, Tuvalu, Txad, Ucraïna, Uganda, Uruguai, Uzbekistan, Vanuatu, Veneçuela, Vietnam, Xile, Xipre, Zàmbia, Zimbabwe]
7
+ building_number: [' s/n.', ', #', ', ##', ' #', ' ##']
8
+ street_suffix: [Avinguda, Baixada, Barranc, Barri, Carrer, Camí, Carretera, Coll, Passeig, Plaça, Polígon, Rambla, Riera, Ronda, Torrent, Travessia]
9
+ secondary_address: ['Esc. ###', 'Porta ###']
10
+ postcode: ['#####']
11
+ province: [Barcelona, Girona, Lleida, Tarragona]
12
+ state: [l''Alt Camp, l''Alt Empordà, l''Alt Penedès, l''Alt Urgell, l''Alta Ribagorça, l''Anoia, el Bages, el Baix Camp, el Baix Ebre, el Baix Empordà, el Baix Llobregat, el Baix Penedès, el Barcelonès, el Berguedà, la Cerdanya, la Conca de Barberà, el Garraf, les Garrigues, la Garrotxa, el Gironès, el Maresme, el Moianès, el Montsià, la Noguera, Osona, el Pallars Jussà, el Pallars Sobirà, el Pla d''Urgell, el Pla de l''Estany, el Priorat, la Ribera d''Ebre, el Ripollès, la Segarra, el Segrià, la Selva, el Solsonès, el Tarragonès, la Terra Alta, l''Urgell, la Val d''Aran, el Vallès Occidental, el Vallès Oriental]
13
+ street_name:
14
+ - "#{street_suffix} #{Name.first_name}"
15
+ - "#{street_suffix} #{Name.first_name} #{Name.last_name}"
16
+ - "#{street_suffix} #{country}"
17
+ street_address:
18
+ - "#{street_name}#{building_number}"
19
+ - "#{street_name}#{building_number} #{secondary_address}"
20
+ default_country: [Catalunya]
21
+ phone_number:
22
+ formats: ['9##-###-###', '9##.###.###', '9## ### ###', '9########']
23
+ cell_phone:
24
+ formats: ['6##-###-###', '6##.###.###', '6## ### ###', '6########']