faker 2.9.0 → 2.10.0

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
  SHA256:
3
- metadata.gz: fb9de0d85e1b327fa6244f79aebac217e98ebc8fa2e1c96b272052f4dae9d782
4
- data.tar.gz: 5c7b79154bf09afb0219c2ba318a94ef3d4190945dff8dc2416f4f5f2a9eb6f6
3
+ metadata.gz: '0938b415563e0dddd3814eaa0dfde9e98cff8bd68f4f683f6cde36793281b21a'
4
+ data.tar.gz: 999cac38b416f7d83fce2111813c22d3204d03b646726743f9015a8f3925a8c3
5
5
  SHA512:
6
- metadata.gz: 718fd8fc9fce389081c35e218be9cbff7525deb6b63dcfda5900ab29f594ee4e7e547207be787c2db54db9898f85af860800135ed8598fb249c29157ba4e4ce7
7
- data.tar.gz: af919beb8a106738dfb753d79e689c12f0eea79c5942774f737e0a0d0f345f37c85d25e65a5071b803a2b11ecdb57e74854f3737dd2be50ca2ca3bcd0a7a03d0
6
+ metadata.gz: 4a77efa6a9b01ded0a75bbb8a9c8fa63ab3b467dd7dbabb801ca93d038fe6345cb4a820379e1db45c9d31747416b1421bc9aa30febb2768955b94f8661986191
7
+ data.tar.gz: d57ef2469c699083baefd0d5761ea2c6b4798924e6d7053ee582aecdd0054d692fbcb5c7980a4eb2c3e784b6d61735c0fe188d93d192f6402c149cfc30a80d3e
@@ -1,5 +1,42 @@
1
1
  # Change Log
2
2
 
3
+ ## [v2.10.0](https://github.com/faker-ruby/faker/tree/v2.10.0) (2019-12-28)
4
+
5
+ This version:
6
+ - adds `Faker::Address.mail_box`
7
+ - adds YARD docs
8
+ - fix Ruby 2.7 warnings
9
+ - adds other minor changes
10
+
11
+ ## Bug/Fixes
12
+
13
+ - [PR #1876](https://github.com/faker-ruby/faker/pull/1876) Fix Ruby 2.7 deprecation warnings for the translate method. [@connorshea](https://github.com/connorshea)
14
+ - [PR #1867](https://github.com/faker-ruby/faker/pull/1867) Fix tests failing on Ruby 2.7 [@connorshea](https://github.com/connorshea)
15
+
16
+ ## Chores
17
+
18
+ - [PR #1866](https://github.com/faker-ruby/faker/pull/1866) Upgrade the Gemfile.lock to Bundler 2. [@connorshea](https://github.com/connorshea)
19
+
20
+ ## Documentation
21
+
22
+ - [PR #1873](https://github.com/faker-ruby/faker/pull/1873) Add YARD docs for `Faker::Music{,::Opera}` [@jas14](https://github.com/jas14)
23
+ - [PR #1862](https://github.com/faker-ruby/faker/pull/1862) Update phone number documentation [@aVigorousDev](https://github.com/aVigorousDev)
24
+
25
+ ## Feature Request
26
+
27
+ - [PR #1875](https://github.com/faker-ruby/faker/pull/1875) Add Ruby 2.7 to the CI test matrix. [@connorshea](https://github.com/connorshea)
28
+ - [PR #1568](https://github.com/faker-ruby/faker/pull/1568) Add `Faker::Address.mail_box` and some NZ locale updates [@mermop](https://github.com/mermop)
29
+
30
+ ## Refactoring
31
+
32
+ - [PR #1874](https://github.com/faker-ruby/faker/pull/1874) Extract constants in `Faker::Music` [@jas14](https://github.com/jas14)
33
+
34
+ ## Update local dependencies
35
+
36
+ Update rubocop requirement from = 0.77.0 to = 0.78.0 (#1869)
37
+
38
+ ------------------------------------------------------------------------------
39
+
3
40
  ## [v2.9.0](https://github.com/faker-ruby/faker/tree/v2.9.0) (2019-12-16)
4
41
 
5
42
  This version:
data/README.md CHANGED
@@ -43,7 +43,7 @@ development.
43
43
 
44
44
  ### NOTE
45
45
  * While Faker generates data at random, returned values are not guaranteed to be unique by default.
46
- You must explicity specify when you require unique values, see [details](#ensuring-unique-values).
46
+ You must explicitly specify when you require unique values, see [details](#ensuring-unique-values).
47
47
  Values also can be deterministic if you use the deterministic feature, see [details](#deterministic-random)
48
48
  * This is the `master` branch of Faker and may contain changes that are not yet released.
49
49
  Please refer the README of your version for the available methods.
@@ -151,20 +151,18 @@ module Faker
151
151
 
152
152
  # Call I18n.translate with our configured locale if no
153
153
  # locale is specified
154
- def translate(*args)
155
- opts = args.last.is_a?(Hash) ? args.pop : {}
154
+ def translate(*args, **opts)
156
155
  opts[:locale] ||= Faker::Config.locale
157
156
  opts[:raise] = true
158
- I18n.translate(*args.push(opts))
157
+ I18n.translate(*args, **opts)
159
158
  rescue I18n::MissingTranslationData
160
- opts = args.last.is_a?(Hash) ? args.pop : {}
161
159
  opts[:locale] = :en
162
160
 
163
161
  # Super-simple fallback -- fallback to en if the
164
162
  # translation was missing. If the translation isn't
165
163
  # in en either, then it will raise again.
166
164
  disable_enforce_available_locales do
167
- I18n.translate(*args.push(opts))
165
+ I18n.translate(*args, **opts)
168
166
  end
169
167
  end
170
168
 
@@ -96,6 +96,19 @@ module Faker
96
96
  parse('address.community')
97
97
  end
98
98
 
99
+ ##
100
+ #
101
+ # Produces a mail box number.
102
+ # @return [String]
103
+ #
104
+ # @example
105
+ # Faker::Address.mail_box #=> "PO Box 123"
106
+ #
107
+ # @faker.version 2.9.1
108
+ def mail_box
109
+ bothify(fetch('address.mail_box'))
110
+ end
111
+
99
112
  ##
100
113
  # Produces a Zip Code.
101
114
  #
@@ -18,7 +18,7 @@ module Faker
18
18
  end
19
19
 
20
20
  def iban(legacy_country_code = NOT_GIVEN, country_code: 'GB')
21
- # Each country has it's own format for bank accounts
21
+ # Each country has its own format for bank accounts
22
22
  # Many of them use letters in certain parts of the account
23
23
  # Using regex patterns we can create virtually any type of bank account
24
24
  warn_for_deprecated_arguments do |keywords|
@@ -3,42 +3,128 @@
3
3
  module Faker
4
4
  class Music < Base
5
5
  class << self
6
+ NOTE_LETTERS = %w[C D E F G A B].freeze
7
+ ACCIDENTAL_SIGNS = ['b', '#', ''].freeze
8
+ KEY_TYPES = ['', 'm'].freeze
9
+ CHORD_TYPES = ['', 'maj', '6', 'maj7', 'm', 'm7', '-7', '7', 'dom7', 'dim', 'dim7', 'm7b5'].freeze
10
+
11
+ ##
12
+ # Produces the name of a key/note, using letter notation.
13
+ #
14
+ # @return [String]
15
+ #
16
+ # @example
17
+ # Faker::Music.key #=> "A#"
18
+ #
19
+ # @faker.version 1.6.4
6
20
  def key
7
21
  sample(keys) + sample(key_variants)
8
22
  end
9
23
 
24
+ ##
25
+ # Produces the name of a chord, using letter notation.
26
+ #
27
+ # @return [String]
28
+ #
29
+ # @example
30
+ # Faker::Music.chord #=> "Adim7"
31
+ #
32
+ # @faker.version 1.6.4
10
33
  def chord
11
34
  key + sample(chord_types)
12
35
  end
13
36
 
37
+ ##
38
+ # Produces the name of an instrument.
39
+ #
40
+ # @return [String]
41
+ #
42
+ # @example
43
+ # Faker::Music.instrument #=> "Acoustic Guitar"
44
+ #
45
+ # @faker.version 1.6.4
14
46
  def instrument
15
47
  fetch('music.instruments')
16
48
  end
17
49
 
50
+ ##
51
+ # Produces an array of the letter names of musical notes, without accidentals.
52
+ #
53
+ # @return [Array<String>]
54
+ #
55
+ # @faker.version 1.6.4
18
56
  def keys
19
- %w[C D E F G A B]
57
+ NOTE_LETTERS
20
58
  end
21
59
 
60
+ ##
61
+ # Produces an array of accidentals (with "natural" denoted as an empty string).
62
+ #
63
+ # @return [Array<String>]
64
+ #
65
+ # @faker.version 1.6.4
22
66
  def key_variants
23
- ['b', '#', '']
67
+ ACCIDENTAL_SIGNS
24
68
  end
25
69
 
70
+ ##
71
+ # Produces an array of key types (with "major" denoted as an empty string).
72
+ #
73
+ # @return [Array<String>]
74
+ #
75
+ # @example
76
+ # Faker::Music.key_types #=> ['', 'm']
77
+ #
78
+ # @faker.version 1.6.4
26
79
  def key_types
27
- ['', 'm']
80
+ KEY_TYPES
28
81
  end
29
82
 
83
+ ##
84
+ # Produces an array of types of chords.
85
+ #
86
+ # @return [Array<String>]
87
+ #
88
+ # @faker.version 1.6.4
30
89
  def chord_types
31
- ['', 'maj', '6', 'maj7', 'm', 'm7', '-7', '7', 'dom7', 'dim', 'dim7', 'm7b5']
90
+ CHORD_TYPES
32
91
  end
33
92
 
93
+ ##
94
+ # Produces the name of a band.
95
+ #
96
+ # @return [String]
97
+ #
98
+ # @example
99
+ # Faker::Music.band #=> "The Beatles"
100
+ #
101
+ # @faker.version 1.9.1
34
102
  def band
35
103
  fetch('music.bands')
36
104
  end
37
105
 
106
+ ##
107
+ # Produces the name of an album.
108
+ #
109
+ # @return [String]
110
+ #
111
+ # @example
112
+ # Faker::Music.album #=> "Sgt. Pepper's Lonely Hearts Club"
113
+ #
114
+ # @faker.version 1.9.1
38
115
  def album
39
116
  fetch('music.albums')
40
117
  end
41
118
 
119
+ ##
120
+ # Produces the name of a musical genre.
121
+ #
122
+ # @return [String]
123
+ #
124
+ # @example
125
+ # Faker::Music.genre #=> "Rock"
126
+ #
127
+ # @faker.version 1.9.1
42
128
  def genre
43
129
  fetch('music.genres')
44
130
  end
@@ -5,18 +5,54 @@ module Faker
5
5
  class Music
6
6
  class Opera < Base
7
7
  class << self
8
+ ##
9
+ # Produces the title of an opera by Giuseppe Verdi.
10
+ #
11
+ # @return [String]
12
+ #
13
+ # @example
14
+ # Faker::Music::Opera.verdi #=> "Il Trovatore"
15
+ #
16
+ # @faker.version 1.9.4
8
17
  def verdi
9
18
  fetch('opera.italian.by_giuseppe_verdi')
10
19
  end
11
20
 
21
+ ##
22
+ # Produces the title of an opera by Gioacchino Rossini.
23
+ #
24
+ # @return [String]
25
+ #
26
+ # @example
27
+ # Faker::Music::Opera.rossini #=> "Il Barbiere di Siviglia"
28
+ #
29
+ # @faker.version 1.9.4
12
30
  def rossini
13
31
  fetch('opera.italian.by_gioacchino_rossini')
14
32
  end
15
33
 
34
+ ##
35
+ # Produces the title of an opera by Gaetano Donizetti.
36
+ #
37
+ # @return [String]
38
+ #
39
+ # @example
40
+ # Faker::Music::Opera.donizetti #=> "Lucia di Lammermoor"
41
+ #
42
+ # @faker.version 1.9.4
16
43
  def donizetti
17
44
  fetch('opera.italian.by_gaetano_donizetti')
18
45
  end
19
46
 
47
+ ##
48
+ # Produces the title of an opera by Vincenzo Bellini.
49
+ #
50
+ # @return [String]
51
+ #
52
+ # @example
53
+ # Faker::Music::Opera.bellini #=> "Norma"
54
+ #
55
+ # @faker.version 1.9.4
20
56
  def bellini
21
57
  fetch('opera.italian.by_vincenzo_bellini')
22
58
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Faker #:nodoc:
4
- VERSION = '2.9.0'
4
+ VERSION = '2.10.0'
5
5
  end
@@ -1,19 +1,79 @@
1
1
  # New Zealand formatted data types
2
- # Using Top 20 New Zealand maori baby boys names of 2015
2
+ # Using Top 20 New Zealand Māori baby boys names of 2015
3
3
  # Using Top 20 New Zealand baby boys names of 2015
4
- # Using Top 20 New Zealand maori baby girls names of 2015
4
+ # Using Top 20 New Zealand Māori baby girls names of 2015
5
5
  # Using Top 20 New Zealand baby girls names of 2015
6
+ # Top 50 boys and girls names from 1973, 1989, and 1999
7
+ # plus some common names with accents, macrons, and apostrophes
6
8
  # Using commonly used domain suffixes in New Zealand
7
9
  # Using surnames familiar to New Zealand population
8
10
  # Using popular New Zealand Sport & National Team Names
9
11
 
12
+ # Addresses:
13
+ # https://www.nzpost.co.nz/tools/address-postcode-finder/help/examples
14
+
10
15
  en-NZ:
11
16
  faker:
12
17
  name:
13
- first_name: [Nikau, Ari, Manaia, Wiremu, Kauri, Mikaere, Rawiri, Ihaia, Kai, Manaaki, Tai, Tane, Tamati, Taika, Kahurangi, Tangaroa, Manawa, Ihaka, Tama, Tawhiri, Oliver, Jack, William, James, Benjamin, Mason, Hunter, Charlie, Liam, Jacob, Noah, Thomas, Max, Lucas, George, Samuel, Ryan, Alexander, Ethan, Cooper, Maia, Manaia, Anahera, Ana, Aroha, Kaia, Hana, Ataahua, Tia, Kora, Amaia, Tui, Te Aroha, Kahurangi, Awhina, Manawa, Kara, Aaria, Rui, Te Ao, Olivia, Charlotte, Harper, Sophie, Emily, Ella, Isla, Mia, Amelia, Isabella, Ruby, Grace, Emma, Chloe, Ava, Lucy, Zoe, Mila, Sophia, Lily]
14
- last_name: [Smith, Jones, Williams, Brown, Wilson, Taylor, Johnson, White, Martin, Anderson, Thompson, Nguyen, Thomas, Walker, Harris, Lee, Ryan, Robinson, Kelly, King, Davis, Wright, Evans, Roberts, Green, Hall, Wood, Jackson, Clarke, Patel, Khan, Lewis, James, Phillips, Mason, Mitchell, Rose, Davies, Rodriguez, Cox, Alexander, Garden, Campbell, Johnston, Moore, Smyth, Oneill, Doherty, Stewart, Quinn, Murphy, Graham, Mclaughlin, Hamilton, Murray, Hughes, Robertson, Thomson, Scott, Macdonald, Reid, Clark, Ross, Young, Watson, Paterson, Morrison, Morgan, Griffiths, Edwards, Rees, Jenkins, Owen, Price, Moss, Richards, Abbott, Adams, Armstrong, Bahringer, Bailey, Barrows, Bartell, Bartoletti, Barton, Bauch, Baumbach, Bayer, Beahan, Beatty, Becker, Beier, Berge, Bergstrom, Bode, Bogan, Borer, Bosco, Botsford, Boyer, Boyle, Braun, Bruen, Carroll, Carter, Cartwright, Casper, Cassin, Champlin, Christiansen, Cole, Collier, Collins, Connelly, Conroy, Corkery, Cormier, Corwin, Cronin, Crooks, Cruickshank, Cummings, Damore, Daniel, Dare, Daugherty, Dickens, Dickinson, Dietrich, Donnelly, Dooley, Douglas, Doyle, Durgan, Ebert, Emard, Emmerich, Erdman, Ernser, Fadel, Fahey, Farrell, Fay, Feeney, Feil, Ferry, Fisher, Flatley, Gibson, Gleason, Glover, Goldner, Goodwin, Grady, Grant, Greenfelder, Greenholt, Grimes, Gutmann, Hackett, Hahn, Haley, Hammes, Hand, Hane, Hansen, Harber, Hartmann, Harvey, Hayes, Heaney, Heathcote, Heller, Hermann, Hermiston, Hessel, Hettinger, Hickle, Hill, Hills, Hoppe, Howe, Howell, Hudson, Huel, Hyatt, Jacobi, Jacobs, Jacobson, Jerde, Johns, Keeling, Kemmer, Kessler, Kiehn, Kirlin, Klein, Koch, Koelpin, Kohler, Koss, Kovacek, Kreiger, Kris, Kuhlman, Kuhn, Kulas, Kunde, Kutch, Lakin, Lang, Langworth, Larkin, Larson, Leannon, Leffler, Little, Lockman, Lowe, Lynch, Mann, Marks, Marvin, Mayer, Mccullough, Mcdermott, Mckenzie, Miller, Mills, Monahan, Morissette, Mueller, Muller, Nader, Nicolas, Nolan, O''connell, O''conner, O''hara, O''keefe, Olson, O''reilly, Parisian, Parker, Quigley, Reilly, Reynolds, Rice, Ritchie, Rohan, Rolfson, Rowe, Russel, Rutherford, Sanford, Sauer, Schmidt, Schmitt, Schneider, Schroeder, Schultz, Shields, Smitham, Spencer, Stanton, Stark, Stokes, Swift, Tillman, Towne, Tremblay, Tromp, Turcotte, Turner, Walsh, Walter, Ward, Waters, Weber, Welch, West, Wilderman, Wilkinson, Williamson, Windler, Wolf]
18
+ first_name: [
19
+ Aaria, Aaron, Abigail, Adam, Adrian, Adrienne, Aimee, Alan, Alana, Alex, Alexander, Alexandra, Alice, Alicia, Alison, Allan, Alyssa,
20
+ Amaia, Amanda, Amber, Amelia, Amy, Ana, Anahera, Andrea, Andrew, Angel, Angela, Anita, Ann, Anna, Anne, Annette, Anthony, Antony,
21
+ Ari, Aroha, Arthur, Ashleigh, Ashley, Ataahua, Ava, Awhina, Bailey, Barbara, Barry, Belinda, Ben, Benjamin, Bernard, Bevan, Beverley,
22
+ Blair, Bradley, Brenda, Brendan, Brendon, Brent, Brett, Brian, Briana, Brianna, Bridget, Britney, Brittany, Bronwyn, Brooke, Brooklyn,
23
+ Bruce, Bryan, Caitlin, Caitlyn, Caleb, Callum, Cameron, Carl, Carmen, Carol, Caroline, Carolyn, Casey, Cassandra, Catherine, Charles,
24
+ Charlie, Charlotte, Chelsea, Cherie, Cheryl, Cheyenne, Chloe, Chloé, Christina, Christine, Christopher, Claire, Claudia, Clinton, Cody, Colin,
25
+ Colleen, Cooper, Corey, Courtney, Craig, Crystal, Damian, Damon, Daniel, Danielle, Darren, Darryl, David, Dean, Debbie, Deborah, Debra,
26
+ Denis, Denise, Dennis, Derek, Desmond, Destiny, Diana, Diane, Dianne, Dion, Donald, Donna, Dorothy, Douglas, Duncan, Dylan, Eden, Edward,
27
+ Elaine, Elizabeth, Ella, Emily, Emma, Eric, Erin, Ethan, Faith, Fiona, Frances, Francis, Frederick, Gabrielle, Gail, Gareth, Garry, Gary, Gavin,
28
+ Gemma, Geoffrey, George, Georgia, Gerard, Gillian, Gina, Glen, Glenda, Glenn, Glenys, Gloria, Gordon, Grace, Graeme, Graham, Grant, Gregory, Hamish,
29
+ Hana, Hannah, Harley, Harper, Hayden, Hayley, Heather, Helen, Henry, Holly, Hope, Hunter, Ian, Ihaia, Ihaka, Irene, Isaac, Isabella, Isla, Ivan,
30
+ Jack, Jacob, Jacqueline, Jade, James, Jamie, Jan, Jane, Janet, Janice, Janine, Jared, Jasmine, Jason, Jeanette, Jeffrey, Jenna, Jennifer, Jeremy,
31
+ Jesse, Jessica, Jessie, Jill, Jillian, Joan, Joanna, Joanne, Jocelyn, Joel, John, Jonathan, Jonathon, Jordan, Joseph, Josephine, Joshua, Joy,
32
+ Judith, Julia, Julie, Junior, Justin, Justine, Kahurangi, Kai, Kaia, Kaitlin, Kane, Kara, Karen, Karl, Kate, Katelyn, Katherine, Kathleen,
33
+ Kathryn, Katie, Katrina, Kauri, Kay, Kayla, Keith, Kellie, Kelly, Kelsey, Kelvin, Kenneth, Kerry, Kevin, Kieran, Kim, Kimberley, Kirsten,
34
+ Kirsty, Kora, Krystal, Kurt, Kyle, Kylie, Lance, Laura, Lauren, Lawrence, Leah, Leanne, Lee, Leon, Leonie, Lesley, Leslie, Liam, Lily, Linda,
35
+ Lindsay, Lisa, Logan, Lois, Lorraine, Louise, Lucas, Lucy, Luke, Lydia, Lynda, Lynette, Lynn, Lynne, Lynnette, Maddison, Madeleine, Madison,
36
+ Maia, Malcolm, Manaaki, Manaia, Manawa, Marcus, Maree, Margaret, Maria, Marian, Marie, Marilyn, Marion, Mark, Martin, Mary, Mason,
37
+ Matai, Mathew, Matthew, Maureen, Maurice, Max, Meg, Megan, Melanie, Melissa, Mervyn, Mia, Michael, Michaela, Michelle, Mikaere, Mikayla,
38
+ Mila, Mitchell, Moana, Molly, Monique, Morgan, Murray, Mārama, Nadine, Natalie, Natasha, Nathan, Neil, Neville, Ngaire, Niamh, Nicholas,
39
+ Nicola, Nicole, Nigel, Nikau, Nikita, Noah, Noel, Norman, Oliver, Olivia, Owen, Paige, Pamela, Paris, Patricia, Patrick, Paul, Paula,
40
+ Pauline, Penelope, Peter, Philip, Philippa, Phillip, Phoebe, Rachael, Rachel, Rachelle, Raewyn, Rawiri, Raymond, Rebecca, Rebekah,
41
+ Renee, Renée, Rex, Rhys, Richard, Ricky, Robert, Robin, Robyn, Rochelle, Rodney, Roger, Ronald, Rory, Rose, Rosemary, Ross, Roy, Ruby, Rui,
42
+ Russell, Ruth, Ryan, Rāwiri, Sally, Sam, Samantha, Samuel, Sandra, Sapa'u, Sara, Sarah, Scott, Sean, Shane, Shania, Shannon, Sharlene, Sharon,
43
+ Shaun, Shelley, Sheryl, Shirley, Shona, Simon, Sione, Sophia, Sophie, Stacey, Stephanie, Stephen, Steven, Stewart, Stuart, Summer,
44
+ Susan, Suzanne, Tai, Taika, Tama, Tamara, Tamati, Tane, Tangaroa, Tania, Tanya, Tara, Tawhiri, Tayla, Taylor, Te Ao, Te Ariki, Te Aroha,
45
+ Te Whiti, Terence, Teresa, Tessa, Thomas, Tia, Tiana, Timothy, Tina, Todd, Toni, Tony, Tracey, Tracy, Trent, Trevor, Troy, Tui, Tyla,
46
+ Tyson, Valerie, Vanessa, Vicki, Victoria, Vincent, Virginia, Vivienne, Warren, Wayne, Wendy, William, Wiremu, Yvonne, Zachary, Zane, Zoe, Zoë
47
+ ]
48
+ surname: [
49
+ Smith, Jones, Williams, Brown, Wilson, Taylor, Johnson, White, Martin, Anderson, Thompson, Nguyen, Thomas, Walker, Harris, Lee, Ryan, Robinson,
50
+ Kelly, King, Davis, Wright, Evans, Roberts, Green, Hall, Wood, Jackson, Clarke, Patel, Khan, Lewis, James, Phillips, Mason, Mitchell, Rose, Davies,
51
+ Rodriguez, Cox, Alexander, Garden, Campbell, Johnston, Moore, Smyth, Oneill, Doherty, Stewart, Quinn, Murphy, Graham, Mclaughlin, Hamilton, Murray,
52
+ Hughes, Robertson, Thomson, Scott, Macdonald, Reid, Clark, Ross, Young, Watson, Paterson, Morrison, Morgan, Griffiths, Edwards, Rees, Jenkins, Owen,
53
+ Price, Moss, Richards, Abbott, Adams, Armstrong, Bahringer, Bailey, Barrows, Bartell, Bartoletti, Barton, Bauch, Baumbach, Bayer, Beahan, Beatty, Becker,
54
+ Beier, Berge, Bergstrom, Bode, Bogan, Borer, Bosco, Botsford, Boyer, Boyle, Braun, Bruen, Carroll, Carter, Cartwright, Casper, Cassin, Champlin, Christiansen,
55
+ Cole, Collier, Collins, Connelly, Conroy, Corkery, Cormier, Corwin, Cronin, Crooks, Cruickshank, Cummings, Damore, Daniel, Dare, Daugherty, Dickens, Dickinson,
56
+ Dietrich, Donnelly, Dooley, Douglas, Doyle, Durgan, Ebert, Emard, Emmerich, Erdman, Ernser, Fadel, Fahey, Farrell, Fay, Feeney, Feil, Ferry, Fisher, Flatley,
57
+ Gibson, Gleason, Glover, Goldner, Goodwin, Grady, Grant, Greenfelder, Greenholt, Grimes, Gutmann, Hackett, Hahn, Haley, Hammes, Hand, Hane, Hansen, Harber,
58
+ Hartmann, Harvey, Hayes, Heaney, Heathcote, Heller, Hermann, Hermiston, Hessel, Hettinger, Hickle, Hill, Hills, Hoppe, Howe, Howell, Hudson, Huel, Hyatt,
59
+ Jacobi, Jacobs, Jacobson, Jerde, Johns, Keeling, Kemmer, Kessler, Kiehn, Kirlin, Klein, Koch, Koelpin, Kohler, Koss, Kovacek, Kreiger, Kris, Kuhlman, Kuhn,
60
+ Kulas, Kunde, Kutch, Lakin, Lang, Langworth, Larkin, Larson, Leannon, Lee, Leffler, Li, Little, Lockman, Lowe, Lynch, Mann, Marks, Marvin, Mayer, McCullough,
61
+ McDermott, McLean, Maclean, McPherson, Macpherson, MacPherson, McCann, McLeod, Macleod, McKenzie, Mackenzie, MacKenzie,
62
+ Mckenzie, Miller, Mills, Monahan, Morissette, Mueller, Muller, Nader, Ng, Nicolas, Nolan, O'Connell, O'Conner, O'Hara, O'Keefe, Olson, O'Reilly, Parisian, Parker,
63
+ Quigley, Reilly, Reynolds, Rice, Ritchie, Rohan, Rolfson, Rowe, Russel, Rutherford, Sanford, Sauer, Schmidt, Schmitt, Schneider, Schroeder, Schultz, Shields, Smitham,
64
+ Spencer, Stanton, Stark, Stokes, Swift, Tillman, Towne, Tremblay, Tromp, Turcotte, Turner, Walsh, Walter, Ward, Waters, Weber, Welch, West, Wilderman, Wilkinson,
65
+ Williamson, Windler, Wolf, Henare, Ngata, Parata, Turei, Taumata, Te Whiti, Ka'ai, Ruakere, Te Kanawa, Tamahori, Curtis, Arahanga, Waititi,
66
+ Vainu'upo, Feu'u, Tagaloa, Laga'aia, Iosefo, Lotu-Iiga, Taule'alo, Singh, Wang, Montgomery, Zhang, Kumar, Liu, Chen, Huang, Wu, Yang, Wong, Xu, Kim,
67
+ Zhou,
68
+ ]
69
+ last_name:
70
+ - "#{surname}"
71
+ - "#{surname}-#{surname}"
72
+ - "#{surname} #{surname}"
15
73
  name_with_middle:
16
74
  - "#{first_name} #{last_name} #{last_name}"
75
+ - "#{first_name} #{first_name} #{last_name}"
76
+ suffix: [Jr., Sr., I, II, III, IV, V, ONZM, OBE, GNZM, KNZM, CNZM, MNZM]
17
77
  company:
18
78
  suffix: [Ltd, Ltc, and Sons, Group, Brothers, Partners]
19
79
  internet:
@@ -22,10 +82,72 @@ en-NZ:
22
82
  region_abbr: [NTL, AUK, WKO, BOP, GIS, HKB, TKI, MWT, WGN, TAS, NSN, MBH, WTC, CAN, OTA, STL]
23
83
  region: [Northland, Auckland, Waikato, Bay of Plenty, Gisborne, Hawkes Bay, Taranaki, Manawatu, Wellington, Tasman, Nelson, Marlborough, West Coast, Canterbury, Otago, Southland]
24
84
  postcode: ['0###', '2###', '3###', '4###', '5###', '6###', '7###', '8###', '9###']
25
- building_number: ['####', '###', '##']
26
- street_suffix: [Avenue, Boulevard, Circle, Circuit, Court, Crescent, Crest, Drive, Estate Dr, Grove, Hill, Island, Junction, Knoll, Lane, Loop, Mall, Manor, Meadow, Mews, Parade, Parkway, Pass, Place, Plaza, Ridge, Road, Run, Square, Station St, Street, Summit, Terrace, Track, Trail, View Rd, Way]
85
+ building_number: ['####', '###', '##', '#/##', '#/#', '#?', '?/##', '?/##?']
86
+ secondary_address: ['RD #', 'Apt #', 'Unit #', 'Level #']
87
+ place_names: [
88
+ Kauri, Tōtara, Kowhai, Rata, Pohutakawa, Tawa, Pine, Koromiko, Redwood, Hinau, Manuka, Kanuka, Kawakawa, Ngaio, Karo, Puriri, Rewarewa, Karamu, Ti Kouka,
89
+ Hospital, School, College, Tip, Landfill, Railway, Station, Wharf, Aerodrome,
90
+ Boundary, Ridgeway, Golf, Bridge, Coach, Airport,
91
+ Chapel, Church, Cathedral,
92
+ Green, Blue, White, Black, Yellow, Short, Long,
93
+ Kereru, Kiwi, Weka, Pukeko, Morepork, Ruru, Fantail, Pīwakawaka, Kea, Kaka, Kakariki, Kakapō,
94
+ Kumara, Potato, Rabbit
95
+ ]
96
+ landscape_elements: [
97
+ Beach, Sea, Ocean, Lake, Moana, River, Roto, Awa, Hill, Mountain, Mount, Pa, Maunga, Gardens,
98
+ Island, Bay, Park, Cave, Glacier, Creek, Panorama, Valley, Flat
99
+ ]
100
+ community_prefix: [
101
+ South, North, East, West
102
+ ]
103
+ community_suffix: [
104
+ ton, toun, town
105
+ ]
106
+ colonialism: [
107
+ Queen, Queens, Victoria, London, Dominion, Albert, Tudor, Windsor, Shakespeare, Oxford, Cambridge, Trafalgar
108
+ ]
109
+ the: [
110
+ The, New, Old, Main
111
+ ]
112
+ community:
113
+ - "#{Name.surname}#{community_suffix}"
114
+ - "#{place_names}#{community_suffix}"
115
+ - "#{place_names} #{landscape_elements}"
116
+ - "#{community_prefix} #{place_names}"
117
+ street_name:
118
+ - "#{Name.first_name} #{street_suffix}"
119
+ - "St #{Name.first_name} #{street_suffix}"
120
+ - "#{Name.last_name} #{street_suffix}"
121
+ - "#{the} #{street_suffix}"
122
+ - "#{colonialism} #{street_suffix}"
123
+ - "#{colonialism} #{landscape_elements} #{street_suffix}"
124
+ - "#{landscape_elements} #{street_suffix}"
125
+ - "#{the} #{landscape_elements} #{street_suffix}"
126
+ - "#{the} #{place_names}"
127
+ - "#{place_names} #{street_suffix}"
128
+ street_suffix: [
129
+ Avenue, Boulevard, Circle, Circuit, Court, Crescent, Crest, Drive, Estate Dr, Grove, Hill, Junction, Knoll, Lane, Loop, Mall, Manor, Meadow,
130
+ Mews, Parade, Pass, Place, Plaza, Ridge, Road, Run, Square, Street, St, Summit, Terrace, Track, Trail, View Road, Way, Esplanade
131
+ ]
27
132
  default_country: [New Zealand]
28
-
133
+ city: [
134
+ Auckland, Wellington, Christchurch, Hamilton, Tauranga, Napier, Hastings, Dunedin,
135
+ Palmerston North, Nelson, Rotorua, Whangarei, New Plymouth,
136
+ Invercargill, Whanganui, Gisborne, Ngāruawahia, Manukau, Kāpiti, Kaikōura, Ōamaru, Rānui, Waiharakeke,
137
+ Greymouth, Hokitika, Franz Josef, Fox Glacier, Winton, Kaitaia,
138
+ ]
139
+ mail_box:
140
+ - "PO Box ##"
141
+ - "PO Box #####"
142
+ - "CMB ##"
143
+ - "CMB C#"
144
+ full_address:
145
+ - "#{street_address}, #{city} #{postcode}"
146
+ - "#{street_address}, #{secondary_address}, #{city} #{postcode}"
147
+ - "#{street_address}, #{community}, #{city} #{postcode}"
148
+ - "#{street_address}, #{community}, #{city} #{postcode}"
149
+ - "#{mail_box} #{community} #{postcode}"
150
+ - "#{mail_box}, #{community}, #{city} #{postcode}"
29
151
  phone_number:
30
152
  formats: ['0# ### ####', '+64 # ### ####']
31
153
  cell_phone:
@@ -36,4 +158,4 @@ en-NZ:
36
158
 
37
159
  team:
38
160
  sport: [basketball, football, rugby league, netball, rugby union, hockey, cricket, golf, boxing, rowing, motorsport, tennis, athletics, sailing, surf life saving, squash]
39
- name: [Tall Blacks, All Whites, Warriors, Silver Ferns, All Blacks, Black Sticks, Black Caps]
161
+ name: [Tall Blacks, All Whites, Warriors, Silver Ferns, All Blacks, Black Sticks, Black Caps]
@@ -578,4 +578,8 @@ en:
578
578
  full_address:
579
579
  - "#{street_address}, #{city}, #{state_abbr} #{zip_code}"
580
580
  - "#{secondary_address} #{street_address}, #{city}, #{state_abbr} #{zip_code}"
581
+ mail_box:
582
+ - "PO Box ##"
583
+ - "PO Box ###"
584
+ - "PO Box ####"
581
585
  default_country: [United States of America]
@@ -1,7 +1,7 @@
1
1
  en:
2
2
  faker:
3
3
  phone_number:
4
- formats: ['###-###-####', '(###) ###-####', '1-###-###-####', '###.###.####', '###-###-####', '(###) ###-####', '1-###-###-####', '###.###.####', '###-###-#### x###', '(###) ###-#### x###', '1-###-###-#### x###', '###.###.#### x###', '###-###-#### x####', '(###) ###-#### x####', '1-###-###-#### x####', '###.###.#### x####', '###-###-#### x#####', '(###) ###-#### x#####', '1-###-###-#### x#####', '###.###.#### x#####']
4
+ formats: ['###-###-####', '(###) ###-####', '1-###-###-####', '###.###.####', '###-###-#### x###', '(###) ###-#### x###', '1-###-###-#### x###', '###.###.#### x###', '###-###-#### x####', '(###) ###-#### x####', '1-###-###-#### x####', '###.###.#### x####', '###-###-#### x#####', '(###) ###-#### x#####', '1-###-###-#### x#####', '###.###.#### x#####']
5
5
  cell_phone:
6
6
  formats: ['###-###-####', '(###) ###-####', '1-###-###-####', '###.###.####']
7
7
  country_code: ["1", "1-242", "1-246", "1-264", "1-268", "1-284", "1-340", "1-345", "1-441", "1-473", "1-649", "1-670", "1-671", "1-684", "1-758", "1-784", "1-787", "1-868", "1-869", "1-876", "1-939", "20", "212", "213", "216", "218", "220", "221", "222", "223", "224", "225", "226", "227", "228", "229", "230", "231", "232", "233", "234", "235", "236", "238", "238", "239", "240", "241", "242", "243", "244", "245", "247", "248", "249", "250", "251", "252", "253", "254", "255", "256", "257", "258", "260", "261", "262", "263", "264", "265", "266", "267", "268", "269", "269", "27", "290", "291", "297", "298", "299", "30", "31", "32", "33", "33", "34", "350", "351", "352", "353", "354", "355", "356", "357", "358", "359", "36", "370", "371", "372", "373", "374", "375", "376", "378", "380", "381", "381", "381", "385", "386", "387", "389", "39", "39", "40", "41", "420", "421", "423", "43", "44", "45", "46", "47", "48", "49", "500", "501", "502", "503", "504", "505", "506", "507", "508", "509", "51", "52", "53", "54", "55", "56", "57", "58", "591", "592", "593", "594", "595", "596", "596", "597", "598", "599", "60", "61", "61-8", "62", "63", "64", "65", "66", "670", "672", "673", "674", "675", "676", "677", "678", "679", "680", "681", "682", "683", "685", "686", "687", "688", "689", "690", "691", "692", "7", "7-6", "7-7", "767", "809", "809", "809", "81", "82", "84", "850", "850", "852", "853", "855", "855", "856", "86", "880", "886", "886", "90", "91", "92", "93", "94", "95", "960", "961", "962", "963", "964", "965", "966", "967", "968", "971", "972", "973", "974", "975", "976", "977", "98", "993", "994", "995", "996"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: faker
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.9.0
4
+ version: 2.10.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Benjamin Curtis
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2019-12-16 00:00:00.000000000 Z
12
+ date: 2019-12-28 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: i18n
@@ -79,14 +79,14 @@ dependencies:
79
79
  requirements:
80
80
  - - '='
81
81
  - !ruby/object:Gem::Version
82
- version: 0.77.0
82
+ version: 0.78.0
83
83
  type: :development
84
84
  prerelease: false
85
85
  version_requirements: !ruby/object:Gem::Requirement
86
86
  requirements:
87
87
  - - '='
88
88
  - !ruby/object:Gem::Version
89
- version: 0.77.0
89
+ version: 0.78.0
90
90
  - !ruby/object:Gem::Dependency
91
91
  name: simplecov
92
92
  requirement: !ruby/object:Gem::Requirement
@@ -561,8 +561,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
561
561
  - !ruby/object:Gem::Version
562
562
  version: '0'
563
563
  requirements: []
564
- rubyforge_project:
565
- rubygems_version: 2.7.10
564
+ rubygems_version: 3.0.4
566
565
  signing_key:
567
566
  specification_version: 4
568
567
  summary: Easily generate fake data