From 1a96fa6f6ca38ab5aa5a64b1a855c634ebcb8a22 Mon Sep 17 00:00:00 2001 From: Yuri Pereira Constante Date: Sun, 16 Jun 2024 15:48:37 -0300 Subject: [PATCH 01/92] Use :rand.uniform for random_between --- lib/faker/random/test.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/faker/random/test.ex b/lib/faker/random/test.ex index 254faf212..7eae95d76 100644 --- a/lib/faker/random/test.ex +++ b/lib/faker/random/test.ex @@ -3,7 +3,7 @@ defmodule Faker.Random.Test do def random_between(left, right) do set_seed(:ets.lookup(:seed_registry, self())) - Enum.random(left..right) + left + :rand.uniform(right - left + 1) - 1 end def random_bytes(total) do From a692be35e9e7d04e3fb76021fa7b416e471cd14a Mon Sep 17 00:00:00 2001 From: Yuri Pereira Constante Date: Sun, 16 Jun 2024 15:48:50 -0300 Subject: [PATCH 02/92] Update tests --- lib/faker/phone/en_gb.ex | 16 ++++++++-------- lib/faker/vehicle.ex | 8 ++++---- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/lib/faker/phone/en_gb.ex b/lib/faker/phone/en_gb.ex index 643d015a7..5da9c86b7 100644 --- a/lib/faker/phone/en_gb.ex +++ b/lib/faker/phone/en_gb.ex @@ -31,13 +31,13 @@ defmodule Faker.Phone.EnGb do ## Examples iex> Faker.Phone.EnGb.number() - "+44054264610" + "+44042646108" iex> Faker.Phone.EnGb.number() - "+44562970523" + "07897 052357" iex> Faker.Phone.EnGb.number() - "+447502 030320" + "+44803032097" iex> Faker.Phone.EnGb.number() - "+447933 760337" + "+447776 033745" """ @spec number() :: String.t() def number do @@ -54,13 +54,13 @@ defmodule Faker.Phone.EnGb do ## Examples iex> Faker.Phone.EnGb.landline_number() - "+44331542646" + "+44335426461" iex> Faker.Phone.EnGb.landline_number() - "+44560832970" + "+44343297052" iex> Faker.Phone.EnGb.landline_number() - "+44023570203" + "+44567020303" iex> Faker.Phone.EnGb.landline_number() - "+44703209733" + "+44709733760" """ @spec landline_number() :: String.t() def landline_number do diff --git a/lib/faker/vehicle.ex b/lib/faker/vehicle.ex index 5a20a9d66..b621a2cd8 100644 --- a/lib/faker/vehicle.ex +++ b/lib/faker/vehicle.ex @@ -248,13 +248,13 @@ defmodule Faker.Vehicle do ## Examples iex> Faker.Vehicle.vin() - "1C68203VCV0360337" + "1C689K5Y000T03374" iex> Faker.Vehicle.vin() - "5190V7FL8YX113016" + "D0B19RGCD90H16449" iex> Faker.Vehicle.vin() - "4RSE9035H9JA97940" + "RSE90354760B00530" iex> Faker.Vehicle.vin() - "59E4A13G890C97377" + "L9Z63TST830A76983" """ def vin do Util.format("%10x%y%x%5d", From 9fb79f4eb36af07e1b8ff242dac2dcefed6a1b0b Mon Sep 17 00:00:00 2001 From: Yuri Pereira Constante Date: Sun, 16 Jun 2024 16:04:46 -0300 Subject: [PATCH 03/92] Use random_betwen for random_bytes --- lib/faker/random/test.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/faker/random/test.ex b/lib/faker/random/test.ex index 7eae95d76..00b08c720 100644 --- a/lib/faker/random/test.ex +++ b/lib/faker/random/test.ex @@ -9,7 +9,7 @@ defmodule Faker.Random.Test do def random_bytes(total) do set_seed(:ets.lookup(:seed_registry, self())) - Stream.repeatedly(fn -> Enum.random(0..255) end) + Stream.repeatedly(fn -> random_between(0, 255) end) |> Enum.take(total) |> IO.iodata_to_binary() end From b0854cb73f61df2a5968d4b3eff0e92587ff7613 Mon Sep 17 00:00:00 2001 From: Yuri Pereira Constante Date: Sun, 16 Jun 2024 16:22:57 -0300 Subject: [PATCH 04/92] Use random_uniform to shuffle data --- lib/faker/internet.ex | 10 +++++----- lib/faker/markdown.ex | 12 ++++++------ 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/lib/faker/internet.ex b/lib/faker/internet.ex index af08ee4de..18d112eaa 100644 --- a/lib/faker/internet.ex +++ b/lib/faker/internet.ex @@ -4,7 +4,7 @@ defmodule Faker.Internet do alias Faker.Util import Faker.Util, only: [pick: 1] - import Faker, only: [localize: 1] + import Faker, only: [localize: 1, random_uniform: 0] @moduledoc """ Functions for generating internet related data @@ -292,11 +292,11 @@ defmodule Faker.Internet do ## Examples iex> Faker.Internet.slug() - "sint-deleniti-consequatur-ut" + "deleniti-sint-consequatur-ut" iex> Faker.Internet.slug() - "sit_et" + "cumque_sit_aut_expedita" iex> Faker.Internet.slug(["foo", "bar"]) - "foo-bar" + "foo_bar" iex> Faker.Internet.slug(["foo", "bar"], ["."]) "foo.bar" """ @@ -313,7 +313,7 @@ defmodule Faker.Internet do @spec slug([String.t()], [String.t()]) :: String.t() def slug(words, glue) do words - |> Enum.take_random(length(words)) + |> Enum.sort_by(fn _ -> random_uniform() end) |> Enum.join(pick(glue)) |> String.downcase() end diff --git a/lib/faker/markdown.ex b/lib/faker/markdown.ex index 53700ab53..2246e13b5 100644 --- a/lib/faker/markdown.ex +++ b/lib/faker/markdown.ex @@ -1,5 +1,5 @@ defmodule Faker.Markdown do - import Faker, only: [random_between: 2] + import Faker, only: [random_between: 2, random_uniform: 0] alias Faker.Lorem alias Faker.Util @@ -191,13 +191,13 @@ defmodule Faker.Markdown do ## Examples iex> Faker.Markdown.markdown() - "cumque | est | necessitatibus\\n---- | ---- | ----\\nbeatae | ex | sunt\\nsoluta | possimus | soluta\\nasperiores | qui | vitae\\n\\n* Et vitae vitae ut quisquam corporis quisquam ab harum ipsa.\\n* Numquam maxime ut aut inventore eius rerum beatae.\\n* Qui officia vel quaerat expedita.\\n* Perspiciatis rerum nam repellendus inventore nihil.\\n\\n`Sequi ducimus qui voluptates magni quisquam sed odio.`\\n\\n```elixir\\nError non impedit tempora minus voluptatem qui fugit.\\n```\\n\\n### Cupiditate" + "## Aut\\n\\n```ruby\\nBeatae ex sunt soluta possimus soluta asperiores qui vitae animi.\\n```\\n\\n`Et vitae vitae ut quisquam corporis quisquam ab harum ipsa.`\\n\\n* Maxime ut aut inventore eius rerum beatae?\\n* Qui officia vel quaerat expedita.\\n* Perspiciatis rerum nam repellendus inventore nihil.\\n* Sequi ducimus qui voluptates magni quisquam sed odio.\\n* Vel error non impedit tempora minus.\\n\\nfugit | cupiditate | fuga | ab\\n---- | ---- | ---- | ----\\nconsectetur | harum | earum | possimus\\ntotam | nobis | provident | quisquam\\nmodi | accusantium | eligendi | numquam" iex> Faker.Markdown.markdown() - "_Illo_ voluptas quod blanditiis est non id quibusdam qui omnis. Odit dicta dolores at ut delectus magni atque eos? Labore voluptate laudantium qui.\\n\\n### Voluptatibus\\n\\nullam | similique | minima | laudantium\\n---- | ---- | ---- | ----\\nvoluptate | reiciendis | repellat | et\\npraesentium | quia | sed | nemo\\nminus | ea | vero | repellat\\ncumque | nihil | similique | repudiandae\\ncorrupti | rerum | sed | similique\\naccusamus | suscipit | perspiciatis | cum" + "Odit dicta dolores at ut delectus magni atque eos? Labore voluptate laudantium ~qui.~ Voluptatibus sed et enim ullam?\\n\\n1. Repellat et praesentium quia sed nemo minus ea!\\n2. Cumque nihil similique repudiandae corrupti!\\n3. Similique accusamus suscipit perspiciatis cum.\\n4. Dolore et ut earum possimus eos reprehenderit cupiditate omnis et.\\n5. Sit delectus possimus quo et est culpa eum ex?\\n6. Aut aut aut quisquam?\\n7. Tenetur alias est provident esse dicta ea illo consequatur maiores?" iex> Faker.Markdown.markdown() - "```erlang\\nSit delectus possimus quo et est culpa eum ex?\\n```\\n\\n1. Aut aut quisquam labore fuga tenetur alias.\\n2. Esse dicta ea illo consequatur!\\n3. Et quia culpa sunt sit eius cumque porro ut eum.\\n4. Id maxime dolorum animi!\\n5. Deserunt ipsa consequuntur eveniet asperiores.\\n6. Quia numquam voluptas vitae repellat tempore.\\n7. Harum voluptas harum modi omnis quam dolor a aliquam officiis?\\n8. Neque voluptas consequatur sed cupiditate dolorum pariatur et.\\n9. Aut voluptatem natus amet eius eos non dolorum.\\n\\n`Pariatur ex illo aliquam rerum ab voluptatem exercitationem nobis enim.`\\n\\nCorporis **unde** ex enim dolore ut consequuntur eaque! Eius totam nobis est." + "* Porro est id maxime dolorum animi.\\n* Deserunt ipsa consequuntur eveniet asperiores.\\n* Quia numquam voluptas vitae repellat tempore.\\n* Harum voluptas harum modi omnis quam dolor a aliquam officiis?\\n* Neque voluptas consequatur sed cupiditate dolorum pariatur et.\\n* Aut voluptatem natus amet eius eos non dolorum.\\n* Pariatur ex illo aliquam rerum ab voluptatem exercitationem nobis enim.\\n* Eos corporis unde ex enim dolore ut consequuntur.\\n* Dicta eius totam nobis est a eveniet ab magni.\\n* Consequatur unde dolorem et nihil laudantium ea veniam necessitatibus." iex> Faker.Markdown.markdown() - "Qui iusto quisquam minus ad omnis quaerat quidem _impedit!_ Qui id ut repellat qui repudiandae quia cumque excepturi laudantium.\\n\\n`Non consequatur molestiae laboriosam sit!`\\n\\n## Aperiam" + "1. Repellat qui repudiandae quia cumque excepturi laudantium accusantium!\\n2. Sunt non consequatur molestiae laboriosam sit aperiam.\\n3. Voluptatem est beatae delectus minus qui molestiae dolorem aut.\\n4. Iure enim sapiente quia voluptas esse!\\n\\n```go\\nVoluptas ullam ratione et esse optio qui ut sed dignissimos!\\n```\\n\\nsaepe | a | illo\\n---- | ---- | ----\\nut | eos | aliquid\\nquisquam | omnis | magni\\nconsequuntur | molestiae | expedita\\n\\n* Ducimus est nulla repellat reiciendis est est veritatis.\\n* Quaerat assumenda ut reiciendis eaque in!\\n* Aliquam quis sapiente facere?\\n* Nihil suscipit pariatur qui." """ @spec markdown() :: String.t() def markdown do @@ -213,7 +213,7 @@ defmodule Faker.Markdown do |> Enum.filter(fn _ -> Util.pick([true, false]) end) - |> Enum.shuffle() + |> Enum.sort_by(fn _ -> random_uniform() end) |> Stream.map(fn fun -> apply(__MODULE__, fun, []) end) From 004f7bf130776b8ddc4f13da2bab9f488fe7309e Mon Sep 17 00:00:00 2001 From: Yuri Pereira Constante Date: Sun, 16 Jun 2024 16:27:00 -0300 Subject: [PATCH 05/92] Add Elixir 1.16 and Elixir 1.17 to CI --- .github/workflows/ci.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 9eb99a010..fc4815b10 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -112,6 +112,12 @@ jobs: - elixir: 1.15.x otp: 25.x os: ubuntu-20.04 + - elixir: 1.16.x + otp: 25.x + os: ubuntu-20.04 + - elixir: 1.17.x + otp: 27.x + os: ubuntu-22.04 # Something changed in otp 26 for seed and single test started producing failures # it does not affect functionality, only CI # - elixir: 1.15.x From e76e2ea2f0657d83ce7702d9578306045e6969bb Mon Sep 17 00:00:00 2001 From: Yuri Pereira Constante Date: Sun, 16 Jun 2024 16:48:48 -0300 Subject: [PATCH 06/92] Update changelog --- CHANGELOG.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index b6df36843..c1d7a48fd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,8 @@ Change log itself follows [Keep a CHANGELOG](http://keepachangelog.com) format. ### Added +- Test with Elixir 1.16 and 1.17 on CI [[@ypconstante](https://github.com/ypconstante)] + ### Changed ### Deprecated @@ -19,6 +21,7 @@ Change log itself follows [Keep a CHANGELOG](http://keepachangelog.com) format. ### Fixed - Fix compile and runtime warnings on Elixir 1.17 [[@ypconstante](https://github.com/ypconstante)] +- `Faker.Internet.slug` and `Faker.Markdown.markdown/0` results won't change between Elixir versions [[@ypconstante](https://github.com/ypconstante)] ### Security From 1cef1b8b26aa82ab2df153ee7bc47955e2d4c782 Mon Sep 17 00:00:00 2001 From: Yuri Pereira Constante Date: Sun, 16 Jun 2024 16:54:41 -0300 Subject: [PATCH 07/92] Test only with OTP 25 --- .github/workflows/ci.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index fc4815b10..933283b99 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -116,7 +116,7 @@ jobs: otp: 25.x os: ubuntu-20.04 - elixir: 1.17.x - otp: 27.x + otp: 25.x os: ubuntu-22.04 # Something changed in otp 26 for seed and single test started producing failures # it does not affect functionality, only CI From 302d9d5cc11efcf8a6ec34bf61a5dac2a743844d Mon Sep 17 00:00:00 2001 From: Yuri Pereira Constante Date: Sun, 16 Jun 2024 17:15:11 -0300 Subject: [PATCH 08/92] Fix tests on OTP 26 --- lib/faker/file.ex | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/faker/file.ex b/lib/faker/file.ex index bfc99194a..dced939da 100644 --- a/lib/faker/file.ex +++ b/lib/faker/file.ex @@ -30,8 +30,8 @@ defmodule Faker.File do ~w(video/mpeg video/mp4 video/ogg video/quicktime video/webm video/x-matroska video/x-ms-wmv video/x-flv) } - @categories_extensions Map.keys(@extensions) - @categories_mimes Map.keys(@mimes) + @categories_extensions @extensions |> Map.keys() |> Enum.sort() + @categories_mimes @mimes |> Map.keys() |> Enum.sort() @doc """ Returns a random file extension From 3bb52510b0f15434540c23c9b1b1a0afa0868ef4 Mon Sep 17 00:00:00 2001 From: Yuri Pereira Constante Date: Sun, 16 Jun 2024 17:15:24 -0300 Subject: [PATCH 09/92] Add OTP 26 and 27 on CI --- .github/workflows/ci.yaml | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 933283b99..d256fc9ed 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -112,14 +112,21 @@ jobs: - elixir: 1.15.x otp: 25.x os: ubuntu-20.04 + - elixir: 1.16.x + otp: 24.x + os: ubuntu-20.04 - elixir: 1.16.x otp: 25.x os: ubuntu-20.04 + - elixir: 1.16.x + otp: 26.x + os: ubuntu-20.04 - elixir: 1.17.x otp: 25.x os: ubuntu-22.04 - # Something changed in otp 26 for seed and single test started producing failures - # it does not affect functionality, only CI - # - elixir: 1.15.x - # otp: 26.x - # os: ubuntu-20.04 + - elixir: 1.17.x + otp: 26.x + os: ubuntu-22.04 + - elixir: 1.17.x + otp: 27.x + os: ubuntu-22.04 From 7a778c11eb43f745d421208af22b67598e3d45d7 Mon Sep 17 00:00:00 2001 From: Yuri Pereira Constante Date: Sun, 16 Jun 2024 17:15:29 -0300 Subject: [PATCH 10/92] Update changelog --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index c1d7a48fd..e65106a30 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,7 @@ Change log itself follows [Keep a CHANGELOG](http://keepachangelog.com) format. ### Added - Test with Elixir 1.16 and 1.17 on CI [[@ypconstante](https://github.com/ypconstante)] +- Test with OTP 26 and 27 on CI [[@ypconstante](https://github.com/ypconstante)] ### Changed From 28e6c46399eb266b5716b7850311541f3e47e4e0 Mon Sep 17 00:00:00 2001 From: Igor Kapkov Date: Wed, 26 Jun 2024 17:32:49 +1000 Subject: [PATCH 11/92] fix: CI matrix --- .github/workflows/ci.yaml | 53 ++++++++++++++++----------------------- 1 file changed, 22 insertions(+), 31 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index d256fc9ed..60a18f2d3 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -21,7 +21,7 @@ jobs: - run: mix credo --strict --format=sarif # dialyzer: - # runs-on: ${{ matrix.os || 'ubuntu-20.04' }} + # runs-on: ${{ matrix.os || 'ubuntu-22.04' }} # steps: # - uses: actions/checkout@v4.1.0 @@ -53,7 +53,7 @@ jobs: # - run: mix dialyzer --format github test: - runs-on: ${{ matrix.os || 'ubuntu-20.04' }} + runs-on: ${{ matrix.os || 'ubuntu-22.04' }} steps: - uses: actions/checkout@v4.1.7 - uses: actions/cache@v4.0.2 @@ -70,57 +70,48 @@ jobs: fail-fast: false matrix: include: - - elixir: 1.11.x - otp: 21.x - os: ubuntu-20.04 - - elixir: 1.11.x - otp: 22.x - os: ubuntu-20.04 - - elixir: 1.11.x - otp: 23.x - os: ubuntu-20.04 - - elixir: 1.12.x - otp: 22.x - os: ubuntu-20.04 - - elixir: 1.12.x - otp: 23.x - os: ubuntu-20.04 - - elixir: 1.12.x - otp: 24.x - os: ubuntu-20.04 - elixir: 1.13.x otp: 22.x - os: ubuntu-20.04 + os: ubuntu-22.04 - elixir: 1.13.x otp: 23.x - os: ubuntu-20.04 + os: ubuntu-22.04 - elixir: 1.13.x otp: 24.x - os: ubuntu-20.04 + os: ubuntu-22.04 + - elixir: 1.13.x + otp: 25.x + os: ubuntu-22.04 - elixir: 1.14.x otp: 23.x - os: ubuntu-20.04 + os: ubuntu-22.04 - elixir: 1.14.x otp: 24.x - os: ubuntu-20.04 + os: ubuntu-22.04 - elixir: 1.14.x otp: 25.x - os: ubuntu-20.04 + os: ubuntu-22.04 + - elixir: 1.14.x + otp: 26.x + os: ubuntu-22.04 - elixir: 1.15.x otp: 24.x - os: ubuntu-20.04 + os: ubuntu-22.04 - elixir: 1.15.x otp: 25.x - os: ubuntu-20.04 + os: ubuntu-22.04 + - elixir: 1.15.x + otp: 26.x + os: ubuntu-22.04 - elixir: 1.16.x otp: 24.x - os: ubuntu-20.04 + os: ubuntu-22.04 - elixir: 1.16.x otp: 25.x - os: ubuntu-20.04 + os: ubuntu-22.04 - elixir: 1.16.x otp: 26.x - os: ubuntu-20.04 + os: ubuntu-22.04 - elixir: 1.17.x otp: 25.x os: ubuntu-22.04 From df4c5b961bee6608adc21ae4576dd1c109a195c6 Mon Sep 17 00:00:00 2001 From: Igor Kapkov Date: Wed, 26 Jun 2024 17:36:00 +1000 Subject: [PATCH 12/92] fix(ci): upgrade to 24.04 ubuntu --- .github/workflows/ci.yaml | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 60a18f2d3..a9a4d2d9d 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -72,52 +72,52 @@ jobs: include: - elixir: 1.13.x otp: 22.x - os: ubuntu-22.04 + os: ubuntu-20.04 - elixir: 1.13.x otp: 23.x - os: ubuntu-22.04 + os: ubuntu-20.04 - elixir: 1.13.x otp: 24.x - os: ubuntu-22.04 + os: ubuntu-24.04 - elixir: 1.13.x otp: 25.x - os: ubuntu-22.04 + os: ubuntu-24.04 - elixir: 1.14.x otp: 23.x - os: ubuntu-22.04 + os: ubuntu-20.04 - elixir: 1.14.x otp: 24.x - os: ubuntu-22.04 + os: ubuntu-24.04 - elixir: 1.14.x otp: 25.x - os: ubuntu-22.04 + os: ubuntu-24.04 - elixir: 1.14.x otp: 26.x - os: ubuntu-22.04 + os: ubuntu-24.04 - elixir: 1.15.x otp: 24.x - os: ubuntu-22.04 + os: ubuntu-24.04 - elixir: 1.15.x otp: 25.x - os: ubuntu-22.04 + os: ubuntu-24.04 - elixir: 1.15.x otp: 26.x - os: ubuntu-22.04 + os: ubuntu-24.04 - elixir: 1.16.x otp: 24.x - os: ubuntu-22.04 + os: ubuntu-24.04 - elixir: 1.16.x otp: 25.x - os: ubuntu-22.04 + os: ubuntu-24.04 - elixir: 1.16.x otp: 26.x - os: ubuntu-22.04 + os: ubuntu-24.04 - elixir: 1.17.x otp: 25.x - os: ubuntu-22.04 + os: ubuntu-24.04 - elixir: 1.17.x otp: 26.x - os: ubuntu-22.04 + os: ubuntu-24.04 - elixir: 1.17.x otp: 27.x - os: ubuntu-22.04 + os: ubuntu-24.04 From a5b360b8e20c6a9600a1a0e8cddf41c19128fea9 Mon Sep 17 00:00:00 2001 From: Igor Kapkov Date: Tue, 20 Aug 2024 19:28:41 +1000 Subject: [PATCH 13/92] fix: drop pre breaking change in elixir --- .github/workflows/ci.yaml | 24 ------------------ lib/faker/code.ex | 32 ++++++++++++------------ lib/faker/code/iban.ex | 10 ++++---- lib/faker/fruit/en.ex | 8 +++--- lib/faker/fruit/pt_br.ex | 8 +++--- lib/faker/gov/it.ex | 8 +++--- lib/faker/gov/us.ex | 16 ++++++------ lib/faker/industry.ex | 24 +++++++++--------- lib/faker/industry/en.ex | 24 +++++++++--------- lib/faker/industry/hy.ex | 8 +++--- lib/faker/markdown.ex | 52 +++++++++++++++++++-------------------- lib/faker/vehicle.ex | 8 +++--- lib/faker/vehicle/en.ex | 8 +++--- 13 files changed, 103 insertions(+), 127 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index a9a4d2d9d..a882f31fa 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -70,30 +70,6 @@ jobs: fail-fast: false matrix: include: - - elixir: 1.13.x - otp: 22.x - os: ubuntu-20.04 - - elixir: 1.13.x - otp: 23.x - os: ubuntu-20.04 - - elixir: 1.13.x - otp: 24.x - os: ubuntu-24.04 - - elixir: 1.13.x - otp: 25.x - os: ubuntu-24.04 - - elixir: 1.14.x - otp: 23.x - os: ubuntu-20.04 - - elixir: 1.14.x - otp: 24.x - os: ubuntu-24.04 - - elixir: 1.14.x - otp: 25.x - os: ubuntu-24.04 - - elixir: 1.14.x - otp: 26.x - os: ubuntu-24.04 - elixir: 1.15.x otp: 24.x os: ubuntu-24.04 diff --git a/lib/faker/code.ex b/lib/faker/code.ex index bce1205eb..81cb83a15 100644 --- a/lib/faker/code.ex +++ b/lib/faker/code.ex @@ -10,13 +10,13 @@ defmodule Faker.Code do ## Examples - iex> Faker.Code.isbn + iex> Faker.Code.isbn() "015426461X" - iex> Faker.Code.isbn + iex> Faker.Code.isbn() "0832970522" - iex> Faker.Code.isbn + iex> Faker.Code.isbn() "3570203034" - iex> Faker.Code.isbn + iex> Faker.Code.isbn() "2097337600" """ defdelegate isbn, to: Faker.Code, as: :isbn10 @@ -26,13 +26,13 @@ defmodule Faker.Code do ## Examples - iex> Faker.Code.isbn10 + iex> Faker.Code.isbn10() "015426461X" - iex> Faker.Code.isbn10 + iex> Faker.Code.isbn10() "0832970522" - iex> Faker.Code.isbn10 + iex> Faker.Code.isbn10() "3570203034" - iex> Faker.Code.isbn10 + iex> Faker.Code.isbn10() "2097337600" """ def isbn10 do @@ -45,13 +45,13 @@ defmodule Faker.Code do ## Examples - iex> Faker.Code.isbn13 + iex> Faker.Code.isbn13() "9781542646109" - iex> Faker.Code.isbn13 + iex> Faker.Code.isbn13() "9783297052358" - iex> Faker.Code.isbn13 + iex> Faker.Code.isbn13() "9790203032090" - iex> Faker.Code.isbn13 + iex> Faker.Code.isbn13() "9793376033741" """ def isbn13 do @@ -64,13 +64,13 @@ defmodule Faker.Code do ## Examples - iex> Faker.Code.issn + iex> Faker.Code.issn() "01542648" - iex> Faker.Code.issn + iex> Faker.Code.issn() "61083291" - iex> Faker.Code.issn + iex> Faker.Code.issn() "70523576" - iex> Faker.Code.issn + iex> Faker.Code.issn() "02030322" """ def issn do diff --git a/lib/faker/code/iban.ex b/lib/faker/code/iban.ex index 899e18f3a..711575cc5 100644 --- a/lib/faker/code/iban.ex +++ b/lib/faker/code/iban.ex @@ -10,7 +10,7 @@ defmodule Faker.Code.Iban do ## Examples - iex> Faker.Code.Iban.iban + iex> Faker.Code.Iban.iban() "GI88LRCE6SQ3CQJGP3UHAJD" iex> Faker.Code.Iban.iban("NL") "NL26VYOC3032097337" @@ -97,13 +97,13 @@ defmodule Faker.Code.Iban do ## Examples - iex> Faker.Code.Iban.iban + iex> Faker.Code.Iban.iban() "GI88LRCE6SQ3CQJGP3UHAJD" - iex> Faker.Code.Iban.iban + iex> Faker.Code.Iban.iban() "BR0302030320973376033745981CB" - iex> Faker.Code.Iban.iban + iex> Faker.Code.Iban.iban() "BE98607198979502" - iex> Faker.Code.Iban.iban + iex> Faker.Code.Iban.iban() "PT72807856869061130164499" """ def iban, do: iban(Keyword.keys(@iso_iban_specs)) diff --git a/lib/faker/fruit/en.ex b/lib/faker/fruit/en.ex index 4fd5f3c7a..4374966b7 100644 --- a/lib/faker/fruit/en.ex +++ b/lib/faker/fruit/en.ex @@ -8,13 +8,13 @@ defmodule Faker.Fruit.En do @doc """ Returns a fruit. ## Examples - iex> Faker.Fruit.En.fruit + iex> Faker.Fruit.En.fruit() "Kiwano" - iex> Faker.Fruit.En.fruit + iex> Faker.Fruit.En.fruit() "Sugarcane" - iex> Faker.Fruit.En.fruit + iex> Faker.Fruit.En.fruit() "Pineapple" - iex> Faker.Fruit.En.fruit + iex> Faker.Fruit.En.fruit() "Lemon" """ @spec fruit() :: String.t() diff --git a/lib/faker/fruit/pt_br.ex b/lib/faker/fruit/pt_br.ex index 3dfad107e..e83b44c34 100644 --- a/lib/faker/fruit/pt_br.ex +++ b/lib/faker/fruit/pt_br.ex @@ -10,13 +10,13 @@ defmodule Faker.Fruit.PtBr do ## Examples - iex> Faker.Fruit.PtBr.fruit + iex> Faker.Fruit.PtBr.fruit() "Fruta-do-conde" - iex> Faker.Fruit.PtBr.fruit + iex> Faker.Fruit.PtBr.fruit() "Bergamota" - iex> Faker.Fruit.PtBr.fruit + iex> Faker.Fruit.PtBr.fruit() "Quixaba" - iex> Faker.Fruit.PtBr.fruit + iex> Faker.Fruit.PtBr.fruit() "Amora" """ @spec fruit() :: String.t() diff --git a/lib/faker/gov/it.ex b/lib/faker/gov/it.ex index bd58353ad..8b2a1c3e0 100644 --- a/lib/faker/gov/it.ex +++ b/lib/faker/gov/it.ex @@ -13,13 +13,13 @@ defmodule Faker.Gov.It do ## Examples - iex> Faker.Gov.It.fiscal_id + iex> Faker.Gov.It.fiscal_id() "ELRCEA64C50A918F" - iex> Faker.Gov.It.fiscal_id + iex> Faker.Gov.It.fiscal_id() "ZSLNKH22M34H480J" - iex> Faker.Gov.It.fiscal_id + iex> Faker.Gov.It.fiscal_id() "OCPCVO90M50F353I" - iex> Faker.Gov.It.fiscal_id + iex> Faker.Gov.It.fiscal_id() "PQYRFX94R54C681K" """ @spec fiscal_id() :: binary() diff --git a/lib/faker/gov/us.ex b/lib/faker/gov/us.ex index 0a69e2a4c..530720043 100644 --- a/lib/faker/gov/us.ex +++ b/lib/faker/gov/us.ex @@ -8,13 +8,13 @@ defmodule Faker.Gov.Us do ## Examples - iex> Faker.Gov.Us.ssn + iex> Faker.Gov.Us.ssn() "838-84-5749" - iex> Faker.Gov.Us.ssn + iex> Faker.Gov.Us.ssn() "719-41-8674" - iex> Faker.Gov.Us.ssn + iex> Faker.Gov.Us.ssn() "213-54-3766" - iex> Faker.Gov.Us.ssn + iex> Faker.Gov.Us.ssn() "379-09-6851" """ @spec ssn() :: String.t() @@ -37,13 +37,13 @@ defmodule Faker.Gov.Us do ## Examples - iex> Faker.Gov.Us.ein + iex> Faker.Gov.Us.ein() "04-0389586" - iex> Faker.Gov.Us.ein + iex> Faker.Gov.Us.ein() "07-8027034" - iex> Faker.Gov.Us.ein + iex> Faker.Gov.Us.ein() "41-6859447" - iex> Faker.Gov.Us.ein + iex> Faker.Gov.Us.ein() "83-6106581" """ @spec ein() :: String.t() diff --git a/lib/faker/industry.ex b/lib/faker/industry.ex index cc28ab430..784dd1547 100644 --- a/lib/faker/industry.ex +++ b/lib/faker/industry.ex @@ -11,13 +11,13 @@ defmodule Faker.Industry do ## Examples - iex> Faker.Industry.industry + iex> Faker.Industry.industry() "Oil & Gas" - iex> Faker.Industry.industry + iex> Faker.Industry.industry() "Basic Materials" - iex> Faker.Industry.industry + iex> Faker.Industry.industry() "Consumer Services" - iex> Faker.Industry.industry + iex> Faker.Industry.industry() "Health Care" """ @spec industry() :: String.t() @@ -28,13 +28,13 @@ defmodule Faker.Industry do ## Examples - iex> Faker.Industry.super_sector + iex> Faker.Industry.super_sector() "Automobiles & Parts" - iex> Faker.Industry.super_sector + iex> Faker.Industry.super_sector() "Banks" - iex> Faker.Industry.super_sector + iex> Faker.Industry.super_sector() "Automobiles & Parts" - iex> Faker.Industry.super_sector + iex> Faker.Industry.super_sector() "Health Care" """ @spec super_sector() :: String.t() @@ -45,13 +45,13 @@ defmodule Faker.Industry do ## Examples - iex> Faker.Industry.sector + iex> Faker.Industry.sector() "Food & Drug Retailers" - iex> Faker.Industry.sector + iex> Faker.Industry.sector() "Banks" - iex> Faker.Industry.sector + iex> Faker.Industry.sector() "Software & Computer Services" - iex> Faker.Industry.sector + iex> Faker.Industry.sector() "Media" """ @spec sector() :: String.t() diff --git a/lib/faker/industry/en.ex b/lib/faker/industry/en.ex index 4c6cc8203..982afd32a 100644 --- a/lib/faker/industry/en.ex +++ b/lib/faker/industry/en.ex @@ -10,13 +10,13 @@ defmodule Faker.Industry.En do ## Examples - iex> Faker.Industry.En.industry + iex> Faker.Industry.En.industry() "Oil & Gas" - iex> Faker.Industry.En.industry + iex> Faker.Industry.En.industry() "Basic Materials" - iex> Faker.Industry.En.industry + iex> Faker.Industry.En.industry() "Consumer Services" - iex> Faker.Industry.En.industry + iex> Faker.Industry.En.industry() "Health Care" """ @spec industry() :: String.t() @@ -38,13 +38,13 @@ defmodule Faker.Industry.En do ## Examples - iex> Faker.Industry.En.super_sector + iex> Faker.Industry.En.super_sector() "Automobiles & Parts" - iex> Faker.Industry.En.super_sector + iex> Faker.Industry.En.super_sector() "Banks" - iex> Faker.Industry.En.super_sector + iex> Faker.Industry.En.super_sector() "Automobiles & Parts" - iex> Faker.Industry.En.super_sector + iex> Faker.Industry.En.super_sector() "Health Care" """ @spec super_sector() :: String.t() @@ -75,13 +75,13 @@ defmodule Faker.Industry.En do ## Examples - iex> Faker.Industry.En.sector + iex> Faker.Industry.En.sector() "Food & Drug Retailers" - iex> Faker.Industry.En.sector + iex> Faker.Industry.En.sector() "Banks" - iex> Faker.Industry.En.sector + iex> Faker.Industry.En.sector() "Software & Computer Services" - iex> Faker.Industry.En.sector + iex> Faker.Industry.En.sector() "Media" """ @spec sector() :: String.t() diff --git a/lib/faker/industry/hy.ex b/lib/faker/industry/hy.ex index 086a77dd5..02734aab9 100644 --- a/lib/faker/industry/hy.ex +++ b/lib/faker/industry/hy.ex @@ -10,13 +10,13 @@ defmodule Faker.Industry.Hy do ## Examples - iex> Faker.Industry.Hy.industry + iex> Faker.Industry.Hy.industry() "Հյուրընկալություն" - iex> Faker.Industry.Hy.industry + iex> Faker.Industry.Hy.industry() "Բժշկական Գործունեություն" - iex> Faker.Industry.Hy.industry + iex> Faker.Industry.Hy.industry() "Վենչուրային և Մասնավոր Կապիտալ" - iex> Faker.Industry.Hy.industry + iex> Faker.Industry.Hy.industry() "Էներգետիկա" """ @spec industry() :: String.t() diff --git a/lib/faker/markdown.ex b/lib/faker/markdown.ex index 2246e13b5..237bf33d5 100644 --- a/lib/faker/markdown.ex +++ b/lib/faker/markdown.ex @@ -1,10 +1,10 @@ defmodule Faker.Markdown do - import Faker, only: [random_between: 2, random_uniform: 0] + import Faker, only: [random_between: 2] alias Faker.Lorem alias Faker.Util - @moduledoc """ + @moduledoc ~S""" Functions for generating random markdown """ @@ -12,7 +12,7 @@ defmodule Faker.Markdown do @emphasis ["_", "~", "*", "**"] @langs ["elixir", "erlang", "ruby", "go", "shell"] - @doc """ + @doc ~S""" Returns a random markdown header ## Examples @@ -34,7 +34,7 @@ defmodule Faker.Markdown do "#{Util.pick(@headers)} #{header}" end - @doc """ + @doc ~S""" Returns a random sentence with random emphasis word ## Examples @@ -60,7 +60,7 @@ defmodule Faker.Markdown do |> Enum.join(" ") end - @doc """ + @doc ~S""" Returns a random ordered list ## Examples @@ -70,16 +70,16 @@ defmodule Faker.Markdown do iex> Faker.Markdown.ordered_list() "1. Aut expedita cumque est necessitatibus beatae ex sunt!" iex> Faker.Markdown.ordered_list() - "1. Asperiores qui vitae animi et id et vitae vitae.\\n2. Corporis quisquam ab harum ipsa sed veritatis.\\n3. Ut aut inventore eius!\\n4. Aut doloribus qui officia vel quaerat.\\n5. Et perspiciatis rerum nam repellendus inventore nihil dicta ipsum.\\n6. Qui voluptates magni quisquam sed odio accusamus et.\\n7. Non impedit tempora minus voluptatem qui fugit?\\n8. Ab consectetur harum earum possimus." + "1. Asperiores qui vitae animi et id et vitae vitae.\n2. Corporis quisquam ab harum ipsa sed veritatis.\n3. Ut aut inventore eius!\n4. Aut doloribus qui officia vel quaerat.\n5. Et perspiciatis rerum nam repellendus inventore nihil dicta ipsum.\n6. Qui voluptates magni quisquam sed odio accusamus et.\n7. Non impedit tempora minus voluptatem qui fugit?\n8. Ab consectetur harum earum possimus." iex> Faker.Markdown.ordered_list() - "1. Quisquam modi accusantium eligendi numquam.\\n2. Quod blanditiis est non id quibusdam qui omnis alias!\\n3. Dicta dolores at ut delectus magni atque eos beatae nulla.\\n4. Laudantium qui dolorem pariatur voluptatibus sed et enim?" + "1. Quisquam modi accusantium eligendi numquam.\n2. Quod blanditiis est non id quibusdam qui omnis alias!\n3. Dicta dolores at ut delectus magni atque eos beatae nulla.\n4. Laudantium qui dolorem pariatur voluptatibus sed et enim?" """ @spec ordered_list() :: String.t() def ordered_list do list() end - @doc """ + @doc ~S""" Returns a random unordered list ## Examples @@ -89,9 +89,9 @@ defmodule Faker.Markdown do iex> Faker.Markdown.unordered_list() "* Aut expedita cumque est necessitatibus beatae ex sunt!" iex> Faker.Markdown.unordered_list() - "* Asperiores qui vitae animi et id et vitae vitae.\\n* Corporis quisquam ab harum ipsa sed veritatis.\\n* Ut aut inventore eius!\\n* Aut doloribus qui officia vel quaerat.\\n* Et perspiciatis rerum nam repellendus inventore nihil dicta ipsum.\\n* Qui voluptates magni quisquam sed odio accusamus et.\\n* Non impedit tempora minus voluptatem qui fugit?\\n* Ab consectetur harum earum possimus." + "* Asperiores qui vitae animi et id et vitae vitae.\n* Corporis quisquam ab harum ipsa sed veritatis.\n* Ut aut inventore eius!\n* Aut doloribus qui officia vel quaerat.\n* Et perspiciatis rerum nam repellendus inventore nihil dicta ipsum.\n* Qui voluptates magni quisquam sed odio accusamus et.\n* Non impedit tempora minus voluptatem qui fugit?\n* Ab consectetur harum earum possimus." iex> Faker.Markdown.unordered_list() - "* Quisquam modi accusantium eligendi numquam.\\n* Quod blanditiis est non id quibusdam qui omnis alias!\\n* Dicta dolores at ut delectus magni atque eos beatae nulla.\\n* Laudantium qui dolorem pariatur voluptatibus sed et enim?" + "* Quisquam modi accusantium eligendi numquam.\n* Quod blanditiis est non id quibusdam qui omnis alias!\n* Dicta dolores at ut delectus magni atque eos beatae nulla.\n* Laudantium qui dolorem pariatur voluptatibus sed et enim?" """ @spec unordered_list() :: String.t() def unordered_list do @@ -110,7 +110,7 @@ defmodule Faker.Markdown do |> Enum.join("\n") end - @doc """ + @doc ~S""" Returns random inline code ## Examples @@ -129,19 +129,19 @@ defmodule Faker.Markdown do "`#{Lorem.sentence()}`" end - @doc """ + @doc ~S""" Returns random inline code ## Examples iex> Faker.Markdown.block_code() - "```elixir\\nDeleniti consequatur et qui vitae et.\\n```" + "```elixir\nDeleniti consequatur et qui vitae et.\n```" iex> Faker.Markdown.block_code() - "```elixir\\nAut expedita cumque est necessitatibus beatae ex sunt!\\n```" + "```elixir\nAut expedita cumque est necessitatibus beatae ex sunt!\n```" iex> Faker.Markdown.block_code() - "```ruby\\nAsperiores qui vitae animi et id et vitae vitae.\\n```" + "```ruby\nAsperiores qui vitae animi et id et vitae vitae.\n```" iex> Faker.Markdown.block_code() - "```go\\nQuisquam ab harum ipsa sed veritatis numquam.\\n```" + "```go\nQuisquam ab harum ipsa sed veritatis numquam.\n```" """ @spec block_code() :: String.t() def block_code do @@ -152,19 +152,19 @@ defmodule Faker.Markdown do """ end - @doc """ + @doc ~S""" Returns random markdown table ## Examples iex> Faker.Markdown.table() - "sint | deleniti | consequatur\\n---- | ---- | ----\\net | qui | vitae\\net | quibusdam | et\\nsit | aut | expedita\\ncumque | est | necessitatibus\\nbeatae | ex | sunt" + "sint | deleniti | consequatur\n---- | ---- | ----\net | qui | vitae\net | quibusdam | et\nsit | aut | expedita\ncumque | est | necessitatibus\nbeatae | ex | sunt" iex> Faker.Markdown.table() - "soluta | asperiores\\n---- | ----\\nqui | vitae\\nanimi | et\\nid | et\\nvitae | vitae\\nut | quisquam\\ncorporis | quisquam" + "soluta | asperiores\n---- | ----\nqui | vitae\nanimi | et\nid | et\nvitae | vitae\nut | quisquam\ncorporis | quisquam" iex> Faker.Markdown.table() - "ipsa | sed | veritatis | numquam | maxime\\n---- | ---- | ---- | ---- | ----\\nut | aut | inventore | eius | rerum\\nbeatae | aut | doloribus | qui | officia\\nvel | quaerat | expedita | ut | et\\nperspiciatis | rerum | nam | repellendus | inventore" + "ipsa | sed | veritatis | numquam | maxime\n---- | ---- | ---- | ---- | ----\nut | aut | inventore | eius | rerum\nbeatae | aut | doloribus | qui | officia\nvel | quaerat | expedita | ut | et\nperspiciatis | rerum | nam | repellendus | inventore" iex> Faker.Markdown.table() - "ipsum | sequi | ducimus | qui | voluptates\\n---- | ---- | ---- | ---- | ----\\nmagni | quisquam | sed | odio | accusamus\\net | vel | error | non | impedit\\ntempora | minus | voluptatem | qui | fugit" + "ipsum | sequi | ducimus | qui | voluptates\n---- | ---- | ---- | ---- | ----\nmagni | quisquam | sed | odio | accusamus\net | vel | error | non | impedit\ntempora | minus | voluptatem | qui | fugit" """ @spec table() :: String.t() def table do @@ -185,19 +185,19 @@ defmodule Faker.Markdown do |> Enum.join("\n") end - @doc """ + @doc ~S""" Returns random markdown ## Examples iex> Faker.Markdown.markdown() - "## Aut\\n\\n```ruby\\nBeatae ex sunt soluta possimus soluta asperiores qui vitae animi.\\n```\\n\\n`Et vitae vitae ut quisquam corporis quisquam ab harum ipsa.`\\n\\n* Maxime ut aut inventore eius rerum beatae?\\n* Qui officia vel quaerat expedita.\\n* Perspiciatis rerum nam repellendus inventore nihil.\\n* Sequi ducimus qui voluptates magni quisquam sed odio.\\n* Vel error non impedit tempora minus.\\n\\nfugit | cupiditate | fuga | ab\\n---- | ---- | ---- | ----\\nconsectetur | harum | earum | possimus\\ntotam | nobis | provident | quisquam\\nmodi | accusantium | eligendi | numquam" + "`Aut expedita cumque est necessitatibus beatae ex sunt!`\n\n### Soluta\n\n```ruby\nVitae animi et id et vitae!\n```\n\n* Corporis quisquam ab harum ipsa sed veritatis.\n* Ut aut inventore eius!\n* Aut doloribus qui officia vel quaerat.\n* Et perspiciatis rerum nam repellendus inventore nihil dicta ipsum." iex> Faker.Markdown.markdown() - "Odit dicta dolores at ut delectus magni atque eos? Labore voluptate laudantium ~qui.~ Voluptatibus sed et enim ullam?\\n\\n1. Repellat et praesentium quia sed nemo minus ea!\\n2. Cumque nihil similique repudiandae corrupti!\\n3. Similique accusamus suscipit perspiciatis cum.\\n4. Dolore et ut earum possimus eos reprehenderit cupiditate omnis et.\\n5. Sit delectus possimus quo et est culpa eum ex?\\n6. Aut aut aut quisquam?\\n7. Tenetur alias est provident esse dicta ea illo consequatur maiores?" + "* Impedit tempora minus voluptatem qui fugit cupiditate?\n* Consectetur harum earum possimus totam nobis provident quisquam?\n* Eligendi numquam illo voluptas quod blanditiis est!\n* Quibusdam qui omnis alias vel!\n* Dolores at ut delectus magni?\n* Beatae nulla labore voluptate laudantium?\n* Pariatur voluptatibus sed et enim ullam similique minima laudantium.\n\nEt praesentium quia sed? Ea vero repellat ~cumque!~\n\n`Rerum sed similique accusamus?`\n\n#### Suscipit" iex> Faker.Markdown.markdown() - "* Porro est id maxime dolorum animi.\\n* Deserunt ipsa consequuntur eveniet asperiores.\\n* Quia numquam voluptas vitae repellat tempore.\\n* Harum voluptas harum modi omnis quam dolor a aliquam officiis?\\n* Neque voluptas consequatur sed cupiditate dolorum pariatur et.\\n* Aut voluptatem natus amet eius eos non dolorum.\\n* Pariatur ex illo aliquam rerum ab voluptatem exercitationem nobis enim.\\n* Eos corporis unde ex enim dolore ut consequuntur.\\n* Dicta eius totam nobis est a eveniet ab magni.\\n* Consequatur unde dolorem et nihil laudantium ea veniam necessitatibus." + "* Et doloremque omnis sit delectus possimus quo.\n* Culpa eum ex et veniam aut aut aut quisquam.\n* Tenetur alias est provident esse dicta ea illo consequatur maiores?\n* Quia culpa sunt sit eius cumque porro ut eum porro.\n* Maxime dolorum animi fugit voluptas deserunt!\n* Eveniet asperiores consequatur voluptates quia numquam.\n\n```shell\nTempore unde iusto harum voluptas harum modi omnis quam dolor?\n```\n\n1. Et voluptas neque voluptas consequatur sed cupiditate?" iex> Faker.Markdown.markdown() - "1. Repellat qui repudiandae quia cumque excepturi laudantium accusantium!\\n2. Sunt non consequatur molestiae laboriosam sit aperiam.\\n3. Voluptatem est beatae delectus minus qui molestiae dolorem aut.\\n4. Iure enim sapiente quia voluptas esse!\\n\\n```go\\nVoluptas ullam ratione et esse optio qui ut sed dignissimos!\\n```\\n\\nsaepe | a | illo\\n---- | ---- | ----\\nut | eos | aliquid\\nquisquam | omnis | magni\\nconsequuntur | molestiae | expedita\\n\\n* Ducimus est nulla repellat reiciendis est est veritatis.\\n* Quaerat assumenda ut reiciendis eaque in!\\n* Aliquam quis sapiente facere?\\n* Nihil suscipit pariatur qui." + "`Dolorum quaerat dolores pariatur ex illo?`\n\n1. Voluptatem exercitationem nobis enim delectus.\n2. Corporis unde ex enim dolore ut consequuntur eaque!\n3. Eius totam nobis est.\n4. Ab magni rerum enim consequatur unde.\n5. Nihil laudantium ea veniam necessitatibus qui.\n6. Minus ad omnis quaerat quidem impedit sint.\n7. Id ut repellat qui repudiandae!\n8. Excepturi laudantium accusantium repellendus nihil sunt non consequatur.\n\n* Aperiam velit nostrum voluptatem est beatae delectus minus.\n* Dolorem aut omnis omnis iure enim sapiente.\n* Esse aut tenetur itaque voluptas ullam ratione et esse.\n\nSed dignissimos odit debitis **saepe** a illo ut! Quisquam omnis magni consequuntur molestiae expedita at necessitatibus? Est nulla repellat reiciendis est est veritatis sed." """ @spec markdown() :: String.t() def markdown do diff --git a/lib/faker/vehicle.ex b/lib/faker/vehicle.ex index b621a2cd8..6232e6588 100644 --- a/lib/faker/vehicle.ex +++ b/lib/faker/vehicle.ex @@ -161,13 +161,13 @@ defmodule Faker.Vehicle do Returns a list of vehicle options() ## Examples - iex> Faker.Vehicle.options + iex> Faker.Vehicle.options() ["Power Steering", "A/C: Front", "Keyless Entry", "AM/FM Stereo", "Power Steering", "Antilock Brakes", "8-Track Player", "Leather Interior"] - iex> Faker.Vehicle.options + iex> Faker.Vehicle.options() ["MP3 (Multi Disc)", "A/C: Rear", "Fog Lights", "Power Windows", "Cruise Control", "Premium Sound", "A/C: Front"] - iex> Faker.Vehicle.options + iex> Faker.Vehicle.options() ["Tinted Glass", "MP3 (Single Disc)", "CD (Multi Disc)"] - iex> Faker.Vehicle.options + iex> Faker.Vehicle.options() ["Fog Lights", "Rear Window Wiper", "MP3 (Multi Disc)", "Navigation", "Airbag: Side", "Rear Window Defroster", "Premium Sound"] """ @spec options(non_neg_integer()) :: list(String.t()) diff --git a/lib/faker/vehicle/en.ex b/lib/faker/vehicle/en.ex index b57fd7a31..c09d7032a 100644 --- a/lib/faker/vehicle/en.ex +++ b/lib/faker/vehicle/en.ex @@ -442,13 +442,13 @@ defmodule Faker.Vehicle.En do Returns a list of vehicle options() ## Examples - iex> Faker.Vehicle.En.options + iex> Faker.Vehicle.En.options() ["Power Steering", "A/C: Front", "Keyless Entry", "AM/FM Stereo", "Power Steering", "Antilock Brakes", "8-Track Player", "Leather Interior"] - iex> Faker.Vehicle.En.options + iex> Faker.Vehicle.En.options() ["MP3 (Multi Disc)", "A/C: Rear", "Fog Lights", "Power Windows", "Cruise Control", "Premium Sound", "A/C: Front"] - iex> Faker.Vehicle.En.options + iex> Faker.Vehicle.En.options() ["Tinted Glass", "MP3 (Single Disc)", "CD (Multi Disc)"] - iex> Faker.Vehicle.En.options + iex> Faker.Vehicle.En.options() ["Fog Lights", "Rear Window Wiper", "MP3 (Multi Disc)", "Navigation", "Airbag: Side", "Rear Window Defroster", "Premium Sound"] """ @spec options() :: list(String.t()) From 96bdeb0bea4a9c82fb0b027a3ab1f1839ec70353 Mon Sep 17 00:00:00 2001 From: Igor Kapkov Date: Tue, 20 Aug 2024 19:29:43 +1000 Subject: [PATCH 14/92] fix: drop unnecessary change --- lib/faker/internet.ex | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/faker/internet.ex b/lib/faker/internet.ex index 18d112eaa..94523a2f7 100644 --- a/lib/faker/internet.ex +++ b/lib/faker/internet.ex @@ -4,7 +4,7 @@ defmodule Faker.Internet do alias Faker.Util import Faker.Util, only: [pick: 1] - import Faker, only: [localize: 1, random_uniform: 0] + import Faker, only: [localize: 1] @moduledoc """ Functions for generating internet related data @@ -292,13 +292,13 @@ defmodule Faker.Internet do ## Examples iex> Faker.Internet.slug() - "deleniti-sint-consequatur-ut" + "ut-consequatur-sint-deleniti" iex> Faker.Internet.slug() - "cumque_sit_aut_expedita" + "expedita_aut_sit_cumque" iex> Faker.Internet.slug(["foo", "bar"]) - "foo_bar" + "bar_foo" iex> Faker.Internet.slug(["foo", "bar"], ["."]) - "foo.bar" + "bar.foo" """ @spec slug() :: String.t() def slug do @@ -313,7 +313,7 @@ defmodule Faker.Internet do @spec slug([String.t()], [String.t()]) :: String.t() def slug(words, glue) do words - |> Enum.sort_by(fn _ -> random_uniform() end) + |> Faker.shuffle() |> Enum.join(pick(glue)) |> String.downcase() end From 383c280abb5a26c66dd577bae17a65eeec247df3 Mon Sep 17 00:00:00 2001 From: Igor Kapkov Date: Tue, 20 Aug 2024 19:30:49 +1000 Subject: [PATCH 15/92] fix: accidental future api slip --- lib/faker/internet.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/faker/internet.ex b/lib/faker/internet.ex index 94523a2f7..76ec40b18 100644 --- a/lib/faker/internet.ex +++ b/lib/faker/internet.ex @@ -313,7 +313,7 @@ defmodule Faker.Internet do @spec slug([String.t()], [String.t()]) :: String.t() def slug(words, glue) do words - |> Faker.shuffle() + |> Enum.take_random(length(words)) |> Enum.join(pick(glue)) |> String.downcase() end From e073df53b934cf09c901f1a71c0900aa9e993f30 Mon Sep 17 00:00:00 2001 From: Igor Kapkov Date: Tue, 20 Aug 2024 19:33:18 +1000 Subject: [PATCH 16/92] fix: missing import --- lib/faker/internet.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/faker/internet.ex b/lib/faker/internet.ex index 76ec40b18..5f98282e3 100644 --- a/lib/faker/internet.ex +++ b/lib/faker/internet.ex @@ -4,7 +4,7 @@ defmodule Faker.Internet do alias Faker.Util import Faker.Util, only: [pick: 1] - import Faker, only: [localize: 1] + import Faker, only: [localize: 1, random_uniform: 0] @moduledoc """ Functions for generating internet related data From 604cde06945ca6870f6cb4b254574b1ec0c2f32b Mon Sep 17 00:00:00 2001 From: Igor Kapkov Date: Tue, 20 Aug 2024 23:05:11 +1000 Subject: [PATCH 17/92] fix: ci --- lib/faker/internet.ex | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/faker/internet.ex b/lib/faker/internet.ex index 5f98282e3..81fea2368 100644 --- a/lib/faker/internet.ex +++ b/lib/faker/internet.ex @@ -4,7 +4,7 @@ defmodule Faker.Internet do alias Faker.Util import Faker.Util, only: [pick: 1] - import Faker, only: [localize: 1, random_uniform: 0] + import Faker, only: [localize: 1] @moduledoc """ Functions for generating internet related data @@ -292,11 +292,11 @@ defmodule Faker.Internet do ## Examples iex> Faker.Internet.slug() - "ut-consequatur-sint-deleniti" + "sint.deleniti.consequatur.ut" iex> Faker.Internet.slug() - "expedita_aut_sit_cumque" + "expedita_est_necessitatibus_cumque_aut" iex> Faker.Internet.slug(["foo", "bar"]) - "bar_foo" + "foo.bar" iex> Faker.Internet.slug(["foo", "bar"], ["."]) "bar.foo" """ From 672b64694cfd483fecf49f9ecc57b06672cc5b88 Mon Sep 17 00:00:00 2001 From: Igor Kapkov Date: Tue, 20 Aug 2024 23:08:14 +1000 Subject: [PATCH 18/92] fix: missing md import --- lib/faker/markdown.ex | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/faker/markdown.ex b/lib/faker/markdown.ex index 237bf33d5..04355bbeb 100644 --- a/lib/faker/markdown.ex +++ b/lib/faker/markdown.ex @@ -1,5 +1,5 @@ defmodule Faker.Markdown do - import Faker, only: [random_between: 2] + import Faker, only: [random_between: 2, random_uniform: 0] alias Faker.Lorem alias Faker.Util @@ -191,13 +191,13 @@ defmodule Faker.Markdown do ## Examples iex> Faker.Markdown.markdown() - "`Aut expedita cumque est necessitatibus beatae ex sunt!`\n\n### Soluta\n\n```ruby\nVitae animi et id et vitae!\n```\n\n* Corporis quisquam ab harum ipsa sed veritatis.\n* Ut aut inventore eius!\n* Aut doloribus qui officia vel quaerat.\n* Et perspiciatis rerum nam repellendus inventore nihil dicta ipsum." + "## Aut\n\n```ruby\nBeatae ex sunt soluta possimus soluta asperiores qui vitae animi.\n```\n\n`Et vitae vitae ut quisquam corporis quisquam ab harum ipsa.`\n\n* Maxime ut aut inventore eius rerum beatae?\n* Qui officia vel quaerat expedita.\n* Perspiciatis rerum nam repellendus inventore nihil.\n* Sequi ducimus qui voluptates magni quisquam sed odio.\n* Vel error non impedit tempora minus.\n\nfugit | cupiditate | fuga | ab\n---- | ---- | ---- | ----\nconsectetur | harum | earum | possimus\ntotam | nobis | provident | quisquam\nmodi | accusantium | eligendi | numquam" iex> Faker.Markdown.markdown() - "* Impedit tempora minus voluptatem qui fugit cupiditate?\n* Consectetur harum earum possimus totam nobis provident quisquam?\n* Eligendi numquam illo voluptas quod blanditiis est!\n* Quibusdam qui omnis alias vel!\n* Dolores at ut delectus magni?\n* Beatae nulla labore voluptate laudantium?\n* Pariatur voluptatibus sed et enim ullam similique minima laudantium.\n\nEt praesentium quia sed? Ea vero repellat ~cumque!~\n\n`Rerum sed similique accusamus?`\n\n#### Suscipit" + "Odit dicta dolores at ut delectus magni atque eos? Labore voluptate laudantium ~qui.~ Voluptatibus sed et enim ullam?\n\n1. Repellat et praesentium quia sed nemo minus ea!\n2. Cumque nihil similique repudiandae corrupti!\n3. Similique accusamus suscipit perspiciatis cum.\n4. Dolore et ut earum possimus eos reprehenderit cupiditate omnis et.\n5. Sit delectus possimus quo et est culpa eum ex?\n6. Aut aut aut quisquam?\n7. Tenetur alias est provident esse dicta ea illo consequatur maiores?" iex> Faker.Markdown.markdown() - "* Et doloremque omnis sit delectus possimus quo.\n* Culpa eum ex et veniam aut aut aut quisquam.\n* Tenetur alias est provident esse dicta ea illo consequatur maiores?\n* Quia culpa sunt sit eius cumque porro ut eum porro.\n* Maxime dolorum animi fugit voluptas deserunt!\n* Eveniet asperiores consequatur voluptates quia numquam.\n\n```shell\nTempore unde iusto harum voluptas harum modi omnis quam dolor?\n```\n\n1. Et voluptas neque voluptas consequatur sed cupiditate?" + "* Porro est id maxime dolorum animi.\n* Deserunt ipsa consequuntur eveniet asperiores.\n* Quia numquam voluptas vitae repellat tempore.\n* Harum voluptas harum modi omnis quam dolor a aliquam officiis?\n* Neque voluptas consequatur sed cupiditate dolorum pariatur et.\n* Aut voluptatem natus amet eius eos non dolorum.\n* Pariatur ex illo aliquam rerum ab voluptatem exercitationem nobis enim.\n* Eos corporis unde ex enim dolore ut consequuntur.\n* Dicta eius totam nobis est a eveniet ab magni.\n* Consequatur unde dolorem et nihil laudantium ea veniam necessitatibus." iex> Faker.Markdown.markdown() - "`Dolorum quaerat dolores pariatur ex illo?`\n\n1. Voluptatem exercitationem nobis enim delectus.\n2. Corporis unde ex enim dolore ut consequuntur eaque!\n3. Eius totam nobis est.\n4. Ab magni rerum enim consequatur unde.\n5. Nihil laudantium ea veniam necessitatibus qui.\n6. Minus ad omnis quaerat quidem impedit sint.\n7. Id ut repellat qui repudiandae!\n8. Excepturi laudantium accusantium repellendus nihil sunt non consequatur.\n\n* Aperiam velit nostrum voluptatem est beatae delectus minus.\n* Dolorem aut omnis omnis iure enim sapiente.\n* Esse aut tenetur itaque voluptas ullam ratione et esse.\n\nSed dignissimos odit debitis **saepe** a illo ut! Quisquam omnis magni consequuntur molestiae expedita at necessitatibus? Est nulla repellat reiciendis est est veritatis sed." + "1. Repellat qui repudiandae quia cumque excepturi laudantium accusantium!\n2. Sunt non consequatur molestiae laboriosam sit aperiam.\n3. Voluptatem est beatae delectus minus qui molestiae dolorem aut.\n4. Iure enim sapiente quia voluptas esse!\n\n```go\nVoluptas ullam ratione et esse optio qui ut sed dignissimos!\n```\n\nsaepe | a | illo\n---- | ---- | ----\nut | eos | aliquid\nquisquam | omnis | magni\nconsequuntur | molestiae | expedita\n\n* Ducimus est nulla repellat reiciendis est est veritatis.\n* Quaerat assumenda ut reiciendis eaque in!\n* Aliquam quis sapiente facere?\n* Nihil suscipit pariatur qui." """ @spec markdown() :: String.t() def markdown do From f88b6a7a6857e24869ce401ccbafc08e53ba01ba Mon Sep 17 00:00:00 2001 From: Igor Kapkov Date: Sat, 24 Aug 2024 09:34:20 +1000 Subject: [PATCH 19/92] fix: address tests --- lib/faker.ex | 8 ++ lib/faker/address.ex | 150 +++++++++---------------------------- lib/faker/address/en.ex | 116 +++++++--------------------- lib/faker/address/es.ex | 108 +++++++------------------- lib/faker/address/hy.ex | 80 +++++--------------- lib/faker/address/it.ex | 132 +++++++++----------------------- lib/faker/address/pt_br.ex | 116 +++++++--------------------- lib/faker/address/ru.ex | 14 +--- lib/faker/random/test.ex | 87 ++++++++++++++++++++- lib/faker/util.ex | 2 +- 10 files changed, 268 insertions(+), 545 deletions(-) diff --git a/lib/faker.ex b/lib/faker.ex index eebcb74a6..87b264720 100644 --- a/lib/faker.ex +++ b/lib/faker.ex @@ -130,6 +130,14 @@ defmodule Faker do Application.get_env(:faker, :random_module).random_bytes(total) end + @doc """ + Returns a shuffled enum. + """ + @spec shuffle(Enum.t()) :: list() + def shuffle(enum) do + Application.get_env(:faker, :random_module).shuffle(enum) + end + defmacro localize(function) do quote do def unquote(function)() do diff --git a/lib/faker/address.ex b/lib/faker/address.ex index 5c7dc7c19..7ba655808 100644 --- a/lib/faker/address.ex +++ b/lib/faker/address.ex @@ -15,13 +15,9 @@ defmodule Faker.Address do ## Examples iex> Faker.Address.building_number() - "15426" + "24" iex> Faker.Address.building_number() - "6" - iex> Faker.Address.building_number() - "0832" - iex> Faker.Address.building_number() - "7" + "79" """ @spec building_number() :: String.t() localize(:building_number) @@ -32,13 +28,9 @@ defmodule Faker.Address do ## Examples iex> Faker.Address.city() - "Elizabeth" - iex> Faker.Address.city() - "Rolfson" + "Carter" iex> Faker.Address.city() - "West Conor" - iex> Faker.Address.city() - "Hardy" + "South Lesley" """ @spec city() :: String.t() localize(:city) @@ -49,13 +41,9 @@ defmodule Faker.Address do ## Examples iex> Faker.Address.city_prefix() - "Port" - iex> Faker.Address.city_prefix() - "West" + "South" iex> Faker.Address.city_prefix() "North" - iex> Faker.Address.city_prefix() - "Lake" """ @spec city_prefix() :: String.t() localize(:city_prefix) @@ -66,13 +54,9 @@ defmodule Faker.Address do ## Examples iex> Faker.Address.city_suffix() - "burgh" + "bury" iex> Faker.Address.city_suffix() - "mouth" - iex> Faker.Address.city_suffix() - "burgh" - iex> Faker.Address.city_suffix() - "view" + "port" """ @spec city_suffix() :: String.t() localize(:city_suffix) @@ -83,13 +67,9 @@ defmodule Faker.Address do ## Examples iex> Faker.Address.En.country() - "Guinea-Bissau" - iex> Faker.Address.En.country() - "Tuvalu" + "Dominican Republic" iex> Faker.Address.En.country() - "Portugal" - iex> Faker.Address.En.country() - "United Arab Emirates" + "Bosnia and Herzegovina" """ @spec country() :: String.t() localize(:country) @@ -100,13 +80,9 @@ defmodule Faker.Address do ## Examples iex> Faker.Address.country_code() - "IT" - iex> Faker.Address.country_code() - "MR" - iex> Faker.Address.country_code() - "GM" + "DM" iex> Faker.Address.country_code() - "CX" + "BG" """ @spec country_code() :: String.t() localize(:country_code) @@ -117,13 +93,9 @@ defmodule Faker.Address do ## Examples iex> Faker.Address.geohash() - "1kgw0" + "1kgw0gzrzz" iex> Faker.Address.geohash() - "575152tr612btt" - iex> Faker.Address.geohash() - "20kxxzd9k22m6jedp" - iex> Faker.Address.geohash() - "06kjmd2wtwjp2px" + "jhkfxu2v" """ @spec geohash() :: binary def geohash do @@ -178,10 +150,6 @@ defmodule Faker.Address do -62.20459142744528 iex> Faker.Address.latitude() -59.39243543011051 - iex> Faker.Address.latitude() - 15.346881460762518 - iex> Faker.Address.latitude() - -72.94522080668256 """ @spec latitude() :: float def latitude do @@ -197,10 +165,6 @@ defmodule Faker.Address do -124.40918285489056 iex> Faker.Address.longitude() -118.78487086022102 - iex> Faker.Address.longitude() - 30.693762921525035 - iex> Faker.Address.longitude() - -145.8904416133651 """ @spec longitude() :: float def longitude do @@ -213,13 +177,9 @@ defmodule Faker.Address do ## Examples iex> Faker.Address.postcode() - "01542" + "70879" iex> Faker.Address.postcode() - "64610" - iex> Faker.Address.postcode() - "83297" - iex> Faker.Address.postcode() - "05235" + "90648" """ @spec postcode() :: String.t() defdelegate postcode, to: __MODULE__, as: :zip_code @@ -230,13 +190,9 @@ defmodule Faker.Address do ## Examples iex> Faker.Address.secondary_address() - "Apt. 154" - iex> Faker.Address.secondary_address() - "Apt. 646" + "Apt. 576" iex> Faker.Address.secondary_address() - "Suite 083" - iex> Faker.Address.secondary_address() - "Apt. 970" + "Suite 386" """ @spec secondary_address() :: String.t() localize(:secondary_address) @@ -247,13 +203,9 @@ defmodule Faker.Address do ## Examples iex> Faker.Address.state() - "Hawaii" + "New Hampshire" iex> Faker.Address.state() - "Alaska" - iex> Faker.Address.state() - "Oklahoma" - iex> Faker.Address.state() - "California" + "Hawaii" """ @spec state() :: String.t() localize(:state) @@ -264,13 +216,9 @@ defmodule Faker.Address do ## Examples iex> Faker.Address.state_abbr() - "HI" - iex> Faker.Address.state_abbr() - "AK" - iex> Faker.Address.state_abbr() - "OK" + "NH" iex> Faker.Address.state_abbr() - "CA" + "HI" """ @spec state_abbr() :: String.t() localize(:state_abbr) @@ -281,13 +229,9 @@ defmodule Faker.Address do ## Examples iex> Faker.Address.street_address() - "15426 Aniya Mews" - iex> Faker.Address.street_address() - "83297 Jana Spring" - iex> Faker.Address.street_address() - "57 Helene Mission" + "24 Adelle Place" iex> Faker.Address.street_address() - "03 Izaiah Land" + "26258 Winston Pass" """ @spec street_address() :: String.t() def street_address do @@ -300,13 +244,9 @@ defmodule Faker.Address do ## Examples iex> Faker.Address.street_address(true) - "15426 Aniya Mews Apt. 832" - iex> Faker.Address.street_address(true) - "7 Jana Spring Suite 570" - iex> Faker.Address.street_address(true) - "030 Kozey Knoll Suite 733" - iex> Faker.Address.street_address(true) - "603 Homenick Shore Suite 981" + "24 Adelle Place Apt. 515" + iex> Faker.Address.street_address(false) + "3 Stiedemann Locks" """ @spec street_address(true | any) :: String.t() def street_address(true), do: street_address() <> " " <> secondary_address() @@ -318,13 +258,9 @@ defmodule Faker.Address do ## Examples iex> Faker.Address.street_name() - "Elizabeth Freeway" - iex> Faker.Address.street_name() - "Reese Plaza" - iex> Faker.Address.street_name() - "Aniya Mews" + "Aimee Roads" iex> Faker.Address.street_name() - "Bianka Heights" + "Glover Springs" """ @spec street_name() :: String.t() def street_name do @@ -339,14 +275,10 @@ defmodule Faker.Address do ## Examples - iex> Faker.Address.street_suffix() - "View" - iex> Faker.Address.street_suffix() - "Locks" iex> Faker.Address.street_suffix() "Freeway" iex> Faker.Address.street_suffix() - "Lodge" + "Falls" """ @spec street_suffix() :: String.t() localize(:street_suffix) @@ -357,13 +289,9 @@ defmodule Faker.Address do ## Examples iex> Faker.Address.time_zone() - "Europe/Istanbul" - iex> Faker.Address.time_zone() - "Europe/Copenhagen" + "Europe/Bucharest" iex> Faker.Address.time_zone() - "America/Indiana/Indianapolis" - iex> Faker.Address.time_zone() - "America/Guyana" + "Australia/Hobart" """ @spec time_zone() :: String.t() localize(:time_zone) @@ -374,13 +302,9 @@ defmodule Faker.Address do ## Examples iex> Faker.Address.zip() - "01542" - iex> Faker.Address.zip() - "64610" - iex> Faker.Address.zip() - "83297" + "70879" iex> Faker.Address.zip() - "05235" + "90648" """ @spec zip() :: String.t() defdelegate zip, to: __MODULE__, as: :zip_code @@ -391,13 +315,9 @@ defmodule Faker.Address do ## Examples iex> Faker.Address.zip_code() - "01542" - iex> Faker.Address.zip_code() - "64610" - iex> Faker.Address.zip_code() - "83297" + "70879" iex> Faker.Address.zip_code() - "05235" + "90648" """ @spec zip_code() :: String.t() localize(:zip_code) diff --git a/lib/faker/address/en.ex b/lib/faker/address/en.ex index 277e4bf11..ab70622bd 100644 --- a/lib/faker/address/en.ex +++ b/lib/faker/address/en.ex @@ -13,13 +13,9 @@ defmodule Faker.Address.En do ## Examples iex> Faker.Address.En.building_number() - "15426" + "24" iex> Faker.Address.En.building_number() - "6" - iex> Faker.Address.En.building_number() - "0832" - iex> Faker.Address.En.building_number() - "7" + "79" """ @spec building_number() :: String.t() def building_number do @@ -34,13 +30,9 @@ defmodule Faker.Address.En do ## Examples iex> Faker.Address.En.city() - "Elizabeth" - iex> Faker.Address.En.city() - "Rolfson" + "Carter" iex> Faker.Address.En.city() - "West Conor" - iex> Faker.Address.En.city() - "Hardy" + "South Lesley" """ @spec city() :: String.t() def city do @@ -58,13 +50,9 @@ defmodule Faker.Address.En do ## Examples iex> Faker.Address.En.city_prefix() - "Port" - iex> Faker.Address.En.city_prefix() - "West" + "South" iex> Faker.Address.En.city_prefix() "North" - iex> Faker.Address.En.city_prefix() - "Lake" """ @spec city_prefix() :: String.t() sampler(:city_prefix, [ @@ -83,13 +71,9 @@ defmodule Faker.Address.En do ## Examples iex> Faker.Address.En.city_suffix() - "burgh" - iex> Faker.Address.En.city_suffix() - "mouth" + "bury" iex> Faker.Address.En.city_suffix() - "burgh" - iex> Faker.Address.En.city_suffix() - "view" + "port" """ @spec city_suffix() :: String.t() sampler(:city_suffix, [ @@ -120,13 +104,9 @@ defmodule Faker.Address.En do ## Examples iex> Faker.Address.En.country() - "Guinea-Bissau" - iex> Faker.Address.En.country() - "Tuvalu" + "Dominican Republic" iex> Faker.Address.En.country() - "Portugal" - iex> Faker.Address.En.country() - "United Arab Emirates" + "Bosnia and Herzegovina" """ @spec country() :: String.t() sampler(:country, [ @@ -383,13 +363,9 @@ defmodule Faker.Address.En do ## Examples iex> Faker.Address.En.country_code() - "IT" - iex> Faker.Address.En.country_code() - "MR" + "DM" iex> Faker.Address.En.country_code() - "GM" - iex> Faker.Address.En.country_code() - "CX" + "BG" """ @spec country_code() :: String.t() sampler(:country_code, [ @@ -651,13 +627,9 @@ defmodule Faker.Address.En do ## Examples iex> Faker.Address.En.secondary_address() - "Apt. 154" - iex> Faker.Address.En.secondary_address() - "Apt. 646" + "Apt. 576" iex> Faker.Address.En.secondary_address() - "Suite 083" - iex> Faker.Address.En.secondary_address() - "Apt. 970" + "Suite 386" """ @spec secondary_address() :: String.t() def secondary_address do @@ -672,13 +644,9 @@ defmodule Faker.Address.En do ## Examples iex> Faker.Address.En.state() - "Hawaii" - iex> Faker.Address.En.state() - "Alaska" - iex> Faker.Address.En.state() - "Oklahoma" + "New Hampshire" iex> Faker.Address.En.state() - "California" + "Hawaii" """ @spec state() :: String.t() sampler(:state, [ @@ -740,13 +708,9 @@ defmodule Faker.Address.En do ## Examples iex> Faker.Address.En.state_abbr() - "HI" - iex> Faker.Address.En.state_abbr() - "AK" + "NH" iex> Faker.Address.En.state_abbr() - "OK" - iex> Faker.Address.En.state_abbr() - "CA" + "HI" """ @spec state_abbr() :: String.t() sampler(:state_abbr, [ @@ -808,13 +772,9 @@ defmodule Faker.Address.En do ## Examples iex> Faker.Address.En.street_address() - "15426 Padberg Mews" + "24 Adella Pines" iex> Faker.Address.En.street_address() - "83297 Jana Spring" - iex> Faker.Address.En.street_address() - "57 Legros Cletus Field" - iex> Faker.Address.En.street_address() - "32097 Brekke Ladarius Turnpike" + "1 Waelchi Passage" """ @spec street_address() :: String.t() def street_address do @@ -827,13 +787,9 @@ defmodule Faker.Address.En do ## Examples iex> Faker.Address.En.street_address(true) - "15426 Padberg Mews, Apt. 832" - iex> Faker.Address.En.street_address(false) - "7 Jana Spring" - iex> Faker.Address.En.street_address(true) - "57 Legros Cletus Field, Apt. 320" + "24 Adella Pines, Apt. 404" iex> Faker.Address.En.street_address(false) - "7 Brekke Ladarius Turnpike" + "25 Sipes Keys" """ @spec street_address(true | any) :: String.t() def street_address(true), do: street_address() <> ", " <> secondary_address() @@ -845,13 +801,9 @@ defmodule Faker.Address.En do ## Examples iex> Faker.Address.En.street_name() - "Elizabeth Freeway" + "Aileen Road" iex> Faker.Address.En.street_name() - "Sipes Trycia Glen" - iex> Faker.Address.En.street_name() - "Schiller Delphine Points" - iex> Faker.Address.En.street_name() - "Murphy Shore" + "Cristobal Dam" """ @spec street_name() :: String.t() def street_name do @@ -867,14 +819,10 @@ defmodule Faker.Address.En do ## Examples - iex> Faker.Address.En.street_suffix() - "View" - iex> Faker.Address.En.street_suffix() - "Locks" iex> Faker.Address.En.street_suffix() "Freeway" iex> Faker.Address.En.street_suffix() - "Lodge" + "Falls" """ @spec street_suffix() :: String.t() sampler(:street_suffix, [ @@ -1111,13 +1059,9 @@ defmodule Faker.Address.En do ## Examples iex> Faker.Address.En.time_zone() - "Europe/Istanbul" + "Europe/Bucharest" iex> Faker.Address.En.time_zone() - "Europe/Copenhagen" - iex> Faker.Address.En.time_zone() - "America/Indiana/Indianapolis" - iex> Faker.Address.En.time_zone() - "America/Guyana" + "Australia/Hobart" """ @spec time_zone() :: String.t() sampler(:time_zone, [ @@ -1272,13 +1216,9 @@ defmodule Faker.Address.En do ## Examples iex> Faker.Address.En.zip_code() - "01542" - iex> Faker.Address.En.zip_code() - "64610" - iex> Faker.Address.En.zip_code() - "83297" + "70879" iex> Faker.Address.En.zip_code() - "05235" + "90648" """ @spec zip_code() :: String.t() def zip_code do diff --git a/lib/faker/address/es.ex b/lib/faker/address/es.ex index b560eb790..d2f7dc5e4 100644 --- a/lib/faker/address/es.ex +++ b/lib/faker/address/es.ex @@ -13,13 +13,9 @@ defmodule Faker.Address.Es do ## Examples iex> Faker.Address.Es.building_number() - "s/n." + "2" iex> Faker.Address.Es.building_number() - "5" - iex> Faker.Address.Es.building_number() - "26" - iex> Faker.Address.Es.building_number() - "61" + "87" """ @spec building_number() :: String.t() def building_number do @@ -34,13 +30,9 @@ defmodule Faker.Address.Es do ## Examples iex> Faker.Address.Es.city() - "Guillermina" - iex> Faker.Address.Es.city() - "Agosto" - iex> Faker.Address.Es.city() - "Burgos Alfonso" + "Arreola" iex> Faker.Address.Es.city() - "María José" + "Razo" """ @spec city() :: String.t() def city do @@ -58,13 +50,9 @@ defmodule Faker.Address.Es do ## Examples iex> Faker.Address.Es.city_prefix() - "Vitoria" + "Mérida" iex> Faker.Address.Es.city_prefix() - "Oviedo" - iex> Faker.Address.Es.city_prefix() - "Talavera de la Reina" - iex> Faker.Address.Es.city_prefix() - "Cáceres" + "Elche" """ @spec city_prefix() :: String.t() sampler(:city_prefix, [ @@ -204,13 +192,9 @@ defmodule Faker.Address.Es do ## Examples iex> Faker.Address.Es.country() - "Cabo Verde" - iex> Faker.Address.Es.country() - "Malawi" - iex> Faker.Address.Es.country() - "Bielorusia" + "Gambia" iex> Faker.Address.Es.country() - "Mali" + "Kuwait" """ @spec country() :: String.t() sampler(:country, [ @@ -413,13 +397,9 @@ defmodule Faker.Address.Es do ## Examples iex> Faker.Address.Es.secondary_address() - "Esc. 154" + "Esc. 576" iex> Faker.Address.Es.secondary_address() - "Esc. 646" - iex> Faker.Address.Es.secondary_address() - "Puerta 083" - iex> Faker.Address.Es.secondary_address() - "Esc. 970" + "Puerta 386" """ @spec secondary_address() :: String.t() def secondary_address do @@ -440,13 +420,9 @@ defmodule Faker.Address.Es do ## Examples iex> Faker.Address.Es.region() - "Extremadura" - iex> Faker.Address.Es.region() - "Aragón" - iex> Faker.Address.Es.region() - "País Vasco" + "Castilla y León" iex> Faker.Address.Es.region() - "Canarias" + "Cataluña" """ @spec region() :: String.t() @@ -479,11 +455,7 @@ defmodule Faker.Address.Es do ## Examples iex> Faker.Address.Es.state_abbr() - "Ara" - iex> Faker.Address.Es.state_abbr() - "Cbr" - iex> Faker.Address.Es.state_abbr() - "Mad" + "Leo" iex> Faker.Address.Es.state_abbr() "Gal" """ @@ -514,13 +486,9 @@ defmodule Faker.Address.Es do ## Examples iex> Faker.Address.Es.street_address() - "Arrabal Daniela 26" - iex> Faker.Address.Es.street_address() - "Mercado Navarro s/n." + "Rua Alfonso 75" iex> Faker.Address.Es.street_address() - "Parque Débora Huerta 05" - iex> Faker.Address.Es.street_address() - "Rambla Gutiérrez 02" + "Puerta Yolanda Sánchez 4" """ @spec street_address() :: String.t() def street_address do @@ -533,13 +501,9 @@ defmodule Faker.Address.Es do ## Examples iex> Faker.Address.Es.street_address(true) - "Arrabal Daniela 26 Esc. 610" - iex> Faker.Address.Es.street_address(false) - "Parque Débora Huerta 05" + "Rua Alfonso 75 Puerta 681" iex> Faker.Address.Es.street_address(false) - "Rambla Gutiérrez 02" - iex> Faker.Address.Es.street_address(false) - "Calle Murillo 2" + "Cuesta Dávila 0" """ @spec street_address(true | any) :: String.t() def street_address(true), do: street_address() <> " " <> secondary_address() @@ -551,13 +515,9 @@ defmodule Faker.Address.Es do ## Examples iex> Faker.Address.Es.street_name() - "Arrabal Daniela" - iex> Faker.Address.Es.street_name() - "Polígono Javier Acosta" + "Rua Alfonso" iex> Faker.Address.Es.street_name() - "Urbanización Gerardo Garza" - iex> Faker.Address.Es.street_name() - "Ferrocarril Huerta" + "Calle Gaona" """ @spec street_name() :: String.t() def street_name do @@ -574,14 +534,10 @@ defmodule Faker.Address.Es do Return street suffix. ## Examples - iex> Faker.Address.Es.street_suffix() - "de arriba" - iex> Faker.Address.Es.street_suffix() - "Sur" iex> Faker.Address.Es.street_suffix() "de abajo" iex> Faker.Address.Es.street_suffix() - "Norte" + "de abajo" """ @spec street_suffix() :: String.t() sampler(:street_suffix, [ @@ -597,13 +553,9 @@ defmodule Faker.Address.Es do ## Examples iex> Faker.Address.Es.street_prefix() - "Carretera" - iex> Faker.Address.Es.street_prefix() - "Arrabal" + "Senda" iex> Faker.Address.Es.street_prefix() - "Chalet" - iex> Faker.Address.Es.street_prefix() - "Colegio" + "Barrio" """ @spec street_prefix() :: String.t() sampler(:street_prefix, [ @@ -684,13 +636,9 @@ defmodule Faker.Address.Es do ## Examples iex> Faker.Address.Es.time_zone() - "Australia/Sydney" - iex> Faker.Address.Es.time_zone() - "America/Guyana" + "Europa/Riga" iex> Faker.Address.Es.time_zone() - "Asia/Kathmandu" - iex> Faker.Address.Es.time_zone() - "Europa/Vienna" + "Asia/Rangoon" """ @spec time_zone() :: String.t() sampler(:time_zone, [ @@ -827,13 +775,9 @@ defmodule Faker.Address.Es do ## Examples iex> Faker.Address.Es.zip_code() - "01542" - iex> Faker.Address.Es.zip_code() - "64610" - iex> Faker.Address.Es.zip_code() - "83297" + "70879" iex> Faker.Address.Es.zip_code() - "05235" + "90648" """ @spec zip_code() :: String.t() def zip_code do diff --git a/lib/faker/address/hy.ex b/lib/faker/address/hy.ex index 2becbbc9c..e9280644e 100644 --- a/lib/faker/address/hy.ex +++ b/lib/faker/address/hy.ex @@ -10,14 +10,10 @@ defmodule Faker.Address.Hy do ## Examples - iex> Faker.Address.Hy.building_number() - "1" iex> Faker.Address.Hy.building_number() "4" iex> Faker.Address.Hy.building_number() - "64" - iex> Faker.Address.Hy.building_number() - "108" + "3" """ @spec building_number() :: String.t() def building_number do @@ -31,14 +27,10 @@ defmodule Faker.Address.Hy do ## Examples - iex> Faker.Address.Hy.city() - "Ստեփանավան" - iex> Faker.Address.Hy.city() - "Մարալիկ" iex> Faker.Address.Hy.city() "Ճամբարակ" iex> Faker.Address.Hy.city() - "Մեղրի" + "Բերդ" """ @spec city() :: String.t() @@ -114,13 +106,9 @@ defmodule Faker.Address.Hy do ## Examples iex> Faker.Address.Hy.country() - "Ֆրանսիա" + "Սալվադոր" iex> Faker.Address.Hy.country() - "Նիդերլանդներ" - iex> Faker.Address.Hy.country() - "Ղազախստան" - iex> Faker.Address.Hy.country() - "Թուրքմենստան" + "Չիլի" """ @spec country() :: String.t() sampler(:country, [ @@ -362,14 +350,10 @@ defmodule Faker.Address.Hy do ## Examples - iex> Faker.Address.Hy.secondary_address() - "բն. 1" iex> Faker.Address.Hy.secondary_address() "բն. 4" iex> Faker.Address.Hy.secondary_address() - "բն. 64" - iex> Faker.Address.Hy.secondary_address() - "բն. 110" + "բն. 3" """ @spec secondary_address() :: String.t() @@ -386,13 +370,9 @@ defmodule Faker.Address.Hy do ## Examples iex> Faker.Address.Hy.state() - "Արագածոտն" - iex> Faker.Address.Hy.state() - "Արարատ" - iex> Faker.Address.Hy.state() - "Կոտայք" + "Սյունիք" iex> Faker.Address.Hy.state() - "Լոռի" + "Արագածոտն" """ @spec state() :: String.t() sampler(:state, [ @@ -414,13 +394,9 @@ defmodule Faker.Address.Hy do ## Examples iex> Faker.Address.Hy.state_abbr() - "ԱԳ" - iex> Faker.Address.Hy.state_abbr() - "ԱՐ" + "ՍՅ" iex> Faker.Address.Hy.state_abbr() - "ԿՏ" - iex> Faker.Address.Hy.state_abbr() - "ԼՌ" + "ԱԳ" """ @spec state_abbr() :: String.t() sampler(:state_abbr, [ @@ -442,13 +418,9 @@ defmodule Faker.Address.Hy do ## Examples iex> Faker.Address.Hy.street_address() - "Սուրբ Հովհաննեսի 542" - iex> Faker.Address.Hy.street_address() - "Բուռնազյան 61" - iex> Faker.Address.Hy.street_address() - "Լամբրոնի 329" + "Թորամանյան 09" iex> Faker.Address.Hy.street_address() - "Հանրապետության 5" + "Կուստոյի 96" """ @spec street_address() :: String.t() def street_address do @@ -461,13 +433,9 @@ defmodule Faker.Address.Hy do ## Examples iex> Faker.Address.Hy.street_address(true) - "Սուրբ Հովհաննեսի 542 բն. 4" + "Թորամանյան 09 բն. 58" iex> Faker.Address.Hy.street_address(false) - "Գյուլբենկյան 0" - iex> Faker.Address.Hy.street_address(true) - "Պուշկինի 29 բն. 0" - iex> Faker.Address.Hy.street_address(false) - "Տիգրան Մեծի 35" + "Իսահակյան 28" """ @spec street_address(true | any) :: String.t() def street_address(true), do: street_address() <> " " <> secondary_address() @@ -479,13 +447,9 @@ defmodule Faker.Address.Hy do ## Examples iex> Faker.Address.Hy.street_name() - "Սուրբ Հովհաննեսի" - iex> Faker.Address.Hy.street_name() - "Մոսկովյան" + "Թորամանյան" iex> Faker.Address.Hy.street_name() - "Սերգեյ Փարաջանովի" - iex> Faker.Address.Hy.street_name() - "Պրահայի" + "Մուրացանի" """ @spec street_name() :: String.t() sampler(:street_name, [ @@ -659,14 +623,10 @@ defmodule Faker.Address.Hy do ## Examples - iex> Faker.Address.Hy.street_suffix() - "նրբանցք" - iex> Faker.Address.Hy.street_suffix() - "պողոտա" iex> Faker.Address.Hy.street_suffix() "փակուղի" iex> Faker.Address.Hy.street_suffix() - "փողոց" + "փակուղի" """ @spec street_suffix() :: String.t() sampler(:street_suffix, [ @@ -682,13 +642,9 @@ defmodule Faker.Address.Hy do ## Examples iex> Faker.Address.Hy.zip_code() - "0154" - iex> Faker.Address.Hy.zip_code() - "2646" - iex> Faker.Address.Hy.zip_code() - "1083" + "3243" iex> Faker.Address.Hy.zip_code() - "2970" + "2990" """ @spec zip_code() :: String.t() def zip_code do diff --git a/lib/faker/address/it.ex b/lib/faker/address/it.ex index 6505dbc08..26c28d068 100644 --- a/lib/faker/address/it.ex +++ b/lib/faker/address/it.ex @@ -13,13 +13,9 @@ defmodule Faker.Address.It do ## Examples iex> Faker.Address.It.building_number() - "154" + "465" iex> Faker.Address.It.building_number() - "64" - iex> Faker.Address.It.building_number() - "1" - iex> Faker.Address.It.building_number() - "832" + "164" """ @spec building_number() :: String.t() def building_number do @@ -34,13 +30,9 @@ defmodule Faker.Address.It do ## Examples iex> Faker.Address.It.city() - "Dionigi Marittima" - iex> Faker.Address.It.city() - "Quarto Gennaro" - iex> Faker.Address.It.city() - "Sesto Maurizia" + "Sanna" iex> Faker.Address.It.city() - "Case di Taffy" + "Immacolata di sotto" """ @spec city() :: String.t() def city do @@ -58,13 +50,9 @@ defmodule Faker.Address.It do ## Examples iex> Faker.Address.It.city_prefix() - "Quarto" + "Settimo" iex> Faker.Address.It.city_prefix() - "Castello" - iex> Faker.Address.It.city_prefix() - "Quarto" - iex> Faker.Address.It.city_prefix() - "Santa" + "Sesto" """ @spec city_prefix() :: String.t() sampler(:city_prefix, [ @@ -91,16 +79,14 @@ defmodule Faker.Address.It do iex> Faker.Address.It.city_suffix() "di sotto" iex> Faker.Address.It.city_suffix() - "di sopra" - iex> Faker.Address.It.city_suffix() - "Marittima" + "di sotto" """ @spec city_suffix() :: String.t() sampler(:city_suffix, [ "al mare", + "Marittima", "di sopra", - "di sotto", - "Marittima" + "di sotto" ]) @doc """ @@ -110,13 +96,9 @@ defmodule Faker.Address.It do ## Examples iex> Faker.Address.It.country() - "Etiopia" + "Estonia" iex> Faker.Address.It.country() - "Cipro" - iex> Faker.Address.It.country() - "Timor Leste" - iex> Faker.Address.It.country() - "Nicaragua" + "Bhutan" """ @spec country() :: String.t() sampler(:country, [ @@ -377,9 +359,9 @@ defmodule Faker.Address.It do ## Examples iex> Faker.Address.It.country_code() - "CO" + "EE" iex> Faker.Address.It.country_code() - "LV" + "BY" """ @spec country_code() :: String.t() sampler(:country_code, [ @@ -638,13 +620,9 @@ defmodule Faker.Address.It do ## Examples iex> Faker.Address.It.secondary_address() - "/A" - iex> Faker.Address.It.secondary_address() - "/B" - iex> Faker.Address.It.secondary_address() - "/A" + "Edificio 2" iex> Faker.Address.It.secondary_address() - "Edificio 26" + "Edificio 87" """ @spec secondary_address() :: String.t() def secondary_address do @@ -669,13 +647,9 @@ defmodule Faker.Address.It do ## Examples iex> Faker.Address.It.region() - "Molise" + "Liguria" iex> Faker.Address.It.region() - "Basilicata" - iex> Faker.Address.It.region() - "Toscana" - iex> Faker.Address.It.region() - "Emilia-Romagna" + "Lombardia" """ @spec region() :: String.t() sampler(:region, [ @@ -718,13 +692,9 @@ defmodule Faker.Address.It do ## Examples iex> Faker.Address.It.province() - "Barletta-Andria-Trani" - iex> Faker.Address.It.province() - "Trento" - iex> Faker.Address.It.province() - "Pavia" + "Nuoro" iex> Faker.Address.It.province() - "Caserta" + "Genova" """ @spec province() :: String.t() sampler(:province, [ @@ -848,13 +818,9 @@ defmodule Faker.Address.It do ## Examples iex> Faker.Address.It.province_abbr() - "BA" + "OR" iex> Faker.Address.It.province_abbr() - "TR" - iex> Faker.Address.It.province_abbr() - "PG" - iex> Faker.Address.It.province_abbr() - "CE" + "GE" """ @spec province_abbr() :: String.t() sampler(:province_abbr, [ @@ -974,13 +940,9 @@ defmodule Faker.Address.It do ## Examples iex> Faker.Address.It.region_province_abbr() - ["Calabria", "Reggio di Calabria", "RC"] - iex> Faker.Address.It.region_province_abbr() - ["Trentino-Alto Adige/Südtirol", "Bolzano/Bozen", "BZ"] - iex> Faker.Address.It.region_province_abbr() - ["Puglia", "Bari", "BA"] + ["Piemonte", "Cuneo", "CN"] iex> Faker.Address.It.region_province_abbr() - ["Emilia-Romagna", "Piacenza", "PC"] + ["Liguria", "Savona", "SV"] """ @spec region_province_abbr() :: [String.t()] sampler(:region_province_abbr, [ @@ -1099,13 +1061,9 @@ defmodule Faker.Address.It do ## Examples iex> Faker.Address.It.street_address() - "Corso Agave, 2" + "Viale Congo, 51" iex> Faker.Address.It.street_address() - "Viale Keith, 083" - iex> Faker.Address.It.street_address() - "Strada per Liguria, 523" - iex> Faker.Address.It.street_address() - "Viale De Rosa, 03" + "Via Privata Elvio Sorrentino, 883" """ @spec street_address() :: String.t() def street_address do @@ -1118,13 +1076,9 @@ defmodule Faker.Address.It do ## Examples iex> Faker.Address.It.street_address(true) - "Corso Agave, 2/B" - iex> Faker.Address.It.street_address(false) - "Via per Piemonte, 832" - iex> Faker.Address.It.street_address(false) - "Vicolo Longo, 2" + "Viale Congo, 51/C" iex> Faker.Address.It.street_address(false) - "Via Privata Galli, 2" + "Strada per Milano, 55" """ @spec street_address(true | any) :: String.t() def street_address(true), do: street_address() <> secondary_address() @@ -1136,13 +1090,9 @@ defmodule Faker.Address.It do ## Examples iex> Faker.Address.It.street_name() - "Corso Agave" + "Viale Congo" iex> Faker.Address.It.street_name() - "Via Privata Gennaro Mazza" - iex> Faker.Address.It.street_name() - "Vicolo Shaula Lombardi" - iex> Faker.Address.It.street_name() - "Strada per Giuliani" + "Corso Valle d'Aosta/Vallée d'Aoste" """ @spec street_name() :: String.t() def street_name do @@ -1165,13 +1115,9 @@ defmodule Faker.Address.It do ## Examples iex> Faker.Address.It.street_prefix() - "Vicolo" - iex> Faker.Address.It.street_prefix() - "Corso" - iex> Faker.Address.It.street_prefix() - "Piazzale" + "Strada per" iex> Faker.Address.It.street_prefix() - "Piazza" + "Viale" """ @spec street_prefix() :: String.t() sampler(:street_prefix, [ @@ -1192,13 +1138,9 @@ defmodule Faker.Address.It do ## Examples iex> Faker.Address.It.time_zone() - "Australia/Sydney" + "Europa/Riga" iex> Faker.Address.It.time_zone() - "America/Guyana" - iex> Faker.Address.It.time_zone() - "Asia/Kathmandu" - iex> Faker.Address.It.time_zone() - "Europa/Vienna" + "Asia/Rangoon" """ @spec time_zone() :: String.t() sampler(:time_zone, [ @@ -1335,13 +1277,9 @@ defmodule Faker.Address.It do ## Examples iex> Faker.Address.It.zip_code() - "01542" - iex> Faker.Address.It.zip_code() - "64610" - iex> Faker.Address.It.zip_code() - "83297" + "70879" iex> Faker.Address.It.zip_code() - "05235" + "90648" """ @spec zip_code() :: String.t() def zip_code do diff --git a/lib/faker/address/pt_br.ex b/lib/faker/address/pt_br.ex index 032c11286..90668a574 100644 --- a/lib/faker/address/pt_br.ex +++ b/lib/faker/address/pt_br.ex @@ -13,13 +13,9 @@ defmodule Faker.Address.PtBr do ## Examples iex> Faker.Address.PtBr.building_number() - "s/n" + "24" iex> Faker.Address.PtBr.building_number() - "5426" - iex> Faker.Address.PtBr.building_number() - "6" - iex> Faker.Address.PtBr.building_number() - "0832" + "79" """ @spec building_number() :: String.t() def building_number do @@ -34,13 +30,9 @@ defmodule Faker.Address.PtBr do ## Examples iex> Faker.Address.PtBr.city() - "Senador Kaique Paulista" - iex> Faker.Address.PtBr.city() - "São Roberta dos Dourados" - iex> Faker.Address.PtBr.city() - "Salto das Flores" + "Giovanna" iex> Faker.Address.PtBr.city() - "Kléber" + "Milena Paulista" """ @spec city() :: String.t() def city do @@ -61,13 +53,9 @@ defmodule Faker.Address.PtBr do ## Examples iex> Faker.Address.PtBr.city_suffixes() - "da Serra" + "de Goiás" iex> Faker.Address.PtBr.city_suffixes() - "dos Dourados" - iex> Faker.Address.PtBr.city_suffixes() - "da Serra" - iex> Faker.Address.PtBr.city_suffixes() - "Paulista" + "da Mata" """ @spec city_suffixes() :: String.t() sampler(:city_suffixes, [ @@ -98,11 +86,7 @@ defmodule Faker.Address.PtBr do ## Examples iex> Faker.Address.PtBr.city_prefix() - "Santo" - iex> Faker.Address.PtBr.city_prefix() - "Senador" - iex> Faker.Address.PtBr.city_prefix() - "Senador" + "Bento" iex> Faker.Address.PtBr.city_prefix() "Alta" """ @@ -138,13 +122,9 @@ defmodule Faker.Address.PtBr do ## Examples iex> Faker.Address.PtBr.country() - "Ilhas Virgens Britânicas" + "Cuba" iex> Faker.Address.PtBr.country() - "Coreia do Sul" - iex> Faker.Address.PtBr.country() - "Bolívia" - iex> Faker.Address.PtBr.country() - "Mongólia" + "Ashmore and Cartier Islands" """ @spec country() :: String.t() sampler(:country, [ @@ -422,13 +402,9 @@ defmodule Faker.Address.PtBr do ## Examples iex> Faker.Address.PtBr.secondary_address() - "Sala 154" - iex> Faker.Address.PtBr.secondary_address() - "Sala 646" - iex> Faker.Address.PtBr.secondary_address() - "AP 083" + "Sala 576" iex> Faker.Address.PtBr.secondary_address() - "Sala 970" + "AP 386" """ @spec secondary_address() :: String.t() def secondary_address do @@ -443,13 +419,9 @@ defmodule Faker.Address.PtBr do ## Examples iex> Faker.Address.PtBr.state() - "Rondônia" + "Espírito Santo" iex> Faker.Address.PtBr.state() - "Rio Grande do Sul" - iex> Faker.Address.PtBr.state() - "Distrito Federal" - iex> Faker.Address.PtBr.state() - "Ceará" + "Alagoas" """ @spec state() :: String.t() sampler(:state, [ @@ -488,13 +460,9 @@ defmodule Faker.Address.PtBr do ## Examples iex> Faker.Address.PtBr.neighborhood() - "Granja De Freitas" - iex> Faker.Address.PtBr.neighborhood() - "Novo Ouro Preto" + "Candelaria" iex> Faker.Address.PtBr.neighborhood() - "Padre Eustáquio" - iex> Faker.Address.PtBr.neighborhood() - "Nossa Senhora Aparecida" + "Ernesto Nascimento" """ @spec neighborhood() :: String.t() @@ -989,13 +957,9 @@ defmodule Faker.Address.PtBr do ## Examples iex> Faker.Address.PtBr.state_abbr() - "RO" - iex> Faker.Address.PtBr.state_abbr() - "RS" + "ES" iex> Faker.Address.PtBr.state_abbr() - "DF" - iex> Faker.Address.PtBr.state_abbr() - "CE" + "AL" """ @spec state_abbr() :: String.t() sampler(:state_abbr, [ @@ -1034,13 +998,9 @@ defmodule Faker.Address.PtBr do ## Examples iex> Faker.Address.PtBr.street_address() - "Estação Kaique, 2" - iex> Faker.Address.PtBr.street_address() - "Lagoa Matheus, 0832" + "Passarela Bernardo, 2584" iex> Faker.Address.PtBr.street_address() - "Estrada Diegues, s/n" - iex> Faker.Address.PtBr.street_address() - "Praia Limeira, 020" + "Avenida Moura, 07" """ @spec street_address() :: String.t() def street_address do @@ -1053,13 +1013,9 @@ defmodule Faker.Address.PtBr do ## Examples iex> Faker.Address.PtBr.street_address(true) - "Estação Kaique, 2 Sala 461" - iex> Faker.Address.PtBr.street_address(false) - "Conjunto Rodrigo, 970" + "Passarela Bernardo, 2584 AP 494" iex> Faker.Address.PtBr.street_address(false) - "Trecho Davi Luiz Limeira, 020" - iex> Faker.Address.PtBr.street_address(false) - "Sítio Maria Eduarda, 097" + "Trecho Vicente Videira, 449" """ @spec street_address(true | any) :: String.t() def street_address(true), do: street_address() <> " " <> secondary_address() @@ -1071,13 +1027,9 @@ defmodule Faker.Address.PtBr do ## Examples iex> Faker.Address.PtBr.street_name() - "Estação Kaique" - iex> Faker.Address.PtBr.street_name() - "Morro Louise Macieira" + "Passarela Bernardo" iex> Faker.Address.PtBr.street_name() - "Loteamento Maria Alice Junqueira" - iex> Faker.Address.PtBr.street_name() - "Condomínio da Maia" + "Travessa Rios" """ @spec street_name() :: String.t() def street_name do @@ -1096,13 +1048,9 @@ defmodule Faker.Address.PtBr do ## Examples iex> Faker.Address.PtBr.street_prefix() - "Recanto" - iex> Faker.Address.PtBr.street_prefix() - "Estação" + "Praia" iex> Faker.Address.PtBr.street_prefix() "Feira" - iex> Faker.Address.PtBr.street_prefix() - "Fazenda" """ @spec street_prefix() :: String.t() sampler(:street_prefix, [ @@ -1159,13 +1107,9 @@ defmodule Faker.Address.PtBr do ## Examples iex> Faker.Address.PtBr.time_zone() - "Australia/Sydney" - iex> Faker.Address.PtBr.time_zone() - "America/Guyana" + "Europa/Riga" iex> Faker.Address.PtBr.time_zone() - "Asia/Kathmandu" - iex> Faker.Address.PtBr.time_zone() - "Europa/Vienna" + "Asia/Rangoon" """ @spec time_zone() :: String.t() sampler(:time_zone, [ @@ -1302,13 +1246,9 @@ defmodule Faker.Address.PtBr do ## Examples iex> Faker.Address.PtBr.zip_code() - "15426461" - iex> Faker.Address.PtBr.zip_code() - "83297052" - iex> Faker.Address.PtBr.zip_code() - "57.020-303" + "46549723" iex> Faker.Address.PtBr.zip_code() - "09733-760" + "72.490-898" """ @spec zip_code() :: String.t() def zip_code do diff --git a/lib/faker/address/ru.ex b/lib/faker/address/ru.ex index b81e59380..a38b82eec 100644 --- a/lib/faker/address/ru.ex +++ b/lib/faker/address/ru.ex @@ -10,14 +10,10 @@ defmodule Faker.Address.Ru do ## Examples - iex> Faker.Address.Ru.country() - "Белоруссия" - iex> Faker.Address.Ru.country() - "Австрия" iex> Faker.Address.Ru.country() "Ирландия" iex> Faker.Address.Ru.country() - "Тринидад и Тобаго" + "Республика Конго" """ @spec country() :: String.t() sampler(:country, [ @@ -223,13 +219,9 @@ defmodule Faker.Address.Ru do ## Examples iex> Faker.Address.Ru.state() - "Самарская область" - iex> Faker.Address.Ru.state() - "Орловская область" - iex> Faker.Address.Ru.state() - "Рязанская область" + "Псковская область" iex> Faker.Address.Ru.state() - "Волгоградская область" + "Ростовская область" """ @spec state() :: String.t() sampler(:state, [ diff --git a/lib/faker/random/test.ex b/lib/faker/random/test.ex index 00b08c720..6b8355b60 100644 --- a/lib/faker/random/test.ex +++ b/lib/faker/random/test.ex @@ -1,9 +1,13 @@ defmodule Faker.Random.Test do @moduledoc false + @behaviour Faker.Random def random_between(left, right) do set_seed(:ets.lookup(:seed_registry, self())) - left + :rand.uniform(right - left + 1) - 1 + + left..right + |> shuffle() + |> hd() end def random_bytes(total) do @@ -19,6 +23,87 @@ defmodule Faker.Random.Test do :rand.uniform() end + @spec shuffle(Enum.t()) :: list + def shuffle(enumerable) do + randomized = + Enum.reduce(enumerable, [], fn x, acc -> + [{:rand.uniform(), x} | acc] + end) + + shuffle_unwrap(:lists.keysort(1, randomized)) + end + + defp shuffle_unwrap([{_, h} | rest]), do: [h | shuffle_unwrap(rest)] + defp shuffle_unwrap([]), do: [] + + @spec random(Enum.t()) :: Enum.element() + def random(enumerable) + + def random(enumerable) when is_list(enumerable) do + case length(enumerable) do + 0 -> raise Enum.EmptyError + length -> enumerable |> drop_list(random_count(length)) |> hd() + end + end + + def random(first.._//step = range) do + case Range.size(range) do + 0 -> raise Enum.EmptyError + size -> first + random_count(size) * step + end + end + + def random(enumerable) do + result = + case Enumerable.slice(enumerable) do + {:ok, 0, _} -> + [] + + {:ok, count, fun} when is_function(fun, 1) -> + slice_list(fun.(enumerable), random_count(count), 1, 1) + + # TODO: Deprecate me in Elixir v1.18. + {:ok, count, fun} when is_function(fun, 2) -> + fun.(random_count(count), 1) + + {:ok, count, fun} when is_function(fun, 3) -> + fun.(random_count(count), 1, 1) + + {:error, _} -> + Enum.take_random(enumerable, 1) + end + + case result do + [] -> raise Enum.EmptyError + [elem] -> elem + end + end + + defp random_count(count) do + :rand.uniform(count) - 1 + end + + defp drop_list(list, 0), do: list + defp drop_list([_ | tail], counter), do: drop_list(tail, counter - 1) + defp drop_list([], _), do: [] + + defp slice_list(list, start, amount, step) do + if step == 1 do + list |> drop_list(start) |> take_list(amount) + else + list |> drop_list(start) |> take_every_list(amount, step - 1) + end + end + + defp take_list(_list, 0), do: [] + defp take_list([head | tail], counter), do: [head | take_list(tail, counter - 1)] + defp take_list([], _counter), do: [] + + defp take_every_list([head | tail], counter, to_drop), + do: [head | tail |> drop_list(to_drop) |> take_every_list(counter - 1, to_drop)] + + defp take_every_list([], _counter, _to_drop), do: [] + defp set_seed([]) do :rand.seed(:exsplus, {1, 1, 1}) :ets.insert(:seed_registry, {self(), true}) diff --git a/lib/faker/util.ex b/lib/faker/util.ex index 34bae38d1..d8764ec34 100644 --- a/lib/faker/util.ex +++ b/lib/faker/util.ex @@ -216,7 +216,7 @@ defmodule Faker.Util do def cycle(cycle_pid) do Agent.get_and_update(cycle_pid, fn {[], items} -> - [h | t] = Enum.shuffle(items) + [h | t] = Faker.shuffle(items) {h, {t, items}} {[h | t], items} -> From 6b135df4c08ff505b67c0c222cb4ff62fd022c76 Mon Sep 17 00:00:00 2001 From: Igor Kapkov Date: Sat, 24 Aug 2024 20:54:24 +1000 Subject: [PATCH 20/92] fix: more tests --- lib/faker/airports.ex | 16 ++----- lib/faker/airports/en.ex | 8 +--- lib/faker/airports/pt_br.ex | 8 +--- lib/faker/app.ex | 32 ++++--------- lib/faker/avatar.ex | 24 ++-------- lib/faker/aws/en.ex | 48 +++++-------------- lib/faker/aws/fr.ex | 8 +--- lib/faker/aws/pt_br.ex | 8 +--- lib/faker/aws/pt_pt.ex | 8 +--- lib/faker/beer.ex | 70 +++++++--------------------- lib/faker/beer/en.ex | 46 +++++------------- lib/faker/blockchain/bitcoin.ex | 8 ++-- lib/faker/blockchain/ethereum.ex | 20 +++----- lib/faker/cannabis.ex | 80 +++++++------------------------- lib/faker/cannabis/en.ex | 72 +++++++--------------------- 15 files changed, 110 insertions(+), 346 deletions(-) diff --git a/lib/faker/airports.ex b/lib/faker/airports.ex index 211062bf5..197a0679c 100644 --- a/lib/faker/airports.ex +++ b/lib/faker/airports.ex @@ -11,13 +11,9 @@ defmodule Faker.Airports do ## Examples iex> Faker.Airports.icao() - "SNOS" + "YGIA" iex> Faker.Airports.icao() - "UNBG" - iex> Faker.Airports.icao() - "KLOM" - iex> Faker.Airports.icao() - "HCME" + "YSNB" """ @spec icao() :: String.t() sampler(:icao, [ @@ -1029,13 +1025,9 @@ defmodule Faker.Airports do ## Examples iex> Faker.Airports.iata() - "BFU" - iex> Faker.Airports.iata() - "FMM" - iex> Faker.Airports.iata() - "YUS" + "HVD" iex> Faker.Airports.iata() - "YPH" + "RIM" """ @spec iata() :: String.t() sampler(:iata, [ diff --git a/lib/faker/airports/en.ex b/lib/faker/airports/en.ex index f503f4027..e3c4ca520 100644 --- a/lib/faker/airports/en.ex +++ b/lib/faker/airports/en.ex @@ -11,13 +11,9 @@ defmodule Faker.Airports.En do ## Examples iex> Faker.Airports.En.name() - "Union Island International Airport" + "Rabat-Sale Airport" iex> Faker.Airports.En.name() - "St. John's International Airport" - iex> Faker.Airports.En.name() - "Jizan Regional Airport" - iex> Faker.Airports.En.name() - "Bisho Airport" + "Arrachart Airport" """ @spec name() :: String.t() diff --git a/lib/faker/airports/pt_br.ex b/lib/faker/airports/pt_br.ex index 9f0a64c90..563df8719 100644 --- a/lib/faker/airports/pt_br.ex +++ b/lib/faker/airports/pt_br.ex @@ -11,13 +11,9 @@ defmodule Faker.Airports.PtBr do ## Examples iex> Faker.Airports.PtBr.name() - "Aeroporto de Alcântara (QAH/SNCW)" + "Aeroporto Internacional Marechal Cunha Machado (SLZ/SBSL)" iex> Faker.Airports.PtBr.name() - "Aeroporto Internacional Presidente Castro Pinto (JPA/SBJP)" - iex> Faker.Airports.PtBr.name() - "Aeroporto Internacional Pinto Martins (FOR/SBFZ)" - iex> Faker.Airports.PtBr.name() - "Aeroporto Internacional Salgado Filho (POA/SBPA)" + "Aeroporto Internacional Marechal Cunha Machado (SLZ/SBSL)" """ @spec name() :: String.t() diff --git a/lib/faker/app.ex b/lib/faker/app.ex index cf5b56621..1cd7072e2 100644 --- a/lib/faker/app.ex +++ b/lib/faker/app.ex @@ -14,13 +14,9 @@ defmodule Faker.App do ## Examples iex> Faker.App.version() - "0.1.5" + "2.4" iex> Faker.App.version() - "2.6.4" - iex> Faker.App.version() - "0.10" - iex> Faker.App.version() - "3.2" + "7.9" """ @spec version() :: String.t() def version do @@ -42,13 +38,9 @@ defmodule Faker.App do ## Examples iex> Faker.App.semver() - "5.42.64" - iex> Faker.App.semver() - "0.2.8" - iex> Faker.App.semver() - "7.0.5" + "2.10.14" iex> Faker.App.semver() - "5.7.0" + "4.37.24" """ @spec semver(Keyword.t()) :: String.t() def semver(opts \\ []) do @@ -105,13 +97,9 @@ defmodule Faker.App do ## Examples iex> Faker.App.name() - "Redhold" + "Duobam" iex> Faker.App.name() - "Tempsoft" - iex> Faker.App.name() - "Tempsoft" - iex> Faker.App.name() - "Quo Lux" + "Greenlam" """ @spec name() :: String.t() sampler(:name, [ @@ -185,13 +173,9 @@ defmodule Faker.App do ## Examples iex> Faker.App.author() - "Mr. Ozella Sipes" - iex> Faker.App.author() - "Aniya Schiller" - iex> Faker.App.author() - "Frederique Murphy" + "Aglae Rempel" iex> Faker.App.author() - "Rutherford Inc" + "Therese Predovic" """ @spec author() :: String.t() def author, do: author(Faker.random_between(0, 1)) diff --git a/lib/faker/avatar.ex b/lib/faker/avatar.ex index 80684b806..8c368db3e 100644 --- a/lib/faker/avatar.ex +++ b/lib/faker/avatar.ex @@ -11,13 +11,9 @@ defmodule Faker.Avatar do ## Examples iex> Faker.Avatar.image_url() - "https://robohash.org/set_set1/bgset_bg2/kQqaIfGqxsjFoNIT" + "https://robohash.org/set_set1/bgset_bg1/j5m" iex> Faker.Avatar.image_url() - "https://robohash.org/set_set2/bgset_bg2/6" - iex> Faker.Avatar.image_url() - "https://robohash.org/set_set2/bgset_bg2/J" - iex> Faker.Avatar.image_url() - "https://robohash.org/set_set3/bgset_bg1/JNth88PrhGDhwp4LNQMt" + "https://robohash.org/set_set2/bgset_bg2/jfBR3" """ @spec image_url() :: String.t() def image_url do @@ -33,10 +29,6 @@ defmodule Faker.Avatar do "https://robohash.org/faker" iex> Faker.Avatar.image_url("elixir") "https://robohash.org/elixir" - iex> Faker.Avatar.image_url("plug") - "https://robohash.org/plug" - iex> Faker.Avatar.image_url("ecto") - "https://robohash.org/ecto" """ @spec image_url(binary) :: String.t() def image_url(slug) do @@ -50,13 +42,9 @@ defmodule Faker.Avatar do ## Examples iex> Faker.Avatar.image_url(200, 200) - "https://robohash.org/set_set2/bgset_bg2/ppkQqaIfGqx?size=200x200" + "https://robohash.org/set_set3/bgset_bg2/oQAJDfv8?size=200x200" iex> Faker.Avatar.image_url(800, 600) - "https://robohash.org/set_set2/bgset_bg2/oNITNnu6?size=800x600" - iex> Faker.Avatar.image_url(32, 32) - "https://robohash.org/set_set3/bgset_bg1/J?size=32x32" - iex> Faker.Avatar.image_url(128, 128) - "https://robohash.org/set_set1/bgset_bg2/JNth88PrhGDhwp4LNQMt?size=128x128" + "https://robohash.org/set_set2/bgset_bg2/zi6hv78yuUKwc1jeSsL?size=800x600" """ @spec image_url(integer, integer) :: String.t() def image_url(width, height) @@ -74,10 +62,6 @@ defmodule Faker.Avatar do "https://robohash.org/phoenix?size=100x100" iex> Faker.Avatar.image_url("haskell", 200, 200) "https://robohash.org/haskell?size=200x200" - iex> Faker.Avatar.image_url("ocaml", 300, 300) - "https://robohash.org/ocaml?size=300x300" - iex> Faker.Avatar.image_url("idris", 400, 400) - "https://robohash.org/idris?size=400x400" """ @spec image_url(binary, integer, integer) :: String.t() def image_url(slug, width, height) diff --git a/lib/faker/aws/en.ex b/lib/faker/aws/en.ex index 96f030df3..4997c55e2 100644 --- a/lib/faker/aws/en.ex +++ b/lib/faker/aws/en.ex @@ -11,13 +11,9 @@ defmodule Faker.Aws.En do ## Examples iex> Faker.Aws.En.region_name() - "Asia Pacific (Tokyo)" + "Asia Pacific (Seoul)" iex> Faker.Aws.En.region_name() - "US East (Ohio)" - iex> Faker.Aws.En.region_name() - "Europe (Milan)" - iex> Faker.Aws.En.region_name() - "Africa (Cape Town)" + "Asia Pacific (Singapore)" """ @spec region_name() :: String.t() sampler(:region_name, [ @@ -49,13 +45,9 @@ defmodule Faker.Aws.En do ## Examples iex> Faker.Aws.En.region_code() - "ap-northeast-1" - iex> Faker.Aws.En.region_code() - "us-east-2" + "ap-northeast-2" iex> Faker.Aws.En.region_code() - "eu-south-1" - iex> Faker.Aws.En.region_code() - "af-south-1" + "ap-southeast-1" """ @spec region_code() :: String.t() sampler(:region_code, [ @@ -87,13 +79,9 @@ defmodule Faker.Aws.En do ## Examples iex> Faker.Aws.En.service() - "AWS Compute Optimizer" - iex> Faker.Aws.En.service() - "Ground Station" - iex> Faker.Aws.En.service() - "Neptune" + "Systems Manager" iex> Faker.Aws.En.service() - "DataSync" + "Device Farm" """ @spec service() :: String.t() sampler(:service, [ @@ -248,13 +236,9 @@ defmodule Faker.Aws.En do ## Example iex> Faker.Aws.En.s3_action() - "DeleteBucketTagging" + "PutBucketAcl" iex> Faker.Aws.En.s3_action() - "DeleteObjects" - iex> Faker.Aws.En.s3_action() - "PutPublicAccessBlock" - iex> Faker.Aws.En.s3_action() - "PutBucketReplication" + "ListObjectsV2" """ @spec s3_action() :: String.t() sampler(:s3_action, [ @@ -354,13 +338,9 @@ defmodule Faker.Aws.En do ## Example iex> Faker.Aws.En.rds_action() - "DeleteDBClusterEndpoint" - iex> Faker.Aws.En.rds_action() - "CopyDBSnapshot" + "DescribeDBParameters" iex> Faker.Aws.En.rds_action() - "ModifyDBParameterGroup" - iex> Faker.Aws.En.rds_action() - "DescribeDBClusterSnapshots" + "FailoverDBCluster" """ @spec rds_action() :: String.t() sampler(:rds_action, [ @@ -502,13 +482,9 @@ defmodule Faker.Aws.En do ## Example iex> Faker.Aws.En.ec2_action() - "CreateVpcEndpoint" - iex> Faker.Aws.En.ec2_action() - "RevokeSecurityGroupEgress" - iex> Faker.Aws.En.ec2_action() - "GetTransitGatewayRouteTableAssociations" + "CreateLocalGatewayRouteTableVpcAssociation" iex> Faker.Aws.En.ec2_action() - "RunScheduledInstances" + "DescribeExportImageTasks" """ @spec ec2_action() :: String.t() sampler(:ec2_action, [ diff --git a/lib/faker/aws/fr.ex b/lib/faker/aws/fr.ex index 90b4c7f37..25a66ccae 100644 --- a/lib/faker/aws/fr.ex +++ b/lib/faker/aws/fr.ex @@ -10,13 +10,9 @@ defmodule Faker.Aws.Fr do ## Examples iex> Faker.Aws.Fr.region_name() - "Asie Pacifique (Tokyo)" + "Asie Pacifique (Seoul)" iex> Faker.Aws.Fr.region_name() - "USA Est (Ohio)" - iex> Faker.Aws.Fr.region_name() - "Europe (Milan)" - iex> Faker.Aws.Fr.region_name() - "Afrique (Le Cap)" + "Asie Pacifique (Singapore)" """ @spec region_name() :: String.t() sampler(:region_name, [ diff --git a/lib/faker/aws/pt_br.ex b/lib/faker/aws/pt_br.ex index 75fa53be1..a5b9f7ee9 100644 --- a/lib/faker/aws/pt_br.ex +++ b/lib/faker/aws/pt_br.ex @@ -11,13 +11,9 @@ defmodule Faker.Aws.PtBr do ## Examples iex> Faker.Aws.PtBr.region_name() - "Ásia-Pacífico (Mumbai)" + "Ásia-Pacífico (Osaka)" iex> Faker.Aws.PtBr.region_name() - "Oeste dos EUA (Califórnia do Norte)" - iex> Faker.Aws.PtBr.region_name() - "Leste dos EUA (Virgínia do Norte)" - iex> Faker.Aws.PtBr.region_name() - "Ásia-Pacífico (Hong Kong)" + "Ásia-Pacífico (Osaka)" """ @spec region_name() :: String.t() sampler(:region_name, [ diff --git a/lib/faker/aws/pt_pt.ex b/lib/faker/aws/pt_pt.ex index 41f1bb999..52469999e 100644 --- a/lib/faker/aws/pt_pt.ex +++ b/lib/faker/aws/pt_pt.ex @@ -11,13 +11,9 @@ defmodule Faker.Aws.PtPt do ## Examples iex> Faker.Aws.PtPt.region_name() - "Asia Pacifico (Tóquio)" + "Asia Pacifico (Seoul)" iex> Faker.Aws.PtPt.region_name() - "EUA Este (Ohio)" - iex> Faker.Aws.PtPt.region_name() - "Europa (Milão)" - iex> Faker.Aws.PtPt.region_name() - "Africa (Cape Town)" + "Asia Pacifico (Singapura)" """ @spec region_name() :: String.t() sampler(:region_name, [ diff --git a/lib/faker/beer.ex b/lib/faker/beer.ex index be9921e48..41196db88 100644 --- a/lib/faker/beer.ex +++ b/lib/faker/beer.ex @@ -10,14 +10,10 @@ defmodule Faker.Beer do ## Examples - iex> Faker.Beer.brand() - "Paulaner" - iex> Faker.Beer.brand() - "Pabst Blue Ribbon" - iex> Faker.Beer.brand() - "Kirin Inchiban" iex> Faker.Beer.brand() "Birra Moretti" + iex> Faker.Beer.brand() + "Quimes" """ @spec brand() :: String.t() localize(:brand) @@ -28,13 +24,9 @@ defmodule Faker.Beer do ## Examples iex> Faker.Beer.name() - "Duvel" - iex> Faker.Beer.name() - "Founders Kentucky Breakfast" + "Oak Aged Yeti Imperial Stout" iex> Faker.Beer.name() - "Yeti Imperial Stout" - iex> Faker.Beer.name() - "Stone Imperial Russian Stout" + "Duvel" """ @spec name() :: String.t() localize(:name) @@ -45,13 +37,9 @@ defmodule Faker.Beer do ## Examples iex> Faker.Beer.hop() - "Eroica" - iex> Faker.Beer.hop() - "Bullion" + "Mosaic" iex> Faker.Beer.hop() - "Mt. Rainier" - iex> Faker.Beer.hop() - "Citra" + "Chelan" """ @spec hop() :: String.t() localize(:hop) @@ -61,14 +49,10 @@ defmodule Faker.Beer do ## Examples - iex> Faker.Beer.yeast() - "2206 - Bavarian Lager" - iex> Faker.Beer.yeast() - "3763 - Roeselare Ale Blend" iex> Faker.Beer.yeast() "3711 - French Saison" iex> Faker.Beer.yeast() - "3944 - Belgian Witbier" + "1332 - Northwest Ale" """ @spec yeast() :: String.t() localize(:yeast) @@ -79,13 +63,9 @@ defmodule Faker.Beer do ## Examples iex> Faker.Beer.malt() - "Carapils" - iex> Faker.Beer.malt() - "Pale" - iex> Faker.Beer.malt() - "Rye malt" + "Chocolate malt" iex> Faker.Beer.malt() - "Munich" + "Special roast" """ @spec malt() :: String.t() localize(:malt) @@ -96,13 +76,9 @@ defmodule Faker.Beer do ## Examples iex> Faker.Beer.style() - "Stout" + "English Pale Ale" iex> Faker.Beer.style() - "European Amber Lager" - iex> Faker.Beer.style() - "Strong Ale" - iex> Faker.Beer.style() - "German Wheat And Rye Beer" + "Light Hybrid Beer" """ @spec style() :: String.t() localize(:style) @@ -113,13 +89,9 @@ defmodule Faker.Beer do ## Examples iex> Faker.Beer.ibu() - "59 IBU" - iex> Faker.Beer.ibu() - "10 IBU" + "65 IBU" iex> Faker.Beer.ibu() - "56 IBU" - iex> Faker.Beer.ibu() - "85 IBU" + "104 IBU" """ @spec ibu :: String.t() def ibu do @@ -132,13 +104,9 @@ defmodule Faker.Beer do ## Examples iex> Faker.Beer.alcohol() - "10.1%" - iex> Faker.Beer.alcohol() - "35.4%" - iex> Faker.Beer.alcohol() - "92.6%" + "60.3%" iex> Faker.Beer.alcohol() - "64.6%" + "34.5%" """ @spec alcohol :: String.t() def alcohol do @@ -151,13 +119,9 @@ defmodule Faker.Beer do ## Examples iex> Faker.Beer.blg() - "10.1°Blg" - iex> Faker.Beer.blg() - "35.4°Blg" - iex> Faker.Beer.blg() - "92.6°Blg" + "60.3°Blg" iex> Faker.Beer.blg() - "64.6°Blg" + "34.5°Blg" """ @spec blg :: String.t() def blg do diff --git a/lib/faker/beer/en.ex b/lib/faker/beer/en.ex index e05100b6b..95d6db073 100644 --- a/lib/faker/beer/en.ex +++ b/lib/faker/beer/en.ex @@ -10,14 +10,10 @@ defmodule Faker.Beer.En do ## Examples - iex> Faker.Beer.En.brand() - "Paulaner" - iex> Faker.Beer.En.brand() - "Pabst Blue Ribbon" - iex> Faker.Beer.En.brand() - "Kirin Inchiban" iex> Faker.Beer.En.brand() "Birra Moretti" + iex> Faker.Beer.En.brand() + "Quimes" """ @spec brand() :: String.t() sampler(:brand, [ @@ -63,13 +59,9 @@ defmodule Faker.Beer.En do ## Examples iex> Faker.Beer.En.name() - "Duvel" - iex> Faker.Beer.En.name() - "Founders Kentucky Breakfast" + "Oak Aged Yeti Imperial Stout" iex> Faker.Beer.En.name() - "Yeti Imperial Stout" - iex> Faker.Beer.En.name() - "Stone Imperial Russian Stout" + "Duvel" """ @spec name() :: String.t() sampler(:name, [ @@ -131,13 +123,9 @@ defmodule Faker.Beer.En do ## Examples iex> Faker.Beer.En.hop() - "Eroica" + "Mosaic" iex> Faker.Beer.En.hop() - "Bullion" - iex> Faker.Beer.En.hop() - "Mt. Rainier" - iex> Faker.Beer.En.hop() - "Citra" + "Chelan" """ @spec hop() :: String.t() sampler(:hop, [ @@ -199,14 +187,10 @@ defmodule Faker.Beer.En do ## Examples - iex> Faker.Beer.En.yeast() - "2206 - Bavarian Lager" - iex> Faker.Beer.En.yeast() - "3763 - Roeselare Ale Blend" iex> Faker.Beer.En.yeast() "3711 - French Saison" iex> Faker.Beer.En.yeast() - "3944 - Belgian Witbier" + "1332 - Northwest Ale" """ @spec yeast() :: String.t() sampler(:yeast, [ @@ -267,13 +251,9 @@ defmodule Faker.Beer.En do ## Examples iex> Faker.Beer.En.malt() - "Carapils" + "Chocolate malt" iex> Faker.Beer.En.malt() - "Pale" - iex> Faker.Beer.En.malt() - "Rye malt" - iex> Faker.Beer.En.malt() - "Munich" + "Special roast" """ @spec malt() :: String.t() sampler(:malt, [ @@ -301,13 +281,9 @@ defmodule Faker.Beer.En do ## Examples iex> Faker.Beer.En.style() - "Stout" - iex> Faker.Beer.En.style() - "European Amber Lager" - iex> Faker.Beer.En.style() - "Strong Ale" + "English Pale Ale" iex> Faker.Beer.En.style() - "German Wheat And Rye Beer" + "Light Hybrid Beer" """ @spec style() :: String.t() sampler(:style, [ diff --git a/lib/faker/blockchain/bitcoin.ex b/lib/faker/blockchain/bitcoin.ex index 98c3473f4..2073eb2ba 100644 --- a/lib/faker/blockchain/bitcoin.ex +++ b/lib/faker/blockchain/bitcoin.ex @@ -11,13 +11,13 @@ defmodule Faker.Blockchain.Bitcoin do ## Examples iex> Faker.Blockchain.Bitcoin.address() - "1Lb2DM8vNXubePBWV7xmRnqJp5YT3BatcQ" + "16UZtfPcBYxawLfL2PBG1CnGPWKBZSExTr" iex> Faker.Blockchain.Bitcoin.address() - "1erV2PhPaR4ndbEvLWDD9KX8btdNJZXt5" + "1Q8X4neAgccJKPhBheQDoDsT1QYPeamr4B" iex> Faker.Blockchain.Bitcoin.address(:main) - "1Pn5NbAbT5hZocVWKSBtmqygdVbeVoheWk" + "1F84ppNY7ggA9uNr3SwkeRsqRjjN7mQ5eG" iex> Faker.Blockchain.Bitcoin.address(:testnet) - "mj1Vh7G8JZxg8gBtcQic2opTxtKUCQBBc5" + "muhc9kTak4P9KdThQyb7VPG4dYhP4v6bVj" """ @spec address(atom) :: binary def address(:testnet) do diff --git a/lib/faker/blockchain/ethereum.ex b/lib/faker/blockchain/ethereum.ex index 530e39ef6..a619fd9d0 100644 --- a/lib/faker/blockchain/ethereum.ex +++ b/lib/faker/blockchain/ethereum.ex @@ -12,13 +12,9 @@ defmodule Faker.Blockchain.Ethereum do ## Examples iex> Faker.Blockchain.Ethereum.address() - "0xd6d98b88c866f496dbd4de7ba48d0f5229fa7bf9" + "0x3c0f50d05f218483dc1c6bb76224822be07dd502" iex> Faker.Blockchain.Ethereum.address() - "0x0728b27267bc5b7c964f332dc9edd02cc9f381de" - iex> Faker.Blockchain.Ethereum.address() - "0xf9d922a146bf85508a5f03ff18750bf363f4aef1" - iex> Faker.Blockchain.Ethereum.address() - "0x264e3bcc9b5c2accb99a3a4993ad56b778dc26ed" + "0xfdb6e6e98835badf7b5bfc3b96b2fd9c2117e85e" """ @spec address() :: address def address do @@ -33,14 +29,10 @@ defmodule Faker.Blockchain.Ethereum do ## Examples - iex> Faker.Blockchain.Ethereum.signature() - "0xd6d98b88c866f496dbd4de7ba48d0f5229fa7bf90728b27267bc5b7c964f332dc9edd02cc9f381def9d922a146bf85508a5f03ff18750bf363f4aef1264e3bcc9b" - iex> Faker.Blockchain.Ethereum.signature() - "0x5c2accb99a3a4993ad56b778dc26eddb7e0c2e49c4e638e62de32933bc3525bb4594a1a378dc29f741dd703efd94dd3b6d08feaa53a9a6fb9eea6655545932347c" - iex> Faker.Blockchain.Ethereum.signature() - "0x7457f665824d0e4c8465665584b69644419b5dddff8974b228ed08a17a077d116aea7f26a4bf4aa5fc4841e85670392a32a0980264dc44f82f311ea7289f6b38fd" - iex> Faker.Blockchain.Ethereum.signature() - "0x0bce6fe7988f0f95a5e752150f018979129ef5d015ecf11dab74c42d0a51b8f7beb51374870811d45ca30920d02a913832764bac562323b4aafae9943a12de8d42" + iex> Faker.Blockchain.Ethereum.signature() + "0x3c0f50d05f218483dc1c6bb76224822be07dd502fdb6e6e98835badf7b5bfc3b96b2fd9c2117e85e9ae7dd7c2d08da0c25c868fc64fc1145278fd7f99b958599ef" + iex> Faker.Blockchain.Ethereum.signature() + "0x8f34566dd6e03eef416dba994e4d581b1986a56d8e9a97c45d3b325baec0ed967a43173e2f43009d75d607f261cefc4a888a3c284a3ae553a46a4f7b8f9e8b491a" """ @spec signature() :: signature def signature do diff --git a/lib/faker/cannabis.ex b/lib/faker/cannabis.ex index 17de60506..9a55d4d07 100644 --- a/lib/faker/cannabis.ex +++ b/lib/faker/cannabis.ex @@ -11,13 +11,9 @@ defmodule Faker.Cannabis do ## Examples iex> Faker.Cannabis.strain() - "Critical Kush" + "Lemon Skunk" iex> Faker.Cannabis.strain() - "Blue Dream" - iex> Faker.Cannabis.strain() - "Mr. Nice Guy" - iex> Faker.Cannabis.strain() - "Gorilla Glue" + "Sonoma Glue" """ @spec strain() :: String.t() localize(:strain) @@ -27,14 +23,10 @@ defmodule Faker.Cannabis do ## Examples - iex> Faker.Cannabis.cannabinoid() - "Cannabinol" - iex> Faker.Cannabis.cannabinoid() - "Cannabigerolic Acid" iex> Faker.Cannabis.cannabinoid() "Cannabinolic Acid" iex> Faker.Cannabis.cannabinoid() - "Cannabicyclol" + "Cannabidivarin" """ @spec cannabinoid() :: String.t() localize(:cannabinoid) @@ -45,11 +37,7 @@ defmodule Faker.Cannabis do ## Examples iex> Faker.Cannabis.cannabinoid_abbreviation() - "THCa" - iex> Faker.Cannabis.cannabinoid_abbreviation() - "THCv" - iex> Faker.Cannabis.cannabinoid_abbreviation() - "CBC" + "CBDa" iex> Faker.Cannabis.cannabinoid_abbreviation() "CBG" """ @@ -62,13 +50,9 @@ defmodule Faker.Cannabis do ## Examples iex> Faker.Cannabis.terpene() - "Camphor" + "(-)-Isopulegol" iex> Faker.Cannabis.terpene() - "Camphene" - iex> Faker.Cannabis.terpene() - "α Pinene" - iex> Faker.Cannabis.terpene() - "Sabinene" + "R-(+)-Pulegone" """ @spec terpene() :: String.t() localize(:terpene) @@ -79,13 +63,9 @@ defmodule Faker.Cannabis do ## Examples iex> Faker.Cannabis.medical_use() - "analgesic" - iex> Faker.Cannabis.medical_use() - "anti-cancer" + "anti-histamine" iex> Faker.Cannabis.medical_use() - "anti-cancer" - iex> Faker.Cannabis.medical_use() - "anti-fungal" + "anti-oxidant" """ @spec medical_use() :: String.t() localize(:medical_use) @@ -96,13 +76,9 @@ defmodule Faker.Cannabis do ## Examples iex> Faker.Cannabis.health_benefit() - "relieves pain" - iex> Faker.Cannabis.health_benefit() - "inhibits cell growth in tumors/cancer cells" + "treats allergy symptoms" iex> Faker.Cannabis.health_benefit() - "inhibits cell growth in tumors/cancer cells" - iex> Faker.Cannabis.health_benefit() - "treats fungal infection" + "cell protectant" """ @spec health_benefit() :: String.t() localize(:health_benefit) @@ -113,13 +89,9 @@ defmodule Faker.Cannabis do ## Examples iex> Faker.Cannabis.category() - "flower" - iex> Faker.Cannabis.category() - "medical" - iex> Faker.Cannabis.category() - "seeds & clones" + "ice hash" iex> Faker.Cannabis.category() - "live resin" + "shatter" """ @spec category() :: String.t() localize(:category) @@ -132,11 +104,7 @@ defmodule Faker.Cannabis do iex> Faker.Cannabis.type() "hybrid" iex> Faker.Cannabis.type() - "sativa" - iex> Faker.Cannabis.type() "hybrid" - iex> Faker.Cannabis.type() - "sativa" """ @spec type() :: String.t() localize(:type) @@ -147,13 +115,9 @@ defmodule Faker.Cannabis do ## Examples iex> Faker.Cannabis.buzzword() - "toke" - iex> Faker.Cannabis.buzzword() - "cbd" + "weed" iex> Faker.Cannabis.buzzword() - "stoned" - iex> Faker.Cannabis.buzzword() - "stoned" + "gram" """ @spec buzzword() :: String.t() localize(:buzzword) @@ -164,13 +128,9 @@ defmodule Faker.Cannabis do ## Examples iex> Faker.Cannabis.En.brand() - "Evolab" - iex> Faker.Cannabis.En.brand() - "CI Wholesale" - iex> Faker.Cannabis.En.brand() - "Muy" + "Lord Jones" iex> Faker.Cannabis.En.brand() - "Chong's Choice" + "Caviar Gold" """ @spec brand() :: String.t() localize(:brand) @@ -181,13 +141,9 @@ defmodule Faker.Cannabis do ## Examples iex> Faker.Cannabis.thc() - "18.1%" - iex> Faker.Cannabis.thc() - "30.4%" - iex> Faker.Cannabis.thc() - "28.6%" + "28.9%" iex> Faker.Cannabis.thc() - "40.6%" + "15.6%" """ @spec thc :: String.t() def thc do diff --git a/lib/faker/cannabis/en.ex b/lib/faker/cannabis/en.ex index 6adeddd8c..bb7c551ba 100644 --- a/lib/faker/cannabis/en.ex +++ b/lib/faker/cannabis/en.ex @@ -11,13 +11,9 @@ defmodule Faker.Cannabis.En do ## Examples iex> Faker.Cannabis.En.strain() - "Critical Kush" + "Lemon Skunk" iex> Faker.Cannabis.En.strain() - "Blue Dream" - iex> Faker.Cannabis.En.strain() - "Mr. Nice Guy" - iex> Faker.Cannabis.En.strain() - "Gorilla Glue" + "Sonoma Glue" """ @spec strain() :: String.t() sampler(:strain, [ @@ -145,14 +141,10 @@ defmodule Faker.Cannabis.En do ## Examples - iex> Faker.Cannabis.En.cannabinoid() - "Cannabinol" - iex> Faker.Cannabis.En.cannabinoid() - "Cannabigerolic Acid" iex> Faker.Cannabis.En.cannabinoid() "Cannabinolic Acid" iex> Faker.Cannabis.En.cannabinoid() - "Cannabicyclol" + "Cannabidivarin" """ @spec cannabinoid() :: String.t() sampler(:cannabinoid, [ @@ -178,11 +170,7 @@ defmodule Faker.Cannabis.En do ## Examples iex> Faker.Cannabis.En.cannabinoid_abbreviation() - "THCa" - iex> Faker.Cannabis.En.cannabinoid_abbreviation() - "THCv" - iex> Faker.Cannabis.En.cannabinoid_abbreviation() - "CBC" + "CBDa" iex> Faker.Cannabis.En.cannabinoid_abbreviation() "CBG" """ @@ -213,13 +201,9 @@ defmodule Faker.Cannabis.En do ## Examples iex> Faker.Cannabis.En.terpene() - "Camphor" - iex> Faker.Cannabis.En.terpene() - "Camphene" - iex> Faker.Cannabis.En.terpene() - "α Pinene" + "(-)-Isopulegol" iex> Faker.Cannabis.En.terpene() - "Sabinene" + "R-(+)-Pulegone" """ @spec terpene() :: String.t() sampler(:terpene, [ @@ -266,13 +250,9 @@ defmodule Faker.Cannabis.En do ## Examples iex> Faker.Cannabis.En.medical_use() - "analgesic" - iex> Faker.Cannabis.En.medical_use() - "anti-cancer" - iex> Faker.Cannabis.En.medical_use() - "anti-cancer" + "anti-histamine" iex> Faker.Cannabis.En.medical_use() - "anti-fungal" + "anti-oxidant" """ @spec medical_use() :: String.t() sampler(:medical_use, [ @@ -315,13 +295,9 @@ defmodule Faker.Cannabis.En do ## Examples iex> Faker.Cannabis.En.health_benefit() - "relieves pain" + "treats allergy symptoms" iex> Faker.Cannabis.En.health_benefit() - "inhibits cell growth in tumors/cancer cells" - iex> Faker.Cannabis.En.health_benefit() - "inhibits cell growth in tumors/cancer cells" - iex> Faker.Cannabis.En.health_benefit() - "treats fungal infection" + "cell protectant" """ @spec health_benefit() :: String.t() sampler(:health_benefit, [ @@ -364,13 +340,9 @@ defmodule Faker.Cannabis.En do ## Examples iex> Faker.Cannabis.En.category() - "flower" - iex> Faker.Cannabis.En.category() - "medical" + "ice hash" iex> Faker.Cannabis.En.category() - "seeds & clones" - iex> Faker.Cannabis.En.category() - "live resin" + "shatter" """ @spec category() :: String.t() sampler(:category, [ @@ -400,11 +372,7 @@ defmodule Faker.Cannabis.En do iex> Faker.Cannabis.En.type() "hybrid" iex> Faker.Cannabis.En.type() - "sativa" - iex> Faker.Cannabis.En.type() "hybrid" - iex> Faker.Cannabis.En.type() - "sativa" """ @spec type() :: String.t() sampler(:type, ["hybrid", "indica", "sativa"]) @@ -415,13 +383,9 @@ defmodule Faker.Cannabis.En do ## Examples iex> Faker.Cannabis.En.buzzword() - "toke" - iex> Faker.Cannabis.En.buzzword() - "cbd" - iex> Faker.Cannabis.En.buzzword() - "stoned" + "weed" iex> Faker.Cannabis.En.buzzword() - "stoned" + "gram" """ @spec buzzword() :: String.t() sampler(:buzzword, [ @@ -462,13 +426,9 @@ defmodule Faker.Cannabis.En do ## Examples iex> Faker.Cannabis.En.brand() - "Evolab" - iex> Faker.Cannabis.En.brand() - "CI Wholesale" - iex> Faker.Cannabis.En.brand() - "Muy" + "Lord Jones" iex> Faker.Cannabis.En.brand() - "Chong's Choice" + "Caviar Gold" """ @spec brand() :: String.t() sampler(:brand, [ From 69c313e6af34ba22f49f7fb4fb5f5524e9940be5 Mon Sep 17 00:00:00 2001 From: Igor Kapkov Date: Tue, 10 Sep 2024 13:24:35 +1000 Subject: [PATCH 21/92] fix(ci): check --- lib/faker/address/en.ex | 38 ++------------- lib/faker/address/es.ex | 40 +++------------- lib/faker/address/hy.ex | 26 ++-------- lib/faker/address/it.ex | 54 +++++---------------- lib/faker/address/pt_br.ex | 50 +++++-------------- lib/faker/address/ru.ex | 6 +-- lib/faker/airports.ex | 4 -- lib/faker/airports/en.ex | 2 - lib/faker/airports/pt_br.ex | 2 - lib/faker/app.ex | 10 +--- lib/faker/avatar.ex | 4 +- lib/faker/aws/en.ex | 24 +++------- lib/faker/aws/fr.ex | 4 +- lib/faker/aws/pt_br.ex | 4 +- lib/faker/aws/pt_pt.ex | 4 +- lib/faker/beer.ex | 22 +-------- lib/faker/beer/en.ex | 12 ----- lib/faker/blockchain/bitcoin.ex | 2 - lib/faker/blockchain/ethereum.ex | 4 -- lib/faker/cannabis.ex | 22 --------- lib/faker/cannabis/en.ex | 20 -------- lib/faker/cat.ex | 20 +------- lib/faker/cat/en.ex | 18 ------- lib/faker/cat/pt_br.ex | 24 ++-------- lib/faker/code.ex | 26 ---------- lib/faker/code/iban.ex | 14 ------ lib/faker/color.ex | 24 ---------- lib/faker/color/de.ex | 12 ----- lib/faker/color/en.ex | 12 ----- lib/faker/color/es.ex | 6 --- lib/faker/color/fr.ex | 6 --- lib/faker/color/hy.ex | 6 --- lib/faker/color/it.ex | 6 --- lib/faker/color/pt_br.ex | 6 --- lib/faker/commerce.ex | 48 ++----------------- lib/faker/commerce/en.ex | 40 +--------------- lib/faker/commerce/hy.ex | 42 ++-------------- lib/faker/commerce/pt_br.ex | 42 ++-------------- lib/faker/company.ex | 66 ++----------------------- lib/faker/company/en.ex | 68 ++------------------------ lib/faker/company/hy.ex | 64 +------------------------ lib/faker/currency.ex | 16 +------ lib/faker/dog/pt_br.ex | 22 +-------- lib/faker/file.ex | 45 +++++------------ lib/faker/finance/stock.ex | 25 ++-------- lib/faker/food.ex | 56 ++-------------------- lib/faker/food/en.ex | 54 ++------------------- lib/faker/food/hy.ex | 48 ++----------------- lib/faker/food/pt_br.ex | 46 +----------------- lib/faker/gov/us.ex | 6 --- lib/faker/industry.ex | 18 ------- lib/faker/industry/en.ex | 6 --- lib/faker/internet.ex | 80 +------------------------------ lib/faker/internet/en.ex | 12 ----- lib/faker/internet/es.ex | 12 ----- lib/faker/internet/hy.ex | 12 ----- lib/faker/internet/it.ex | 12 ----- lib/faker/internet/pt_br.ex | 12 ----- lib/faker/internet/status_code.ex | 6 --- lib/faker/internet/user_agent.ex | 32 +------------ lib/faker/lorem.ex | 68 +++++++++++++++----------- lib/faker/lorem/shakespeare/en.ex | 12 ----- lib/faker/lorem/shakespeare/ru.ex | 24 ---------- lib/faker/name.ex | 36 -------------- lib/faker/person/fr.ex | 6 +-- lib/faker/phone/pt_br.ex | 2 + lib/faker/pizza.ex | 7 ++- lib/faker/random.ex | 13 +++-- lib/faker/random/test.ex | 8 ++-- lib/faker/util.ex | 50 +++++++------------ lib/faker/vehicle.ex | 16 ++++--- lib/faker/vehicle/en.ex | 10 ++++ mix.exs | 6 ++- mix.lock | 1 + 74 files changed, 209 insertions(+), 1474 deletions(-) diff --git a/lib/faker/address/en.ex b/lib/faker/address/en.ex index ab70622bd..db58dadc4 100644 --- a/lib/faker/address/en.ex +++ b/lib/faker/address/en.ex @@ -13,9 +13,7 @@ defmodule Faker.Address.En do ## Examples iex> Faker.Address.En.building_number() - "24" - iex> Faker.Address.En.building_number() - "79" + "15426" """ @spec building_number() :: String.t() def building_number do @@ -31,8 +29,6 @@ defmodule Faker.Address.En do iex> Faker.Address.En.city() "Carter" - iex> Faker.Address.En.city() - "South Lesley" """ @spec city() :: String.t() def city do @@ -51,8 +47,6 @@ defmodule Faker.Address.En do iex> Faker.Address.En.city_prefix() "South" - iex> Faker.Address.En.city_prefix() - "North" """ @spec city_prefix() :: String.t() sampler(:city_prefix, [ @@ -72,8 +66,6 @@ defmodule Faker.Address.En do iex> Faker.Address.En.city_suffix() "bury" - iex> Faker.Address.En.city_suffix() - "port" """ @spec city_suffix() :: String.t() sampler(:city_suffix, [ @@ -104,9 +96,7 @@ defmodule Faker.Address.En do ## Examples iex> Faker.Address.En.country() - "Dominican Republic" - iex> Faker.Address.En.country() - "Bosnia and Herzegovina" + "Guinea-Bissau" """ @spec country() :: String.t() sampler(:country, [ @@ -364,8 +354,6 @@ defmodule Faker.Address.En do iex> Faker.Address.En.country_code() "DM" - iex> Faker.Address.En.country_code() - "BG" """ @spec country_code() :: String.t() sampler(:country_code, [ @@ -628,8 +616,6 @@ defmodule Faker.Address.En do iex> Faker.Address.En.secondary_address() "Apt. 576" - iex> Faker.Address.En.secondary_address() - "Suite 386" """ @spec secondary_address() :: String.t() def secondary_address do @@ -643,8 +629,6 @@ defmodule Faker.Address.En do ## Examples - iex> Faker.Address.En.state() - "New Hampshire" iex> Faker.Address.En.state() "Hawaii" """ @@ -707,8 +691,6 @@ defmodule Faker.Address.En do ## Examples - iex> Faker.Address.En.state_abbr() - "NH" iex> Faker.Address.En.state_abbr() "HI" """ @@ -772,9 +754,7 @@ defmodule Faker.Address.En do ## Examples iex> Faker.Address.En.street_address() - "24 Adella Pines" - iex> Faker.Address.En.street_address() - "1 Waelchi Passage" + "15426 Padberg Mews" """ @spec street_address() :: String.t() def street_address do @@ -787,7 +767,7 @@ defmodule Faker.Address.En do ## Examples iex> Faker.Address.En.street_address(true) - "24 Adella Pines, Apt. 404" + "15426 Padberg Mews, Apt. 832" iex> Faker.Address.En.street_address(false) "25 Sipes Keys" """ @@ -802,8 +782,6 @@ defmodule Faker.Address.En do iex> Faker.Address.En.street_name() "Aileen Road" - iex> Faker.Address.En.street_name() - "Cristobal Dam" """ @spec street_name() :: String.t() def street_name do @@ -820,9 +798,7 @@ defmodule Faker.Address.En do ## Examples iex> Faker.Address.En.street_suffix() - "Freeway" - iex> Faker.Address.En.street_suffix() - "Falls" + "View" """ @spec street_suffix() :: String.t() sampler(:street_suffix, [ @@ -1060,8 +1036,6 @@ defmodule Faker.Address.En do iex> Faker.Address.En.time_zone() "Europe/Bucharest" - iex> Faker.Address.En.time_zone() - "Australia/Hobart" """ @spec time_zone() :: String.t() sampler(:time_zone, [ @@ -1217,8 +1191,6 @@ defmodule Faker.Address.En do iex> Faker.Address.En.zip_code() "70879" - iex> Faker.Address.En.zip_code() - "90648" """ @spec zip_code() :: String.t() def zip_code do diff --git a/lib/faker/address/es.ex b/lib/faker/address/es.ex index d2f7dc5e4..62b196492 100644 --- a/lib/faker/address/es.ex +++ b/lib/faker/address/es.ex @@ -14,8 +14,6 @@ defmodule Faker.Address.Es do iex> Faker.Address.Es.building_number() "2" - iex> Faker.Address.Es.building_number() - "87" """ @spec building_number() :: String.t() def building_number do @@ -30,9 +28,7 @@ defmodule Faker.Address.Es do ## Examples iex> Faker.Address.Es.city() - "Arreola" - iex> Faker.Address.Es.city() - "Razo" + "Guillermina" """ @spec city() :: String.t() def city do @@ -50,9 +46,7 @@ defmodule Faker.Address.Es do ## Examples iex> Faker.Address.Es.city_prefix() - "Mérida" - iex> Faker.Address.Es.city_prefix() - "Elche" + "Vitoria" """ @spec city_prefix() :: String.t() sampler(:city_prefix, [ @@ -193,8 +187,6 @@ defmodule Faker.Address.Es do iex> Faker.Address.Es.country() "Gambia" - iex> Faker.Address.Es.country() - "Kuwait" """ @spec country() :: String.t() sampler(:country, [ @@ -398,8 +390,6 @@ defmodule Faker.Address.Es do iex> Faker.Address.Es.secondary_address() "Esc. 576" - iex> Faker.Address.Es.secondary_address() - "Puerta 386" """ @spec secondary_address() :: String.t() def secondary_address do @@ -420,9 +410,7 @@ defmodule Faker.Address.Es do ## Examples iex> Faker.Address.Es.region() - "Castilla y León" - iex> Faker.Address.Es.region() - "Cataluña" + "Extremadura" """ @spec region() :: String.t() @@ -455,9 +443,7 @@ defmodule Faker.Address.Es do ## Examples iex> Faker.Address.Es.state_abbr() - "Leo" - iex> Faker.Address.Es.state_abbr() - "Gal" + "Ara" """ @spec state_abbr() :: String.t() sampler(:state_abbr, [ @@ -486,9 +472,7 @@ defmodule Faker.Address.Es do ## Examples iex> Faker.Address.Es.street_address() - "Rua Alfonso 75" - iex> Faker.Address.Es.street_address() - "Puerta Yolanda Sánchez 4" + "Arrabal Daniela 26" """ @spec street_address() :: String.t() def street_address do @@ -501,7 +485,7 @@ defmodule Faker.Address.Es do ## Examples iex> Faker.Address.Es.street_address(true) - "Rua Alfonso 75 Puerta 681" + "Arrabal Daniela 26 Esc. 610" iex> Faker.Address.Es.street_address(false) "Cuesta Dávila 0" """ @@ -516,8 +500,6 @@ defmodule Faker.Address.Es do iex> Faker.Address.Es.street_name() "Rua Alfonso" - iex> Faker.Address.Es.street_name() - "Calle Gaona" """ @spec street_name() :: String.t() def street_name do @@ -536,8 +518,6 @@ defmodule Faker.Address.Es do ## Examples iex> Faker.Address.Es.street_suffix() "de abajo" - iex> Faker.Address.Es.street_suffix() - "de abajo" """ @spec street_suffix() :: String.t() sampler(:street_suffix, [ @@ -553,9 +533,7 @@ defmodule Faker.Address.Es do ## Examples iex> Faker.Address.Es.street_prefix() - "Senda" - iex> Faker.Address.Es.street_prefix() - "Barrio" + "Carretera" """ @spec street_prefix() :: String.t() sampler(:street_prefix, [ @@ -637,8 +615,6 @@ defmodule Faker.Address.Es do iex> Faker.Address.Es.time_zone() "Europa/Riga" - iex> Faker.Address.Es.time_zone() - "Asia/Rangoon" """ @spec time_zone() :: String.t() sampler(:time_zone, [ @@ -776,8 +752,6 @@ defmodule Faker.Address.Es do iex> Faker.Address.Es.zip_code() "70879" - iex> Faker.Address.Es.zip_code() - "90648" """ @spec zip_code() :: String.t() def zip_code do diff --git a/lib/faker/address/hy.ex b/lib/faker/address/hy.ex index e9280644e..90034a6c0 100644 --- a/lib/faker/address/hy.ex +++ b/lib/faker/address/hy.ex @@ -12,8 +12,6 @@ defmodule Faker.Address.Hy do iex> Faker.Address.Hy.building_number() "4" - iex> Faker.Address.Hy.building_number() - "3" """ @spec building_number() :: String.t() def building_number do @@ -28,9 +26,7 @@ defmodule Faker.Address.Hy do ## Examples iex> Faker.Address.Hy.city() - "Ճամբարակ" - iex> Faker.Address.Hy.city() - "Բերդ" + "Ստեփանավան" """ @spec city() :: String.t() @@ -107,8 +103,6 @@ defmodule Faker.Address.Hy do iex> Faker.Address.Hy.country() "Սալվադոր" - iex> Faker.Address.Hy.country() - "Չիլի" """ @spec country() :: String.t() sampler(:country, [ @@ -352,8 +346,6 @@ defmodule Faker.Address.Hy do iex> Faker.Address.Hy.secondary_address() "բն. 4" - iex> Faker.Address.Hy.secondary_address() - "բն. 3" """ @spec secondary_address() :: String.t() @@ -369,8 +361,6 @@ defmodule Faker.Address.Hy do ## Examples - iex> Faker.Address.Hy.state() - "Սյունիք" iex> Faker.Address.Hy.state() "Արագածոտն" """ @@ -393,8 +383,6 @@ defmodule Faker.Address.Hy do ## Examples - iex> Faker.Address.Hy.state_abbr() - "ՍՅ" iex> Faker.Address.Hy.state_abbr() "ԱԳ" """ @@ -419,8 +407,6 @@ defmodule Faker.Address.Hy do iex> Faker.Address.Hy.street_address() "Թորամանյան 09" - iex> Faker.Address.Hy.street_address() - "Կուստոյի 96" """ @spec street_address() :: String.t() def street_address do @@ -448,8 +434,6 @@ defmodule Faker.Address.Hy do iex> Faker.Address.Hy.street_name() "Թորամանյան" - iex> Faker.Address.Hy.street_name() - "Մուրացանի" """ @spec street_name() :: String.t() sampler(:street_name, [ @@ -624,9 +608,7 @@ defmodule Faker.Address.Hy do ## Examples iex> Faker.Address.Hy.street_suffix() - "փակուղի" - iex> Faker.Address.Hy.street_suffix() - "փակուղի" + "նրբանցք" """ @spec street_suffix() :: String.t() sampler(:street_suffix, [ @@ -642,9 +624,7 @@ defmodule Faker.Address.Hy do ## Examples iex> Faker.Address.Hy.zip_code() - "3243" - iex> Faker.Address.Hy.zip_code() - "2990" + "0154" """ @spec zip_code() :: String.t() def zip_code do diff --git a/lib/faker/address/it.ex b/lib/faker/address/it.ex index 26c28d068..30597f73b 100644 --- a/lib/faker/address/it.ex +++ b/lib/faker/address/it.ex @@ -13,9 +13,7 @@ defmodule Faker.Address.It do ## Examples iex> Faker.Address.It.building_number() - "465" - iex> Faker.Address.It.building_number() - "164" + "154" """ @spec building_number() :: String.t() def building_number do @@ -30,9 +28,7 @@ defmodule Faker.Address.It do ## Examples iex> Faker.Address.It.city() - "Sanna" - iex> Faker.Address.It.city() - "Immacolata di sotto" + "Dionigi di sotto" """ @spec city() :: String.t() def city do @@ -51,8 +47,6 @@ defmodule Faker.Address.It do iex> Faker.Address.It.city_prefix() "Settimo" - iex> Faker.Address.It.city_prefix() - "Sesto" """ @spec city_prefix() :: String.t() sampler(:city_prefix, [ @@ -77,9 +71,7 @@ defmodule Faker.Address.It do ## Examples iex> Faker.Address.It.city_suffix() - "di sotto" - iex> Faker.Address.It.city_suffix() - "di sotto" + "di sopra" """ @spec city_suffix() :: String.t() sampler(:city_suffix, [ @@ -97,8 +89,6 @@ defmodule Faker.Address.It do iex> Faker.Address.It.country() "Estonia" - iex> Faker.Address.It.country() - "Bhutan" """ @spec country() :: String.t() sampler(:country, [ @@ -360,8 +350,6 @@ defmodule Faker.Address.It do iex> Faker.Address.It.country_code() "EE" - iex> Faker.Address.It.country_code() - "BY" """ @spec country_code() :: String.t() sampler(:country_code, [ @@ -620,9 +608,7 @@ defmodule Faker.Address.It do ## Examples iex> Faker.Address.It.secondary_address() - "Edificio 2" - iex> Faker.Address.It.secondary_address() - "Edificio 87" + "/A" """ @spec secondary_address() :: String.t() def secondary_address do @@ -648,8 +634,6 @@ defmodule Faker.Address.It do iex> Faker.Address.It.region() "Liguria" - iex> Faker.Address.It.region() - "Lombardia" """ @spec region() :: String.t() sampler(:region, [ @@ -693,8 +677,6 @@ defmodule Faker.Address.It do iex> Faker.Address.It.province() "Nuoro" - iex> Faker.Address.It.province() - "Genova" """ @spec province() :: String.t() sampler(:province, [ @@ -818,9 +800,7 @@ defmodule Faker.Address.It do ## Examples iex> Faker.Address.It.province_abbr() - "OR" - iex> Faker.Address.It.province_abbr() - "GE" + "BA" """ @spec province_abbr() :: String.t() sampler(:province_abbr, [ @@ -940,9 +920,7 @@ defmodule Faker.Address.It do ## Examples iex> Faker.Address.It.region_province_abbr() - ["Piemonte", "Cuneo", "CN"] - iex> Faker.Address.It.region_province_abbr() - ["Liguria", "Savona", "SV"] + ["Calabria", "Reggio di Calabria", "RC"] """ @spec region_province_abbr() :: [String.t()] sampler(:region_province_abbr, [ @@ -1061,9 +1039,7 @@ defmodule Faker.Address.It do ## Examples iex> Faker.Address.It.street_address() - "Viale Congo, 51" - iex> Faker.Address.It.street_address() - "Via Privata Elvio Sorrentino, 883" + "Corso Agave, 2" """ @spec street_address() :: String.t() def street_address do @@ -1090,9 +1066,7 @@ defmodule Faker.Address.It do ## Examples iex> Faker.Address.It.street_name() - "Viale Congo" - iex> Faker.Address.It.street_name() - "Corso Valle d'Aosta/Vallée d'Aoste" + "Corso Agave" """ @spec street_name() :: String.t() def street_name do @@ -1115,9 +1089,7 @@ defmodule Faker.Address.It do ## Examples iex> Faker.Address.It.street_prefix() - "Strada per" - iex> Faker.Address.It.street_prefix() - "Viale" + "Vicolo" """ @spec street_prefix() :: String.t() sampler(:street_prefix, [ @@ -1138,9 +1110,7 @@ defmodule Faker.Address.It do ## Examples iex> Faker.Address.It.time_zone() - "Europa/Riga" - iex> Faker.Address.It.time_zone() - "Asia/Rangoon" + "Australia/Sydney" """ @spec time_zone() :: String.t() sampler(:time_zone, [ @@ -1277,9 +1247,7 @@ defmodule Faker.Address.It do ## Examples iex> Faker.Address.It.zip_code() - "70879" - iex> Faker.Address.It.zip_code() - "90648" + "01542" """ @spec zip_code() :: String.t() def zip_code do diff --git a/lib/faker/address/pt_br.ex b/lib/faker/address/pt_br.ex index 90668a574..e8a3a32a5 100644 --- a/lib/faker/address/pt_br.ex +++ b/lib/faker/address/pt_br.ex @@ -13,9 +13,7 @@ defmodule Faker.Address.PtBr do ## Examples iex> Faker.Address.PtBr.building_number() - "24" - iex> Faker.Address.PtBr.building_number() - "79" + "s/n" """ @spec building_number() :: String.t() def building_number do @@ -30,9 +28,7 @@ defmodule Faker.Address.PtBr do ## Examples iex> Faker.Address.PtBr.city() - "Giovanna" - iex> Faker.Address.PtBr.city() - "Milena Paulista" + "Senador Kaique Paulista" """ @spec city() :: String.t() def city do @@ -54,8 +50,6 @@ defmodule Faker.Address.PtBr do iex> Faker.Address.PtBr.city_suffixes() "de Goiás" - iex> Faker.Address.PtBr.city_suffixes() - "da Mata" """ @spec city_suffixes() :: String.t() sampler(:city_suffixes, [ @@ -86,9 +80,7 @@ defmodule Faker.Address.PtBr do ## Examples iex> Faker.Address.PtBr.city_prefix() - "Bento" - iex> Faker.Address.PtBr.city_prefix() - "Alta" + "Santo" """ @spec city_prefix() :: String.t() sampler(:city_prefix, [ @@ -122,9 +114,7 @@ defmodule Faker.Address.PtBr do ## Examples iex> Faker.Address.PtBr.country() - "Cuba" - iex> Faker.Address.PtBr.country() - "Ashmore and Cartier Islands" + "Ilhas Virgens Britânicas" """ @spec country() :: String.t() sampler(:country, [ @@ -402,9 +392,7 @@ defmodule Faker.Address.PtBr do ## Examples iex> Faker.Address.PtBr.secondary_address() - "Sala 576" - iex> Faker.Address.PtBr.secondary_address() - "AP 386" + "Sala 154" """ @spec secondary_address() :: String.t() def secondary_address do @@ -420,8 +408,6 @@ defmodule Faker.Address.PtBr do iex> Faker.Address.PtBr.state() "Espírito Santo" - iex> Faker.Address.PtBr.state() - "Alagoas" """ @spec state() :: String.t() sampler(:state, [ @@ -461,8 +447,6 @@ defmodule Faker.Address.PtBr do iex> Faker.Address.PtBr.neighborhood() "Candelaria" - iex> Faker.Address.PtBr.neighborhood() - "Ernesto Nascimento" """ @spec neighborhood() :: String.t() @@ -958,8 +942,6 @@ defmodule Faker.Address.PtBr do iex> Faker.Address.PtBr.state_abbr() "ES" - iex> Faker.Address.PtBr.state_abbr() - "AL" """ @spec state_abbr() :: String.t() sampler(:state_abbr, [ @@ -998,9 +980,7 @@ defmodule Faker.Address.PtBr do ## Examples iex> Faker.Address.PtBr.street_address() - "Passarela Bernardo, 2584" - iex> Faker.Address.PtBr.street_address() - "Avenida Moura, 07" + "Estação Kaique, 2" """ @spec street_address() :: String.t() def street_address do @@ -1013,7 +993,7 @@ defmodule Faker.Address.PtBr do ## Examples iex> Faker.Address.PtBr.street_address(true) - "Passarela Bernardo, 2584 AP 494" + "Estação Kaique, 2 Sala 461" iex> Faker.Address.PtBr.street_address(false) "Trecho Vicente Videira, 449" """ @@ -1027,9 +1007,7 @@ defmodule Faker.Address.PtBr do ## Examples iex> Faker.Address.PtBr.street_name() - "Passarela Bernardo" - iex> Faker.Address.PtBr.street_name() - "Travessa Rios" + "Estação Kaique" """ @spec street_name() :: String.t() def street_name do @@ -1048,9 +1026,7 @@ defmodule Faker.Address.PtBr do ## Examples iex> Faker.Address.PtBr.street_prefix() - "Praia" - iex> Faker.Address.PtBr.street_prefix() - "Feira" + "Recanto" """ @spec street_prefix() :: String.t() sampler(:street_prefix, [ @@ -1107,9 +1083,7 @@ defmodule Faker.Address.PtBr do ## Examples iex> Faker.Address.PtBr.time_zone() - "Europa/Riga" - iex> Faker.Address.PtBr.time_zone() - "Asia/Rangoon" + "Australia/Sydney" """ @spec time_zone() :: String.t() sampler(:time_zone, [ @@ -1246,9 +1220,7 @@ defmodule Faker.Address.PtBr do ## Examples iex> Faker.Address.PtBr.zip_code() - "46549723" - iex> Faker.Address.PtBr.zip_code() - "72.490-898" + "15426461" """ @spec zip_code() :: String.t() def zip_code do diff --git a/lib/faker/address/ru.ex b/lib/faker/address/ru.ex index a38b82eec..9e31c43af 100644 --- a/lib/faker/address/ru.ex +++ b/lib/faker/address/ru.ex @@ -11,9 +11,7 @@ defmodule Faker.Address.Ru do ## Examples iex> Faker.Address.Ru.country() - "Ирландия" - iex> Faker.Address.Ru.country() - "Республика Конго" + "Белоруссия" """ @spec country() :: String.t() sampler(:country, [ @@ -220,8 +218,6 @@ defmodule Faker.Address.Ru do iex> Faker.Address.Ru.state() "Псковская область" - iex> Faker.Address.Ru.state() - "Ростовская область" """ @spec state() :: String.t() sampler(:state, [ diff --git a/lib/faker/airports.ex b/lib/faker/airports.ex index 197a0679c..e045db8e5 100644 --- a/lib/faker/airports.ex +++ b/lib/faker/airports.ex @@ -12,8 +12,6 @@ defmodule Faker.Airports do iex> Faker.Airports.icao() "YGIA" - iex> Faker.Airports.icao() - "YSNB" """ @spec icao() :: String.t() sampler(:icao, [ @@ -1026,8 +1024,6 @@ defmodule Faker.Airports do iex> Faker.Airports.iata() "HVD" - iex> Faker.Airports.iata() - "RIM" """ @spec iata() :: String.t() sampler(:iata, [ diff --git a/lib/faker/airports/en.ex b/lib/faker/airports/en.ex index e3c4ca520..758fb5283 100644 --- a/lib/faker/airports/en.ex +++ b/lib/faker/airports/en.ex @@ -12,8 +12,6 @@ defmodule Faker.Airports.En do iex> Faker.Airports.En.name() "Rabat-Sale Airport" - iex> Faker.Airports.En.name() - "Arrachart Airport" """ @spec name() :: String.t() diff --git a/lib/faker/airports/pt_br.ex b/lib/faker/airports/pt_br.ex index 563df8719..0f86bd323 100644 --- a/lib/faker/airports/pt_br.ex +++ b/lib/faker/airports/pt_br.ex @@ -12,8 +12,6 @@ defmodule Faker.Airports.PtBr do iex> Faker.Airports.PtBr.name() "Aeroporto Internacional Marechal Cunha Machado (SLZ/SBSL)" - iex> Faker.Airports.PtBr.name() - "Aeroporto Internacional Marechal Cunha Machado (SLZ/SBSL)" """ @spec name() :: String.t() diff --git a/lib/faker/app.ex b/lib/faker/app.ex index 1cd7072e2..cadc69353 100644 --- a/lib/faker/app.ex +++ b/lib/faker/app.ex @@ -15,8 +15,6 @@ defmodule Faker.App do iex> Faker.App.version() "2.4" - iex> Faker.App.version() - "7.9" """ @spec version() :: String.t() def version do @@ -39,8 +37,6 @@ defmodule Faker.App do iex> Faker.App.semver() "2.10.14" - iex> Faker.App.semver() - "4.37.24" """ @spec semver(Keyword.t()) :: String.t() def semver(opts \\ []) do @@ -97,9 +93,7 @@ defmodule Faker.App do ## Examples iex> Faker.App.name() - "Duobam" - iex> Faker.App.name() - "Greenlam" + "Redhold" """ @spec name() :: String.t() sampler(:name, [ @@ -174,8 +168,6 @@ defmodule Faker.App do iex> Faker.App.author() "Aglae Rempel" - iex> Faker.App.author() - "Therese Predovic" """ @spec author() :: String.t() def author, do: author(Faker.random_between(0, 1)) diff --git a/lib/faker/avatar.ex b/lib/faker/avatar.ex index 8c368db3e..209a2d745 100644 --- a/lib/faker/avatar.ex +++ b/lib/faker/avatar.ex @@ -11,9 +11,7 @@ defmodule Faker.Avatar do ## Examples iex> Faker.Avatar.image_url() - "https://robohash.org/set_set1/bgset_bg1/j5m" - iex> Faker.Avatar.image_url() - "https://robohash.org/set_set2/bgset_bg2/jfBR3" + "https://robohash.org/set_set1/bgset_bg2/kQqaIfGqxsjFoNIT" """ @spec image_url() :: String.t() def image_url do diff --git a/lib/faker/aws/en.ex b/lib/faker/aws/en.ex index 4997c55e2..417e94cb2 100644 --- a/lib/faker/aws/en.ex +++ b/lib/faker/aws/en.ex @@ -11,9 +11,7 @@ defmodule Faker.Aws.En do ## Examples iex> Faker.Aws.En.region_name() - "Asia Pacific (Seoul)" - iex> Faker.Aws.En.region_name() - "Asia Pacific (Singapore)" + "Asia Pacific (Tokyo)" """ @spec region_name() :: String.t() sampler(:region_name, [ @@ -45,9 +43,7 @@ defmodule Faker.Aws.En do ## Examples iex> Faker.Aws.En.region_code() - "ap-northeast-2" - iex> Faker.Aws.En.region_code() - "ap-southeast-1" + "ap-northeast-1" """ @spec region_code() :: String.t() sampler(:region_code, [ @@ -79,9 +75,7 @@ defmodule Faker.Aws.En do ## Examples iex> Faker.Aws.En.service() - "Systems Manager" - iex> Faker.Aws.En.service() - "Device Farm" + "AWS Compute Optimizer" """ @spec service() :: String.t() sampler(:service, [ @@ -236,9 +230,7 @@ defmodule Faker.Aws.En do ## Example iex> Faker.Aws.En.s3_action() - "PutBucketAcl" - iex> Faker.Aws.En.s3_action() - "ListObjectsV2" + "DeleteBucketTagging" """ @spec s3_action() :: String.t() sampler(:s3_action, [ @@ -338,9 +330,7 @@ defmodule Faker.Aws.En do ## Example iex> Faker.Aws.En.rds_action() - "DescribeDBParameters" - iex> Faker.Aws.En.rds_action() - "FailoverDBCluster" + "DeleteDBClusterEndpoint" """ @spec rds_action() :: String.t() sampler(:rds_action, [ @@ -482,9 +472,7 @@ defmodule Faker.Aws.En do ## Example iex> Faker.Aws.En.ec2_action() - "CreateLocalGatewayRouteTableVpcAssociation" - iex> Faker.Aws.En.ec2_action() - "DescribeExportImageTasks" + "CreateVpcEndpoint" """ @spec ec2_action() :: String.t() sampler(:ec2_action, [ diff --git a/lib/faker/aws/fr.ex b/lib/faker/aws/fr.ex index 25a66ccae..8192929da 100644 --- a/lib/faker/aws/fr.ex +++ b/lib/faker/aws/fr.ex @@ -10,9 +10,7 @@ defmodule Faker.Aws.Fr do ## Examples iex> Faker.Aws.Fr.region_name() - "Asie Pacifique (Seoul)" - iex> Faker.Aws.Fr.region_name() - "Asie Pacifique (Singapore)" + "Asie Pacifique (Tokyo)" """ @spec region_name() :: String.t() sampler(:region_name, [ diff --git a/lib/faker/aws/pt_br.ex b/lib/faker/aws/pt_br.ex index a5b9f7ee9..92fe828db 100644 --- a/lib/faker/aws/pt_br.ex +++ b/lib/faker/aws/pt_br.ex @@ -11,9 +11,7 @@ defmodule Faker.Aws.PtBr do ## Examples iex> Faker.Aws.PtBr.region_name() - "Ásia-Pacífico (Osaka)" - iex> Faker.Aws.PtBr.region_name() - "Ásia-Pacífico (Osaka)" + "Ásia-Pacífico (Mumbai)" """ @spec region_name() :: String.t() sampler(:region_name, [ diff --git a/lib/faker/aws/pt_pt.ex b/lib/faker/aws/pt_pt.ex index 52469999e..d205541c1 100644 --- a/lib/faker/aws/pt_pt.ex +++ b/lib/faker/aws/pt_pt.ex @@ -11,9 +11,7 @@ defmodule Faker.Aws.PtPt do ## Examples iex> Faker.Aws.PtPt.region_name() - "Asia Pacifico (Seoul)" - iex> Faker.Aws.PtPt.region_name() - "Asia Pacifico (Singapura)" + "Asia Pacifico (Tóquio)" """ @spec region_name() :: String.t() sampler(:region_name, [ diff --git a/lib/faker/beer.ex b/lib/faker/beer.ex index 41196db88..a00ce4f64 100644 --- a/lib/faker/beer.ex +++ b/lib/faker/beer.ex @@ -12,8 +12,6 @@ defmodule Faker.Beer do iex> Faker.Beer.brand() "Birra Moretti" - iex> Faker.Beer.brand() - "Quimes" """ @spec brand() :: String.t() localize(:brand) @@ -25,8 +23,6 @@ defmodule Faker.Beer do iex> Faker.Beer.name() "Oak Aged Yeti Imperial Stout" - iex> Faker.Beer.name() - "Duvel" """ @spec name() :: String.t() localize(:name) @@ -38,8 +34,6 @@ defmodule Faker.Beer do iex> Faker.Beer.hop() "Mosaic" - iex> Faker.Beer.hop() - "Chelan" """ @spec hop() :: String.t() localize(:hop) @@ -50,9 +44,7 @@ defmodule Faker.Beer do ## Examples iex> Faker.Beer.yeast() - "3711 - French Saison" - iex> Faker.Beer.yeast() - "1332 - Northwest Ale" + "2206 - Bavarian Lager" """ @spec yeast() :: String.t() localize(:yeast) @@ -64,8 +56,6 @@ defmodule Faker.Beer do iex> Faker.Beer.malt() "Chocolate malt" - iex> Faker.Beer.malt() - "Special roast" """ @spec malt() :: String.t() localize(:malt) @@ -76,9 +66,7 @@ defmodule Faker.Beer do ## Examples iex> Faker.Beer.style() - "English Pale Ale" - iex> Faker.Beer.style() - "Light Hybrid Beer" + "Stout" """ @spec style() :: String.t() localize(:style) @@ -90,8 +78,6 @@ defmodule Faker.Beer do iex> Faker.Beer.ibu() "65 IBU" - iex> Faker.Beer.ibu() - "104 IBU" """ @spec ibu :: String.t() def ibu do @@ -105,8 +91,6 @@ defmodule Faker.Beer do iex> Faker.Beer.alcohol() "60.3%" - iex> Faker.Beer.alcohol() - "34.5%" """ @spec alcohol :: String.t() def alcohol do @@ -120,8 +104,6 @@ defmodule Faker.Beer do iex> Faker.Beer.blg() "60.3°Blg" - iex> Faker.Beer.blg() - "34.5°Blg" """ @spec blg :: String.t() def blg do diff --git a/lib/faker/beer/en.ex b/lib/faker/beer/en.ex index 95d6db073..90f4cef44 100644 --- a/lib/faker/beer/en.ex +++ b/lib/faker/beer/en.ex @@ -12,8 +12,6 @@ defmodule Faker.Beer.En do iex> Faker.Beer.En.brand() "Birra Moretti" - iex> Faker.Beer.En.brand() - "Quimes" """ @spec brand() :: String.t() sampler(:brand, [ @@ -60,8 +58,6 @@ defmodule Faker.Beer.En do iex> Faker.Beer.En.name() "Oak Aged Yeti Imperial Stout" - iex> Faker.Beer.En.name() - "Duvel" """ @spec name() :: String.t() sampler(:name, [ @@ -124,8 +120,6 @@ defmodule Faker.Beer.En do iex> Faker.Beer.En.hop() "Mosaic" - iex> Faker.Beer.En.hop() - "Chelan" """ @spec hop() :: String.t() sampler(:hop, [ @@ -189,8 +183,6 @@ defmodule Faker.Beer.En do iex> Faker.Beer.En.yeast() "3711 - French Saison" - iex> Faker.Beer.En.yeast() - "1332 - Northwest Ale" """ @spec yeast() :: String.t() sampler(:yeast, [ @@ -252,8 +244,6 @@ defmodule Faker.Beer.En do iex> Faker.Beer.En.malt() "Chocolate malt" - iex> Faker.Beer.En.malt() - "Special roast" """ @spec malt() :: String.t() sampler(:malt, [ @@ -282,8 +272,6 @@ defmodule Faker.Beer.En do iex> Faker.Beer.En.style() "English Pale Ale" - iex> Faker.Beer.En.style() - "Light Hybrid Beer" """ @spec style() :: String.t() sampler(:style, [ diff --git a/lib/faker/blockchain/bitcoin.ex b/lib/faker/blockchain/bitcoin.ex index 2073eb2ba..ecf9d06d5 100644 --- a/lib/faker/blockchain/bitcoin.ex +++ b/lib/faker/blockchain/bitcoin.ex @@ -12,8 +12,6 @@ defmodule Faker.Blockchain.Bitcoin do iex> Faker.Blockchain.Bitcoin.address() "16UZtfPcBYxawLfL2PBG1CnGPWKBZSExTr" - iex> Faker.Blockchain.Bitcoin.address() - "1Q8X4neAgccJKPhBheQDoDsT1QYPeamr4B" iex> Faker.Blockchain.Bitcoin.address(:main) "1F84ppNY7ggA9uNr3SwkeRsqRjjN7mQ5eG" iex> Faker.Blockchain.Bitcoin.address(:testnet) diff --git a/lib/faker/blockchain/ethereum.ex b/lib/faker/blockchain/ethereum.ex index a619fd9d0..e3f14ed81 100644 --- a/lib/faker/blockchain/ethereum.ex +++ b/lib/faker/blockchain/ethereum.ex @@ -13,8 +13,6 @@ defmodule Faker.Blockchain.Ethereum do iex> Faker.Blockchain.Ethereum.address() "0x3c0f50d05f218483dc1c6bb76224822be07dd502" - iex> Faker.Blockchain.Ethereum.address() - "0xfdb6e6e98835badf7b5bfc3b96b2fd9c2117e85e" """ @spec address() :: address def address do @@ -31,8 +29,6 @@ defmodule Faker.Blockchain.Ethereum do iex> Faker.Blockchain.Ethereum.signature() "0x3c0f50d05f218483dc1c6bb76224822be07dd502fdb6e6e98835badf7b5bfc3b96b2fd9c2117e85e9ae7dd7c2d08da0c25c868fc64fc1145278fd7f99b958599ef" - iex> Faker.Blockchain.Ethereum.signature() - "0x8f34566dd6e03eef416dba994e4d581b1986a56d8e9a97c45d3b325baec0ed967a43173e2f43009d75d607f261cefc4a888a3c284a3ae553a46a4f7b8f9e8b491a" """ @spec signature() :: signature def signature do diff --git a/lib/faker/cannabis.ex b/lib/faker/cannabis.ex index 9a55d4d07..6b9a27da0 100644 --- a/lib/faker/cannabis.ex +++ b/lib/faker/cannabis.ex @@ -12,8 +12,6 @@ defmodule Faker.Cannabis do iex> Faker.Cannabis.strain() "Lemon Skunk" - iex> Faker.Cannabis.strain() - "Sonoma Glue" """ @spec strain() :: String.t() localize(:strain) @@ -25,8 +23,6 @@ defmodule Faker.Cannabis do iex> Faker.Cannabis.cannabinoid() "Cannabinolic Acid" - iex> Faker.Cannabis.cannabinoid() - "Cannabidivarin" """ @spec cannabinoid() :: String.t() localize(:cannabinoid) @@ -38,8 +34,6 @@ defmodule Faker.Cannabis do iex> Faker.Cannabis.cannabinoid_abbreviation() "CBDa" - iex> Faker.Cannabis.cannabinoid_abbreviation() - "CBG" """ @spec cannabinoid_abbreviation() :: String.t() localize(:cannabinoid_abbreviation) @@ -51,8 +45,6 @@ defmodule Faker.Cannabis do iex> Faker.Cannabis.terpene() "(-)-Isopulegol" - iex> Faker.Cannabis.terpene() - "R-(+)-Pulegone" """ @spec terpene() :: String.t() localize(:terpene) @@ -64,8 +56,6 @@ defmodule Faker.Cannabis do iex> Faker.Cannabis.medical_use() "anti-histamine" - iex> Faker.Cannabis.medical_use() - "anti-oxidant" """ @spec medical_use() :: String.t() localize(:medical_use) @@ -77,8 +67,6 @@ defmodule Faker.Cannabis do iex> Faker.Cannabis.health_benefit() "treats allergy symptoms" - iex> Faker.Cannabis.health_benefit() - "cell protectant" """ @spec health_benefit() :: String.t() localize(:health_benefit) @@ -90,8 +78,6 @@ defmodule Faker.Cannabis do iex> Faker.Cannabis.category() "ice hash" - iex> Faker.Cannabis.category() - "shatter" """ @spec category() :: String.t() localize(:category) @@ -103,8 +89,6 @@ defmodule Faker.Cannabis do iex> Faker.Cannabis.type() "hybrid" - iex> Faker.Cannabis.type() - "hybrid" """ @spec type() :: String.t() localize(:type) @@ -116,8 +100,6 @@ defmodule Faker.Cannabis do iex> Faker.Cannabis.buzzword() "weed" - iex> Faker.Cannabis.buzzword() - "gram" """ @spec buzzword() :: String.t() localize(:buzzword) @@ -129,8 +111,6 @@ defmodule Faker.Cannabis do iex> Faker.Cannabis.En.brand() "Lord Jones" - iex> Faker.Cannabis.En.brand() - "Caviar Gold" """ @spec brand() :: String.t() localize(:brand) @@ -142,8 +122,6 @@ defmodule Faker.Cannabis do iex> Faker.Cannabis.thc() "28.9%" - iex> Faker.Cannabis.thc() - "15.6%" """ @spec thc :: String.t() def thc do diff --git a/lib/faker/cannabis/en.ex b/lib/faker/cannabis/en.ex index bb7c551ba..1fe34df09 100644 --- a/lib/faker/cannabis/en.ex +++ b/lib/faker/cannabis/en.ex @@ -12,8 +12,6 @@ defmodule Faker.Cannabis.En do iex> Faker.Cannabis.En.strain() "Lemon Skunk" - iex> Faker.Cannabis.En.strain() - "Sonoma Glue" """ @spec strain() :: String.t() sampler(:strain, [ @@ -143,8 +141,6 @@ defmodule Faker.Cannabis.En do iex> Faker.Cannabis.En.cannabinoid() "Cannabinolic Acid" - iex> Faker.Cannabis.En.cannabinoid() - "Cannabidivarin" """ @spec cannabinoid() :: String.t() sampler(:cannabinoid, [ @@ -171,8 +167,6 @@ defmodule Faker.Cannabis.En do iex> Faker.Cannabis.En.cannabinoid_abbreviation() "CBDa" - iex> Faker.Cannabis.En.cannabinoid_abbreviation() - "CBG" """ @spec cannabinoid_abbreviation() :: String.t() sampler(:cannabinoid_abbreviation, [ @@ -202,8 +196,6 @@ defmodule Faker.Cannabis.En do iex> Faker.Cannabis.En.terpene() "(-)-Isopulegol" - iex> Faker.Cannabis.En.terpene() - "R-(+)-Pulegone" """ @spec terpene() :: String.t() sampler(:terpene, [ @@ -251,8 +243,6 @@ defmodule Faker.Cannabis.En do iex> Faker.Cannabis.En.medical_use() "anti-histamine" - iex> Faker.Cannabis.En.medical_use() - "anti-oxidant" """ @spec medical_use() :: String.t() sampler(:medical_use, [ @@ -296,8 +286,6 @@ defmodule Faker.Cannabis.En do iex> Faker.Cannabis.En.health_benefit() "treats allergy symptoms" - iex> Faker.Cannabis.En.health_benefit() - "cell protectant" """ @spec health_benefit() :: String.t() sampler(:health_benefit, [ @@ -341,8 +329,6 @@ defmodule Faker.Cannabis.En do iex> Faker.Cannabis.En.category() "ice hash" - iex> Faker.Cannabis.En.category() - "shatter" """ @spec category() :: String.t() sampler(:category, [ @@ -371,8 +357,6 @@ defmodule Faker.Cannabis.En do iex> Faker.Cannabis.En.type() "hybrid" - iex> Faker.Cannabis.En.type() - "hybrid" """ @spec type() :: String.t() sampler(:type, ["hybrid", "indica", "sativa"]) @@ -384,8 +368,6 @@ defmodule Faker.Cannabis.En do iex> Faker.Cannabis.En.buzzword() "weed" - iex> Faker.Cannabis.En.buzzword() - "gram" """ @spec buzzword() :: String.t() sampler(:buzzword, [ @@ -427,8 +409,6 @@ defmodule Faker.Cannabis.En do iex> Faker.Cannabis.En.brand() "Lord Jones" - iex> Faker.Cannabis.En.brand() - "Caviar Gold" """ @spec brand() :: String.t() sampler(:brand, [ diff --git a/lib/faker/cat.ex b/lib/faker/cat.ex index 77d8987e3..32be942ac 100644 --- a/lib/faker/cat.ex +++ b/lib/faker/cat.ex @@ -10,14 +10,8 @@ defmodule Faker.Cat do ## Examples - iex> Faker.Cat.name() - "Daisy" - iex> Faker.Cat.name() - "Lily" iex> Faker.Cat.name() "Felix" - iex> Faker.Cat.name() - "Max" """ @spec name() :: String.t() localize(:name) @@ -29,12 +23,6 @@ defmodule Faker.Cat do iex> Faker.Cat.breed() "Mekong Bobtail" - iex> Faker.Cat.breed() - "Suphalak" - iex> Faker.Cat.breed() - "Russian White, Black and Tabby" - iex> Faker.Cat.breed() - "Asian Semi-longhair" """ @spec breed() :: String.t() localize(:breed) @@ -45,13 +33,7 @@ defmodule Faker.Cat do ## Examples iex> Faker.Cat.registry() - "Cat Aficionado Association" - iex> Faker.Cat.registry() - "Fédération Internationale Féline" - iex> Faker.Cat.registry() - "Fédération Internationale Féline" - iex> Faker.Cat.registry() - "Fédération Internationale Féline" + "Felis Britannica" """ @spec registry() :: String.t() localize(:registry) diff --git a/lib/faker/cat/en.ex b/lib/faker/cat/en.ex index 534db7c87..b30956fbd 100644 --- a/lib/faker/cat/en.ex +++ b/lib/faker/cat/en.ex @@ -12,12 +12,6 @@ defmodule Faker.Cat.En do iex> Faker.Cat.En.name() "Daisy" - iex> Faker.Cat.En.name() - "Lily" - iex> Faker.Cat.En.name() - "Felix" - iex> Faker.Cat.En.name() - "Max" """ @spec name() :: String.t() sampler(:name, [ @@ -58,12 +52,6 @@ defmodule Faker.Cat.En do iex> Faker.Cat.En.breed() "Mekong Bobtail" - iex> Faker.Cat.En.breed() - "Suphalak" - iex> Faker.Cat.En.breed() - "Russian White, Black and Tabby" - iex> Faker.Cat.En.breed() - "Asian Semi-longhair" """ @spec breed() :: String.t() sampler(:breed, [ @@ -172,12 +160,6 @@ defmodule Faker.Cat.En do iex> Faker.Cat.En.registry() "Cat Aficionado Association" - iex> Faker.Cat.En.registry() - "Fédération Internationale Féline" - iex> Faker.Cat.En.registry() - "Fédération Internationale Féline" - iex> Faker.Cat.En.registry() - "Fédération Internationale Féline" """ @spec registry() :: String.t() sampler(:registry, [ diff --git a/lib/faker/cat/pt_br.ex b/lib/faker/cat/pt_br.ex index 4e7793dc4..7a3b33b60 100644 --- a/lib/faker/cat/pt_br.ex +++ b/lib/faker/cat/pt_br.ex @@ -11,13 +11,7 @@ defmodule Faker.Cat.PtBr do ## Examples iex> Faker.Cat.PtBr.female_name() - "Samy" - iex> Faker.Cat.PtBr.female_name() - "Linda" - iex> Faker.Cat.PtBr.female_name() - "Úrsula" - iex> Faker.Cat.PtBr.female_name() - "Florinda" + "Nala" """ @spec female_name() :: String.t() sampler(:female_name, [ @@ -109,13 +103,7 @@ defmodule Faker.Cat.PtBr do ## Examples iex> Faker.Cat.PtBr.male_name() - "Soneca" - iex> Faker.Cat.PtBr.male_name() - "Loui" - iex> Faker.Cat.PtBr.male_name() - "Ton" - iex> Faker.Cat.PtBr.male_name() - "Dante" + "Platão" """ @spec male_name() :: String.t() sampler( @@ -210,13 +198,7 @@ defmodule Faker.Cat.PtBr do ## Examples iex> Faker.Cat.PtBr.breed() - "Angorá Turco" - iex> Faker.Cat.PtBr.breed() - "Azul Russo" - iex> Faker.Cat.PtBr.breed() - "Pelo Curto Brasileiro" - iex> Faker.Cat.PtBr.breed() - "Pelo Curto Americano" + "Persa" """ @spec breed() :: String.t() sampler(:breed, [ diff --git a/lib/faker/code.ex b/lib/faker/code.ex index 81cb83a15..9e9289e00 100644 --- a/lib/faker/code.ex +++ b/lib/faker/code.ex @@ -12,12 +12,6 @@ defmodule Faker.Code do iex> Faker.Code.isbn() "015426461X" - iex> Faker.Code.isbn() - "0832970522" - iex> Faker.Code.isbn() - "3570203034" - iex> Faker.Code.isbn() - "2097337600" """ defdelegate isbn, to: Faker.Code, as: :isbn10 @@ -28,12 +22,6 @@ defmodule Faker.Code do iex> Faker.Code.isbn10() "015426461X" - iex> Faker.Code.isbn10() - "0832970522" - iex> Faker.Code.isbn10() - "3570203034" - iex> Faker.Code.isbn10() - "2097337600" """ def isbn10 do sequence = Faker.format("#########") @@ -47,12 +35,6 @@ defmodule Faker.Code do iex> Faker.Code.isbn13() "9781542646109" - iex> Faker.Code.isbn13() - "9783297052358" - iex> Faker.Code.isbn13() - "9790203032090" - iex> Faker.Code.isbn13() - "9793376033741" """ def isbn13 do sequence = Util.pick(["978", "979"]) <> Faker.format("#########") @@ -66,12 +48,6 @@ defmodule Faker.Code do iex> Faker.Code.issn() "01542648" - iex> Faker.Code.issn() - "61083291" - iex> Faker.Code.issn() - "70523576" - iex> Faker.Code.issn() - "02030322" """ def issn do sequence = Faker.format("#######") @@ -90,8 +66,6 @@ defmodule Faker.Code do "MC98FOOBAR83" iex> Faker.Code.iban("SM", ["A"]) "SM86A2970523570AY38NWIVZ5XT" - iex> Faker.Code.iban("MC", ["FOO", "BAR"]) - "MC40FOOBAR60" """ defdelegate iban(), to: Faker.Code.Iban defdelegate iban(country_code_or_codes), to: Faker.Code.Iban diff --git a/lib/faker/code/iban.ex b/lib/faker/code/iban.ex index 711575cc5..eca4e2bcd 100644 --- a/lib/faker/code/iban.ex +++ b/lib/faker/code/iban.ex @@ -14,10 +14,6 @@ defmodule Faker.Code.Iban do "GI88LRCE6SQ3CQJGP3UHAJD" iex> Faker.Code.Iban.iban("NL") "NL26VYOC3032097337" - iex> Faker.Code.Iban.iban(["NL", "BE"]) - "NL74YRFX4598109960" - iex> Faker.Code.Iban.iban(["NL", "BE"]) - "BE31198979502980" """ @alpha ~w(A B C D E F G H I J K L M N O P Q R S T U V W X Y Z) @@ -99,12 +95,6 @@ defmodule Faker.Code.Iban do iex> Faker.Code.Iban.iban() "GI88LRCE6SQ3CQJGP3UHAJD" - iex> Faker.Code.Iban.iban() - "BR0302030320973376033745981CB" - iex> Faker.Code.Iban.iban() - "BE98607198979502" - iex> Faker.Code.Iban.iban() - "PT72807856869061130164499" """ def iban, do: iban(Keyword.keys(@iso_iban_specs)) @@ -119,10 +109,6 @@ defmodule Faker.Code.Iban do "FR650154264610QJGP3UHAJDJ02" iex> Faker.Code.Iban.iban("BE") "BE95030320973376" - iex> Faker.Code.Iban.iban(["NL", "BE"]) - "NL31RFXY5981099607" - iex> Faker.Code.Iban.iban(["BE", "DE"]) - "DE57989795029807856869" """ def iban(country_code_or_codes), do: iban(country_code_or_codes, []) diff --git a/lib/faker/color.ex b/lib/faker/color.ex index 523409270..57736bf7a 100644 --- a/lib/faker/color.ex +++ b/lib/faker/color.ex @@ -12,12 +12,6 @@ defmodule Faker.Color do iex> Faker.Color.rgb_hex() "D6D98B" - iex> Faker.Color.rgb_hex() - "88C866" - iex> Faker.Color.rgb_hex() - "F496DB" - iex> Faker.Color.rgb_hex() - "D4DE7B" """ @spec rgb_hex() :: binary def rgb_hex do @@ -33,12 +27,6 @@ defmodule Faker.Color do iex> Faker.Color.rgb_decimal() {214, 217, 139} - iex> Faker.Color.rgb_decimal() - {136, 200, 102} - iex> Faker.Color.rgb_decimal() - {244, 150, 219} - iex> Faker.Color.rgb_decimal() - {212, 222, 123} """ @spec rgb_decimal() :: {byte, byte, byte} def rgb_decimal do @@ -56,12 +44,6 @@ defmodule Faker.Color do iex> Faker.Color.name() "Red" - iex> Faker.Color.name() - "Green" - iex> Faker.Color.name() - "Brown" - iex> Faker.Color.name() - "Pink" """ @spec name() :: String.t() localize(:name) @@ -73,12 +55,6 @@ defmodule Faker.Color do iex> Faker.Color.fancy_name() "Tawny" - iex> Faker.Color.fancy_name() - "Citrine" - iex> Faker.Color.fancy_name() - "Greige" - iex> Faker.Color.fancy_name() - "Cesious" """ @spec fancy_name() :: String.t() localize(:fancy_name) diff --git a/lib/faker/color/de.ex b/lib/faker/color/de.ex index d07d08294..f2e023925 100644 --- a/lib/faker/color/de.ex +++ b/lib/faker/color/de.ex @@ -12,12 +12,6 @@ defmodule Faker.Color.De do iex> Faker.Color.De.name() "Rot" - iex> Faker.Color.De.name() - "Grün" - iex> Faker.Color.De.name() - "Braun" - iex> Faker.Color.De.name() - "Rosa" """ @spec name() :: String.t() sampler(:name, [ @@ -40,12 +34,6 @@ defmodule Faker.Color.De do iex> Faker.Color.De.fancy_name() "Flieder" - iex> Faker.Color.De.fancy_name() - "Feldgrau" - iex> Faker.Color.De.fancy_name() - "Gelbgrün" - iex> Faker.Color.De.fancy_name() - "Rotbraun" """ @spec fancy_name() :: String.t() sampler(:fancy_name, [ diff --git a/lib/faker/color/en.ex b/lib/faker/color/en.ex index 5d786ee6d..3134c64e1 100644 --- a/lib/faker/color/en.ex +++ b/lib/faker/color/en.ex @@ -12,12 +12,6 @@ defmodule Faker.Color.En do iex> Faker.Color.En.name() "Red" - iex> Faker.Color.En.name() - "Green" - iex> Faker.Color.En.name() - "Brown" - iex> Faker.Color.En.name() - "Pink" """ @spec name() :: String.t() sampler(:name, [ @@ -40,12 +34,6 @@ defmodule Faker.Color.En do iex> Faker.Color.En.fancy_name() "Tawny" - iex> Faker.Color.En.fancy_name() - "Citrine" - iex> Faker.Color.En.fancy_name() - "Greige" - iex> Faker.Color.En.fancy_name() - "Cesious" """ @spec fancy_name() :: String.t() sampler(:fancy_name, [ diff --git a/lib/faker/color/es.ex b/lib/faker/color/es.ex index 602c57874..821292a71 100644 --- a/lib/faker/color/es.ex +++ b/lib/faker/color/es.ex @@ -12,12 +12,6 @@ defmodule Faker.Color.Es do iex> Faker.Color.Es.name() "Rojo" - iex> Faker.Color.Es.name() - "Verde" - iex> Faker.Color.Es.name() - "Marrón" - iex> Faker.Color.Es.name() - "Rosa" """ @spec name() :: String.t() sampler(:name, [ diff --git a/lib/faker/color/fr.ex b/lib/faker/color/fr.ex index e60bae42e..4ed633ca3 100644 --- a/lib/faker/color/fr.ex +++ b/lib/faker/color/fr.ex @@ -12,12 +12,6 @@ defmodule Faker.Color.Fr do iex> Faker.Color.Fr.name() "Rouge" - iex> Faker.Color.Fr.name() - "Vert" - iex> Faker.Color.Fr.name() - "Marron" - iex> Faker.Color.Fr.name() - "Rose" """ @spec name() :: String.t() sampler(:name, [ diff --git a/lib/faker/color/hy.ex b/lib/faker/color/hy.ex index c290ca9a0..fe182c566 100644 --- a/lib/faker/color/hy.ex +++ b/lib/faker/color/hy.ex @@ -12,12 +12,6 @@ defmodule Faker.Color.Hy do iex> Faker.Color.Hy.name() "մոխրագույն" - iex> Faker.Color.Hy.name() - "կանաչ" - iex> Faker.Color.Hy.name() - "երկնագույն" - iex> Faker.Color.Hy.name() - "մանուշակագույն" """ @spec name() :: String.t() sampler(:name, [ diff --git a/lib/faker/color/it.ex b/lib/faker/color/it.ex index 64d7b0037..e9fa6d31a 100644 --- a/lib/faker/color/it.ex +++ b/lib/faker/color/it.ex @@ -12,12 +12,6 @@ defmodule Faker.Color.It do iex> Faker.Color.It.name() "Rosso" - iex> Faker.Color.It.name() - "Verde" - iex> Faker.Color.It.name() - "Marrone" - iex> Faker.Color.It.name() - "Rosa" """ @spec name() :: String.t() sampler(:name, [ diff --git a/lib/faker/color/pt_br.ex b/lib/faker/color/pt_br.ex index dbbd721aa..3a0071807 100644 --- a/lib/faker/color/pt_br.ex +++ b/lib/faker/color/pt_br.ex @@ -12,12 +12,6 @@ defmodule Faker.Color.PtBr do iex> Faker.Color.PtBr.name() "Vermelho" - iex> Faker.Color.PtBr.name() - "Verde" - iex> Faker.Color.PtBr.name() - "Marrom" - iex> Faker.Color.PtBr.name() - "Rosa" """ @spec name() :: String.t() sampler(:name, [ diff --git a/lib/faker/commerce.ex b/lib/faker/commerce.ex index 48d617b02..c9adc9c56 100644 --- a/lib/faker/commerce.ex +++ b/lib/faker/commerce.ex @@ -11,13 +11,7 @@ defmodule Faker.Commerce do ## Examples iex> Faker.Commerce.color() - "red" - iex> Faker.Commerce.color() - "sky blue" - iex> Faker.Commerce.color() - "lavender" - iex> Faker.Commerce.color() - "grey" + "turquoise" """ @spec color() :: String.t() localize(:color) @@ -29,12 +23,6 @@ defmodule Faker.Commerce do iex> Faker.Commerce.department() "Home, Garden & Tools" - iex> Faker.Commerce.department() - "Electronics & Computers" - iex> Faker.Commerce.department() - "Clothing, Shoes & Jewelery" - iex> Faker.Commerce.department() - "Toys, Kids & Baby" """ @spec department() :: String.t() localize(:department) @@ -45,13 +33,7 @@ defmodule Faker.Commerce do ## Examples iex> Faker.Commerce.price() - 1.11 - iex> Faker.Commerce.price() - 4.02 - iex> Faker.Commerce.price() - 8.36 - iex> Faker.Commerce.price() - 3.05 + 0.61 """ @spec price() :: float def price do @@ -66,12 +48,6 @@ defmodule Faker.Commerce do iex> Faker.Commerce.product_name() "Ergonomic Steel Shirt" - iex> Faker.Commerce.product_name() - "Fantastic Car" - iex> Faker.Commerce.product_name() - "Granite Gloves" - iex> Faker.Commerce.product_name() - "Plastic Shoes" """ @spec product_name() :: String.t() localize(:product_name) @@ -83,12 +59,6 @@ defmodule Faker.Commerce do iex> Faker.Commerce.product_name_adjective() "Small" - iex> Faker.Commerce.product_name_adjective() - "Ergonomic" - iex> Faker.Commerce.product_name_adjective() - "Incredible" - iex> Faker.Commerce.product_name_adjective() - "Gorgeous" """ @spec product_name_adjective() :: String.t() localize(:product_name_adjective) @@ -100,12 +70,6 @@ defmodule Faker.Commerce do iex> Faker.Commerce.product_name_material() "Rubber" - iex> Faker.Commerce.product_name_material() - "Concrete" - iex> Faker.Commerce.product_name_material() - "Steel" - iex> Faker.Commerce.product_name_material() - "Granite" """ @spec product_name_material() :: String.t() localize(:product_name_material) @@ -116,13 +80,7 @@ defmodule Faker.Commerce do ## Examples iex> Faker.Commerce.product_name_product() - "Gloves" - iex> Faker.Commerce.product_name_product() - "Computer" - iex> Faker.Commerce.product_name_product() - "Table" - iex> Faker.Commerce.product_name_product() - "Shirt" + "Shoes" """ @spec product_name_product() :: String.t() localize(:product_name_product) diff --git a/lib/faker/commerce/en.ex b/lib/faker/commerce/en.ex index c6f950b4a..2c0e30121 100644 --- a/lib/faker/commerce/en.ex +++ b/lib/faker/commerce/en.ex @@ -12,12 +12,6 @@ defmodule Faker.Commerce.En do iex> Faker.Commerce.En.color() "red" - iex> Faker.Commerce.En.color() - "sky blue" - iex> Faker.Commerce.En.color() - "lavender" - iex> Faker.Commerce.En.color() - "grey" """ @spec color() :: String.t() sampler(:color, [ @@ -61,13 +55,7 @@ defmodule Faker.Commerce.En do ## Examples iex> Faker.Commerce.En.department() - "Home, Garden & Tools" - iex> Faker.Commerce.En.department() - "Electronics & Computers" - iex> Faker.Commerce.En.department() - "Clothing, Shoes & Jewelery" - iex> Faker.Commerce.En.department() - "Toys, Kids & Baby" + "Sports & Outdoors" """ @spec department() :: String.t() sampler(:department, [ @@ -90,12 +78,6 @@ defmodule Faker.Commerce.En do iex> Faker.Commerce.En.product_name() "Ergonomic Steel Shirt" - iex> Faker.Commerce.En.product_name() - "Fantastic Car" - iex> Faker.Commerce.En.product_name() - "Granite Gloves" - iex> Faker.Commerce.En.product_name() - "Plastic Shoes" """ @spec product_name() :: String.t() def product_name, do: product_name(Faker.random_between(0, 2)) @@ -114,12 +96,6 @@ defmodule Faker.Commerce.En do iex> Faker.Commerce.En.product_name_adjective() "Small" - iex> Faker.Commerce.En.product_name_adjective() - "Ergonomic" - iex> Faker.Commerce.En.product_name_adjective() - "Incredible" - iex> Faker.Commerce.En.product_name_adjective() - "Gorgeous" """ @spec product_name_adjective() :: String.t() sampler(:product_name_adjective, [ @@ -141,13 +117,7 @@ defmodule Faker.Commerce.En do ## Examples iex> Faker.Commerce.En.product_name_material() - "Rubber" - iex> Faker.Commerce.En.product_name_material() - "Concrete" - iex> Faker.Commerce.En.product_name_material() - "Steel" - iex> Faker.Commerce.En.product_name_material() - "Granite" + "Plastic" """ @spec product_name_material() :: String.t() sampler(:product_name_material, [ @@ -167,12 +137,6 @@ defmodule Faker.Commerce.En do iex> Faker.Commerce.En.product_name_product() "Gloves" - iex> Faker.Commerce.En.product_name_product() - "Computer" - iex> Faker.Commerce.En.product_name_product() - "Table" - iex> Faker.Commerce.En.product_name_product() - "Shirt" """ @spec product_name_product() :: String.t() sampler(:product_name_product, [ diff --git a/lib/faker/commerce/hy.ex b/lib/faker/commerce/hy.ex index 3a99aaf7b..865129dce 100644 --- a/lib/faker/commerce/hy.ex +++ b/lib/faker/commerce/hy.ex @@ -13,12 +13,6 @@ defmodule Faker.Commerce.Hy do iex> Faker.Commerce.Hy.color() "մոխրագույն" - iex> Faker.Commerce.Hy.color() - "կանաչ" - iex> Faker.Commerce.Hy.color() - "երկնագույն" - iex> Faker.Commerce.Hy.color() - "մանուշակագույն" """ @spec color() :: String.t() def color do @@ -31,13 +25,7 @@ defmodule Faker.Commerce.Hy do ## Examples iex> Faker.Commerce.Hy.department() - "Համակարգիչներ" - iex> Faker.Commerce.Hy.department() - "Երաժշտություն" - iex> Faker.Commerce.Hy.department() - "Գրքեր" - iex> Faker.Commerce.Hy.department() - "Էլեկտրոնիկա" + "Ապրանքներ Տան Համար" """ @spec department() :: String.t() sampler(:department, [ @@ -71,13 +59,7 @@ defmodule Faker.Commerce.Hy do ## Examples iex> Faker.Commerce.Hy.product_name() - "հիանալի բրոնզե գլխարկ" - iex> Faker.Commerce.Hy.product_name() - "ֆանտաստիկ դանակ" - iex> Faker.Commerce.Hy.product_name() - "պլաստիկից աթոռ" - iex> Faker.Commerce.Hy.product_name() - "ալյումինե վերնաշապիկ" + "շքեղ բրդյա ավտոմեքենա" """ @spec product_name() :: String.t() def product_name, do: product_name(Faker.random_between(0, 2)) @@ -96,12 +78,6 @@ defmodule Faker.Commerce.Hy do iex> Faker.Commerce.Hy.product_name_adjective() "ֆանտաստիկ" - iex> Faker.Commerce.Hy.product_name_adjective() - "հիանալի" - iex> Faker.Commerce.Hy.product_name_adjective() - "միջակ" - iex> Faker.Commerce.Hy.product_name_adjective() - "նրբագեղ" """ @spec product_name_adjective() :: String.t() sampler(:product_name_adjective, [ @@ -130,12 +106,6 @@ defmodule Faker.Commerce.Hy do iex> Faker.Commerce.Hy.product_name_material() "փայտե" - iex> Faker.Commerce.Hy.product_name_material() - "գրանիտե" - iex> Faker.Commerce.Hy.product_name_material() - "բրոնզե" - iex> Faker.Commerce.Hy.product_name_material() - "մարմարե" """ @spec product_name_material() :: String.t() sampler(:product_name_material, [ @@ -164,13 +134,7 @@ defmodule Faker.Commerce.Hy do ## Examples iex> Faker.Commerce.Hy.product_name_product() - "վերնաշապիկ" - iex> Faker.Commerce.Hy.product_name_product() - "ստեղնաշար" - iex> Faker.Commerce.Hy.product_name_product() - "վերնաշապիկ" - iex> Faker.Commerce.Hy.product_name_product() - "գլխարկ" + "կոշիկ" """ @spec product_name_product() :: String.t() sampler(:product_name_product, [ diff --git a/lib/faker/commerce/pt_br.ex b/lib/faker/commerce/pt_br.ex index 71af28a4d..41173c85b 100644 --- a/lib/faker/commerce/pt_br.ex +++ b/lib/faker/commerce/pt_br.ex @@ -13,13 +13,7 @@ defmodule Faker.Commerce.PtBr do ## Examples iex> Faker.Commerce.PtBr.color() - "Vermelho(a)" - iex> Faker.Commerce.PtBr.color() - "Verde" - iex> Faker.Commerce.PtBr.color() - "Marrom" - iex> Faker.Commerce.PtBr.color() - "Rosa" + "Amarelo(a)" """ @spec color() :: String.t() def color do @@ -46,12 +40,6 @@ defmodule Faker.Commerce.PtBr do iex> Faker.Commerce.PtBr.department() "Eletrônicos, TV e Áudio" - iex> Faker.Commerce.PtBr.department() - "Alimentos e bebidas" - iex> Faker.Commerce.PtBr.department() - "Livros" - iex> Faker.Commerce.PtBr.department() - "Beleza e cuidados pessoais" """ @spec department() :: String.t() sampler(:department, [ @@ -84,13 +72,7 @@ defmodule Faker.Commerce.PtBr do ## Examples iex> Faker.Commerce.PtBr.product_name() - "Cadeira Gigante de Algodão" - iex> Faker.Commerce.PtBr.product_name() - "Computador de Granito" - iex> Faker.Commerce.PtBr.product_name() - "Bolsa Médio(a)" - iex> Faker.Commerce.PtBr.product_name() - "Escrivaninha Grande" + "Mochila Branco(a) Prático" """ @spec product_name() :: String.t() def product_name, do: product_name(Faker.random_between(0, 5)) @@ -115,12 +97,6 @@ defmodule Faker.Commerce.PtBr do iex> Faker.Commerce.PtBr.product_name_adjective() "Gigante" - iex> Faker.Commerce.PtBr.product_name_adjective() - "Rústico(a)" - iex> Faker.Commerce.PtBr.product_name_adjective() - "Gigante" - iex> Faker.Commerce.PtBr.product_name_adjective() - "Elegante" """ @spec product_name_adjective() :: String.t() sampler( @@ -148,13 +124,7 @@ defmodule Faker.Commerce.PtBr do ## Examples iex> Faker.Commerce.PtBr.product_name_material() - "Plástico" - iex> Faker.Commerce.PtBr.product_name_material() - "Aço" - iex> Faker.Commerce.PtBr.product_name_material() - "Concreto" - iex> Faker.Commerce.PtBr.product_name_material() - "Algodão" + "Silicone" """ @spec product_name_material() :: String.t() sampler(:product_name_material, [ @@ -173,12 +143,6 @@ defmodule Faker.Commerce.PtBr do ## Examples - iex> Faker.Commerce.PtBr.product_name_product() - "Guarda-roupa" - iex> Faker.Commerce.PtBr.product_name_product() - "Cadeira" - iex> Faker.Commerce.PtBr.product_name_product() - "Cobertor" iex> Faker.Commerce.PtBr.product_name_product() "Sandália" """ diff --git a/lib/faker/company.ex b/lib/faker/company.ex index bed3ce6cb..e4cddf281 100644 --- a/lib/faker/company.ex +++ b/lib/faker/company.ex @@ -12,12 +12,6 @@ defmodule Faker.Company do iex> Faker.Company.bs() "syndicate e-business e-business" - iex> Faker.Company.bs() - "scale global metrics" - iex> Faker.Company.bs() - "optimize scalable markets" - iex> Faker.Company.bs() - "implement out-of-the-box content" """ @spec bs() :: String.t() localize(:bs) @@ -28,13 +22,7 @@ defmodule Faker.Company do ## Examples iex> Faker.Company.bullshit() - "web-enabled" - iex> Faker.Company.bullshit() - "e-business" - iex> Faker.Company.bullshit() - "web-enabled" - iex> Faker.Company.bullshit() - "next-generation" + "plug-and-play" """ @spec bullshit() :: String.t() localize(:bullshit) @@ -45,13 +33,7 @@ defmodule Faker.Company do ## Examples iex> Faker.Company.bullshit_prefix() - "syndicate" - iex> Faker.Company.bullshit_prefix() - "visualize" - iex> Faker.Company.bullshit_prefix() - "incentivize" - iex> Faker.Company.bullshit_prefix() - "scale" + "grow" """ @spec bullshit_prefix() :: String.t() localize(:bullshit_prefix) @@ -63,12 +45,6 @@ defmodule Faker.Company do iex> Faker.Company.bullshit_suffix() "e-services" - iex> Faker.Company.bullshit_suffix() - "niches" - iex> Faker.Company.bullshit_suffix() - "e-business" - iex> Faker.Company.bullshit_suffix() - "systems" """ @spec bullshit_suffix() :: String.t() localize(:bullshit_suffix) @@ -80,12 +56,6 @@ defmodule Faker.Company do iex> Faker.Company.buzzword() "upward-trending" - iex> Faker.Company.buzzword() - "full-range" - iex> Faker.Company.buzzword() - "uniform" - iex> Faker.Company.buzzword() - "tertiary" """ @spec buzzword() :: String.t() localize(:buzzword) @@ -97,12 +67,6 @@ defmodule Faker.Company do iex> Faker.Company.buzzword_prefix() "Configurable" - iex> Faker.Company.buzzword_prefix() - "Advanced" - iex> Faker.Company.buzzword_prefix() - "Grass-roots" - iex> Faker.Company.buzzword_prefix() - "Automated" """ @spec buzzword_prefix() :: String.t() localize(:buzzword_prefix) @@ -114,12 +78,6 @@ defmodule Faker.Company do iex> Faker.Company.buzzword_suffix() "encoding" - iex> Faker.Company.buzzword_suffix() - "standardization" - iex> Faker.Company.buzzword_suffix() - "Graphical User Interface" - iex> Faker.Company.buzzword_suffix() - "product" """ @spec buzzword_suffix() :: String.t() localize(:buzzword_suffix) @@ -131,12 +89,6 @@ defmodule Faker.Company do iex> Faker.Company.catch_phrase() "Configurable full-range Graphical User Interface" - iex> Faker.Company.buzzword_suffix() - "product" - iex> Faker.Company.buzzword_suffix() - "intranet" - iex> Faker.Company.buzzword_suffix() - "pricing structure" """ @spec catch_phrase() :: String.t() localize(:catch_phrase) @@ -147,13 +99,7 @@ defmodule Faker.Company do ## Examples iex> Faker.Company.name() - "Hayes Inc" - iex> Faker.Company.name() - "Sipes, Wehner and Hane" - iex> Faker.Company.name() - "Schiller, Rogahn and Hartmann" - iex> Faker.Company.name() - "Murphy-Metz" + "Cartwright and Sons" """ @spec name() :: String.t() localize(:name) @@ -165,12 +111,6 @@ defmodule Faker.Company do iex> Faker.Company.suffix() "Inc" - iex> Faker.Company.suffix() - "and Sons" - iex> Faker.Company.suffix() - "Inc" - iex> Faker.Company.suffix() - "Ltd" """ @spec suffix() :: String.t() localize(:suffix) diff --git a/lib/faker/company/en.ex b/lib/faker/company/en.ex index 50847d665..39ff22221 100644 --- a/lib/faker/company/en.ex +++ b/lib/faker/company/en.ex @@ -13,13 +13,7 @@ defmodule Faker.Company.En do ## Examples iex> Faker.Company.En.bs() - "syndicate e-business e-business" - iex> Faker.Company.En.bs() - "scale global metrics" - iex> Faker.Company.En.bs() - "optimize scalable markets" - iex> Faker.Company.En.bs() - "implement out-of-the-box content" + "grow clicks-and-mortar content" """ @spec bs() :: String.t() def bs, do: "#{bullshit_prefix()} #{bullshit()} #{bullshit_suffix()}" @@ -31,12 +25,6 @@ defmodule Faker.Company.En do iex> Faker.Company.En.bullshit() "web-enabled" - iex> Faker.Company.En.bullshit() - "e-business" - iex> Faker.Company.En.bullshit() - "web-enabled" - iex> Faker.Company.En.bullshit() - "next-generation" """ @spec bullshit() :: String.t() sampler(:bullshit, [ @@ -114,12 +102,6 @@ defmodule Faker.Company.En do iex> Faker.Company.En.bullshit_prefix() "syndicate" - iex> Faker.Company.En.bullshit_prefix() - "visualize" - iex> Faker.Company.En.bullshit_prefix() - "incentivize" - iex> Faker.Company.En.bullshit_prefix() - "scale" """ @spec bullshit_prefix() :: String.t() sampler(:bullshit_prefix, [ @@ -190,12 +172,6 @@ defmodule Faker.Company.En do ## Examples - iex> Faker.Company.En.bullshit_suffix() - "e-services" - iex> Faker.Company.En.bullshit_suffix() - "niches" - iex> Faker.Company.En.bullshit_suffix() - "e-business" iex> Faker.Company.En.bullshit_suffix() "systems" """ @@ -254,12 +230,6 @@ defmodule Faker.Company.En do iex> Faker.Company.En.buzzword() "upward-trending" - iex> Faker.Company.En.buzzword() - "full-range" - iex> Faker.Company.En.buzzword() - "uniform" - iex> Faker.Company.En.buzzword() - "tertiary" """ @spec buzzword() :: String.t() sampler(:buzzword, [ @@ -373,12 +343,6 @@ defmodule Faker.Company.En do iex> Faker.Company.En.buzzword_prefix() "Configurable" - iex> Faker.Company.En.buzzword_prefix() - "Advanced" - iex> Faker.Company.En.buzzword_prefix() - "Grass-roots" - iex> Faker.Company.En.buzzword_prefix() - "Automated" """ @spec buzzword_prefix() :: String.t() sampler(:buzzword_prefix, [ @@ -490,13 +454,7 @@ defmodule Faker.Company.En do ## Examples iex> Faker.Company.En.buzzword_suffix() - "encoding" - iex> Faker.Company.En.buzzword_suffix() - "standardization" - iex> Faker.Company.En.buzzword_suffix() - "Graphical User Interface" - iex> Faker.Company.En.buzzword_suffix() - "product" + "leverage" """ @spec buzzword_suffix() :: String.t() sampler(:buzzword_suffix, [ @@ -613,12 +571,6 @@ defmodule Faker.Company.En do iex> Faker.Company.En.catch_phrase() "Configurable full-range Graphical User Interface" - iex> Faker.Company.En.catch_phrase() - "Automated mission-critical pricing structure" - iex> Faker.Company.En.catch_phrase() - "Profit-focused bottom-line algorithm" - iex> Faker.Company.En.catch_phrase() - "Self-enabling systematic initiative" """ @spec catch_phrase() :: String.t() def catch_phrase, do: "#{buzzword_prefix()} #{buzzword()} #{buzzword_suffix()}" @@ -629,13 +581,7 @@ defmodule Faker.Company.En do ## Examples iex> Faker.Company.En.name() - "Hayes Inc" - iex> Faker.Company.En.name() - "Sipes, Wehner and Hane" - iex> Faker.Company.En.name() - "Schiller, Rogahn and Hartmann" - iex> Faker.Company.En.name() - "Murphy-Metz" + "Cartwright and Sons" """ @spec name() :: String.t() def name, do: name(Faker.random_between(0, 2)) @@ -652,13 +598,7 @@ defmodule Faker.Company.En do ## Examples iex> Faker.Company.En.suffix() - "Inc" - iex> Faker.Company.En.suffix() - "and Sons" - iex> Faker.Company.En.suffix() - "Inc" - iex> Faker.Company.En.suffix() - "Ltd" + "Group" """ @spec suffix() :: String.t() sampler(:suffix, [ diff --git a/lib/faker/company/hy.ex b/lib/faker/company/hy.ex index dcf182c03..dd91c42c2 100644 --- a/lib/faker/company/hy.ex +++ b/lib/faker/company/hy.ex @@ -14,12 +14,6 @@ defmodule Faker.Company.Hy do iex> Faker.Company.Hy.bs() "առավելագույնի հասցնել նորարարական հարաբերություններ" - iex> Faker.Company.Hy.bs() - "ակտիվացնել վիրտուալ օգտագործողներ" - iex> Faker.Company.Hy.bs() - "առաքել գլոբալ կառուցվածքներ" - iex> Faker.Company.Hy.bs() - "առաքել հարուստ փորձառություններ" """ @spec bs() :: String.t() def bs, do: "#{bullshit_prefix()} #{bullshit()} #{bullshit_suffix()}" @@ -31,12 +25,6 @@ defmodule Faker.Company.Hy do iex> Faker.Company.Hy.bullshit() "ազդեցիկ" - iex> Faker.Company.Hy.bullshit() - "նորարարական" - iex> Faker.Company.Hy.bullshit() - "ժամանակակից" - iex> Faker.Company.Hy.bullshit() - "ժամանակակից" """ @spec bullshit() :: String.t() sampler(:bullshit, [ @@ -78,12 +66,6 @@ defmodule Faker.Company.Hy do iex> Faker.Company.Hy.bullshit_prefix() "առավելագույնի հասցնել" - iex> Faker.Company.Hy.bullshit_prefix() - "պատկերացնել" - iex> Faker.Company.Hy.bullshit_prefix() - "ընդլայնել" - iex> Faker.Company.Hy.bullshit_prefix() - "ակտիվացնել" """ @spec bullshit_prefix() :: String.t() sampler(:bullshit_prefix, [ @@ -128,12 +110,6 @@ defmodule Faker.Company.Hy do iex> Faker.Company.Hy.bullshit_suffix() "հարաբերություններ" - iex> Faker.Company.Hy.bullshit_suffix() - "շուկաներ" - iex> Faker.Company.Hy.bullshit_suffix() - "հարաբերություններ" - iex> Faker.Company.Hy.bullshit_suffix() - "նախաձեռնություններ" """ @spec bullshit_suffix() :: String.t() sampler(:bullshit_suffix, [ @@ -171,12 +147,6 @@ defmodule Faker.Company.Hy do iex> Faker.Company.Hy.buzzword() "ուղղորդիչ" - iex> Faker.Company.Hy.buzzword() - "լոգիստիկ" - iex> Faker.Company.Hy.buzzword() - "երրորդական" - iex> Faker.Company.Hy.buzzword() - "բացահայտ" """ @spec buzzword() :: String.t() sampler(:buzzword, [ @@ -234,13 +204,7 @@ defmodule Faker.Company.Hy do ## Examples iex> Faker.Company.Hy.buzzword_prefix() - "Բազմուղի" - iex> Faker.Company.Hy.buzzword_prefix() - "Կարգավորելի" - iex> Faker.Company.Hy.buzzword_prefix() - "Փոխարկելի" - iex> Faker.Company.Hy.buzzword_prefix() - "Ծրագրավորելի" + "Բաց կոդով" """ @spec buzzword_prefix() :: String.t() sampler(:buzzword_prefix, [ @@ -308,12 +272,6 @@ defmodule Faker.Company.Hy do iex> Faker.Company.Hy.buzzword_suffix() "ինտերֆեյս" - iex> Faker.Company.Hy.buzzword_suffix() - "համախմբվածություն" - iex> Faker.Company.Hy.buzzword_suffix() - "տեղական ցանց" - iex> Faker.Company.Hy.buzzword_suffix() - "գնային կառուցվածք" """ @spec buzzword_suffix() :: String.t() sampler(:buzzword_suffix, [ @@ -392,12 +350,6 @@ defmodule Faker.Company.Hy do iex> Faker.Company.Hy.catch_phrase() "Բազմուղի լոգիստիկ տեղական ցանց" - iex> Faker.Company.Hy.catch_phrase() - "Ծրագրավորելի 3-րդ սերնդի արտադրողականություն" - iex> Faker.Company.Hy.catch_phrase() - "Հեշտացված ուղղորդիչ ալգորիթմ" - iex> Faker.Company.Hy.catch_phrase() - "Դիմացկուն չեզոք տվյալների պահեստ" """ @spec catch_phrase() :: String.t() def catch_phrase, do: "#{buzzword_prefix()} #{buzzword()} #{buzzword_suffix()}" @@ -408,13 +360,7 @@ defmodule Faker.Company.Hy do ## Examples iex> Faker.Company.Hy.name() - "Մարալիկ ԲԲԸ" - iex> Faker.Company.Hy.name() - "Վանյան, Կարագյան և Ամիրբեկյան ՓԲԸ" - iex> Faker.Company.Hy.name() - "Հովիվյան ՓԲԸ" - iex> Faker.Company.Hy.name() - "Միլենա և Աշոտ ԲԲԸ" + "Կարեն և Հայկուհի ՀՁ" """ @spec name() :: String.t() def name, do: name(Faker.random_between(0, 4)) @@ -434,12 +380,6 @@ defmodule Faker.Company.Hy do iex> Faker.Company.Hy.suffix() "ՍՊԸ" - iex> Faker.Company.Hy.suffix() - "Հոլդինգ" - iex> Faker.Company.Hy.suffix() - "ԲԲԸ" - iex> Faker.Company.Hy.suffix() - "ՓԲԸ" """ @spec suffix() :: String.t() sampler(:suffix, [ diff --git a/lib/faker/currency.ex b/lib/faker/currency.ex index f4d9d134b..70c30be43 100644 --- a/lib/faker/currency.ex +++ b/lib/faker/currency.ex @@ -11,13 +11,7 @@ defmodule Faker.Currency do ## Examples iex> Faker.Currency.code() - "WST" - iex> Faker.Currency.code() - "UYU" - iex> Faker.Currency.code() - "CRC" - iex> Faker.Currency.code() - "DOP" + "INR" """ @spec code() :: String.t() sampler(:code, [ @@ -195,13 +189,7 @@ defmodule Faker.Currency do ## Examples iex> Faker.Currency.symbol() - "£" - iex> Faker.Currency.symbol() - "฿" - iex> Faker.Currency.symbol() - "ƒ" - iex> Faker.Currency.symbol() - "Rp" + "PhP" """ @spec symbol() :: String.t() sampler(:symbol, [ diff --git a/lib/faker/dog/pt_br.ex b/lib/faker/dog/pt_br.ex index f984b4cc0..56638d8f6 100644 --- a/lib/faker/dog/pt_br.ex +++ b/lib/faker/dog/pt_br.ex @@ -10,14 +10,8 @@ defmodule Faker.Dog.PtBr do ## Examples - iex> Faker.Dog.PtBr.name() - "Simba" - iex> Faker.Dog.PtBr.name() - "Max" iex> Faker.Dog.PtBr.name() "Malu" - iex> Faker.Dog.PtBr.name() - "Mike" """ @spec name() :: String.t() sampler(:name, [ @@ -78,13 +72,7 @@ defmodule Faker.Dog.PtBr do ## Examples iex> Faker.Dog.PtBr.breed() - "Boxer" - iex> Faker.Dog.PtBr.breed() - "Schnauzer" - iex> Faker.Dog.PtBr.breed() - "Lhasa apso" - iex> Faker.Dog.PtBr.breed() - "Fila brasileiro" + "Maltês" """ @spec breed() :: String.t() sampler(:breed, [ @@ -143,13 +131,7 @@ defmodule Faker.Dog.PtBr do ## Examples iex> Faker.Dog.PtBr.characteristic() - "Atlético, protetor e amável" - iex> Faker.Dog.PtBr.characteristic() - "Independente, reservado e inteligente" - iex> Faker.Dog.PtBr.characteristic() - "Amigável, trabalhador e extrovertido" - iex> Faker.Dog.PtBr.characteristic() - "Calmo, leal e orgulhoso" + "Brincalhão, energético e esperto" """ @spec characteristic() :: String.t() sampler(:characteristic, [ diff --git a/lib/faker/file.ex b/lib/faker/file.ex index dced939da..9e810cd3a 100644 --- a/lib/faker/file.ex +++ b/lib/faker/file.ex @@ -39,13 +39,7 @@ defmodule Faker.File do ## Examples iex> Faker.File.file_extension() - "wav" - iex> Faker.File.file_extension() - "wav" - iex> Faker.File.file_extension() - "doc" - iex> Faker.File.file_extension() - "mov" + "html" """ @spec file_extension() :: String.t() def file_extension do @@ -61,13 +55,10 @@ defmodule Faker.File do ## Examples iex> Faker.File.file_extension(:video) - "mov" + "webm" + iex> Faker.File.file_extension(:image) - "tiff" - iex> Faker.File.file_extension(:audio) - "flac" - iex> Faker.File.file_extension(:office) - "xls" + "jpg" """ @spec file_extension(atom) :: String.t() def file_extension(category) do @@ -82,13 +73,7 @@ defmodule Faker.File do ## Examples iex> Faker.File.file_name() - "aliquam.jpg" - iex> Faker.File.file_name() - "deleniti.doc" - iex> Faker.File.file_name() - "qui.jpg" - iex> Faker.File.file_name() - "quibusdam.csv" + "et.bmp" """ @spec file_name() :: String.t() def file_name do @@ -104,11 +89,11 @@ defmodule Faker.File do iex> Faker.File.file_name(:text) "aliquam.txt" iex> Faker.File.file_name(:video) - "sint.mp4" + "et.avi" iex> Faker.File.file_name(:image) - "consequatur.bmp" + "et.tiff" iex> Faker.File.file_name(:audio) - "qui.wav" + "et.mp3" """ @spec file_name(atom) :: String.t() def file_name(category) do @@ -122,12 +107,6 @@ defmodule Faker.File do iex> Faker.File.mime_type() "text/css" - iex> Faker.File.mime_type() - "message/http" - iex> Faker.File.mime_type() - "application/ogg" - iex> Faker.File.mime_type() - "model/x3d+xml" """ @spec mime_type :: String.t() def mime_type do @@ -144,13 +123,13 @@ defmodule Faker.File do ## Examples iex> Faker.File.mime_type(:image) - "image/vnd.microsoft.icon" + "image/png" iex> Faker.File.mime_type(:audio) - "audio/mp4" + "audio/vnd.wave" iex> Faker.File.mime_type(:application) - "application/xop+xml" + "application/font-woff" iex> Faker.File.mime_type(:video) - "video/mpeg" + "video/x-flv" """ @spec mime_type(atom) :: String.t() def mime_type(category) do diff --git a/lib/faker/finance/stock.ex b/lib/faker/finance/stock.ex index 1a252ba09..0866b54e5 100644 --- a/lib/faker/finance/stock.ex +++ b/lib/faker/finance/stock.ex @@ -11,13 +11,7 @@ defmodule Faker.Finance.Stock do ## Examples iex> Faker.Finance.Stock.ticker() - "7401.N225" - iex> Faker.Finance.Stock.ticker() - "4786.HK" - iex> Faker.Finance.Stock.ticker() - "6766.N225" - iex> Faker.Finance.Stock.ticker() - "5166.N225" + "7278.N225" """ @spec ticker() :: String.t() def ticker do @@ -33,21 +27,10 @@ defmodule Faker.Finance.Stock do ## Examples iex> Faker.Finance.Stock.ticker(:reuters, :nikkei225) - "2110.N225" - iex> Faker.Finance.Stock.ticker(:reuters, :nikkei225) - "7401.N225" - iex> Faker.Finance.Stock.ticker(:reuters, :nikkei225) - "9835.N225" - iex> Faker.Finance.Stock.ticker(:reuters, :nikkei225) - "8304.N225" - iex> Faker.Finance.Stock.ticker(:reuters, :sehk) - "7564.HK" - iex> Faker.Finance.Stock.ticker(:reuters, :sehk) - "3609.HK" - iex> Faker.Finance.Stock.ticker(:reuters, :sehk) - "1085.HK" + "7280.N225" + iex> Faker.Finance.Stock.ticker(:reuters, :sehk) - "5849.HK" + "6281.HK" """ def ticker(:reuters, :nikkei225) do "#{Faker.random_between(1000, 9999)}.N225" diff --git a/lib/faker/food.ex b/lib/faker/food.ex index e56030d10..099665a5d 100644 --- a/lib/faker/food.ex +++ b/lib/faker/food.ex @@ -11,13 +11,7 @@ defmodule Faker.Food do ## Examples iex> Faker.Food.dish() - "Vegetable Soup" - iex> Faker.Food.dish() - "Fish and chips" - iex> Faker.Food.dish() - "Pork belly buns" - iex> Faker.Food.dish() - "Pasta Carbonara" + "Ricotta stuffed Ravioli" """ @spec dish() :: String.t() localize(:dish) @@ -29,12 +23,6 @@ defmodule Faker.Food do iex> Faker.Food.description() "Two buttermilk waffles, topped with whipped cream and maple syrup, a side of two eggs served any style, and your choice of smoked bacon or smoked ham." - iex> Faker.Food.description() - "28-day aged 300g USDA Certified Prime Ribeye, rosemary-thyme garlic butter, with choice of two sides." - iex> Faker.Food.description() - "Breaded fried chicken with waffles, and a side of maple syrup." - iex> Faker.Food.description() - "Creamy mascarpone cheese and custard layered between espresso and rum soaked house-made ladyfingers, topped with Valrhona cocoa powder." """ @spec description() :: String.t() localize(:description) @@ -45,13 +33,7 @@ defmodule Faker.Food do ## Examples iex> Faker.Food.ingredient() - "Tomatoes" - iex> Faker.Food.ingredient() - "Albacore Tuna" - iex> Faker.Food.ingredient() - "Potatoes" - iex> Faker.Food.ingredient() - "Tinned" + "Bocconcini" """ @spec ingredient() :: String.t() localize(:ingredient) @@ -62,13 +44,7 @@ defmodule Faker.Food do ## Examples iex> Faker.Food.spice() - "Garlic Salt" - iex> Faker.Food.spice() - "Ras-el-Hanout" - iex> Faker.Food.spice() - "Curry Hot" - iex> Faker.Food.spice() - "Peppercorns Mixed" + "Curry Mild" """ @spec spice() :: String.t() localize(:spice) @@ -78,14 +54,8 @@ defmodule Faker.Food do ## Examples - iex> Faker.Food.measurement() - "teaspoon" - iex> Faker.Food.measurement() - "gallon" iex> Faker.Food.measurement() "pint" - iex> Faker.Food.measurement() - "cup" """ @spec measurement() :: String.t() localize(:measurement) @@ -97,12 +67,6 @@ defmodule Faker.Food do iex> Faker.Food.measurement_size() "1/4" - iex> Faker.Food.measurement_size() - "3" - iex> Faker.Food.measurement_size() - "1" - iex> Faker.Food.measurement_size() - "1/2" """ @spec measurement_size() :: String.t() localize(:measurement_size) @@ -112,14 +76,8 @@ defmodule Faker.Food do ## Examples - iex> Faker.Food.metric_measurement() - "centiliter" - iex> Faker.Food.metric_measurement() - "deciliter" iex> Faker.Food.metric_measurement() "liter" - iex> Faker.Food.metric_measurement() - "milliliter" """ @spec metric_measurement() :: String.t() localize(:metric_measurement) @@ -130,13 +88,7 @@ defmodule Faker.Food do ## Examples iex> Faker.Food.sushi() - "Whitespotted conger" - iex> Faker.Food.sushi() - "Japanese horse mackerel" - iex> Faker.Food.sushi() - "Salmon" - iex> Faker.Food.sushi() - "Octopus" + "Sea bream" """ @spec sushi() :: String.t() localize(:sushi) diff --git a/lib/faker/food/en.ex b/lib/faker/food/en.ex index 77f4c7795..1ade7efb0 100644 --- a/lib/faker/food/en.ex +++ b/lib/faker/food/en.ex @@ -11,13 +11,7 @@ defmodule Faker.Food.En do ## Examples iex> Faker.Food.En.dish() - "Vegetable Soup" - iex> Faker.Food.En.dish() - "Fish and chips" - iex> Faker.Food.En.dish() - "Pork belly buns" - iex> Faker.Food.En.dish() - "Pasta Carbonara" + "Ricotta stuffed Ravioli" """ @spec dish() :: String.t() sampler(:dish, [ @@ -67,12 +61,6 @@ defmodule Faker.Food.En do iex> Faker.Food.En.description() "Two buttermilk waffles, topped with whipped cream and maple syrup, a side of two eggs served any style, and your choice of smoked bacon or smoked ham." - iex> Faker.Food.En.description() - "28-day aged 300g USDA Certified Prime Ribeye, rosemary-thyme garlic butter, with choice of two sides." - iex> Faker.Food.En.description() - "Breaded fried chicken with waffles, and a side of maple syrup." - iex> Faker.Food.En.description() - "Creamy mascarpone cheese and custard layered between espresso and rum soaked house-made ladyfingers, topped with Valrhona cocoa powder." """ @spec description() :: String.t() sampler(:description, [ @@ -98,13 +86,7 @@ defmodule Faker.Food.En do ## Examples iex> Faker.Food.En.ingredient() - "Tomatoes" - iex> Faker.Food.En.ingredient() - "Albacore Tuna" - iex> Faker.Food.En.ingredient() - "Potatoes" - iex> Faker.Food.En.ingredient() - "Tinned" + "Bocconcini" """ @spec ingredient() :: String.t() sampler(:ingredient, [ @@ -608,14 +590,8 @@ defmodule Faker.Food.En do ## Examples - iex> Faker.Food.En.measurement() - "teaspoon" - iex> Faker.Food.En.measurement() - "gallon" iex> Faker.Food.En.measurement() "pint" - iex> Faker.Food.En.measurement() - "cup" """ @spec measurement() :: String.t() sampler(:measurement, ["teaspoon", "tablespoon", "cup", "pint", "quart", "gallon"]) @@ -625,14 +601,8 @@ defmodule Faker.Food.En do ## Examples - iex> Faker.Food.En.measurement_size() - "1/4" - iex> Faker.Food.En.measurement_size() - "3" iex> Faker.Food.En.measurement_size() "1" - iex> Faker.Food.En.measurement_size() - "1/2" """ @spec measurement_size() :: String.t() sampler(:measurement_size, ["1/4", "1/3", "1/2", "1", "2", "3"]) @@ -644,12 +614,6 @@ defmodule Faker.Food.En do iex> Faker.Food.En.metric_measurement() "centiliter" - iex> Faker.Food.En.metric_measurement() - "deciliter" - iex> Faker.Food.En.metric_measurement() - "liter" - iex> Faker.Food.En.metric_measurement() - "milliliter" """ @spec metric_measurement() :: String.t() sampler(:metric_measurement, ["milliliter", "deciliter", "centiliter", "liter"]) @@ -660,13 +624,7 @@ defmodule Faker.Food.En do ## Examples iex> Faker.Food.En.spice() - "Garlic Salt" - iex> Faker.Food.En.spice() - "Ras-el-Hanout" - iex> Faker.Food.En.spice() - "Curry Hot" - iex> Faker.Food.En.spice() - "Peppercorns Mixed" + "Curry Mild" """ @spec spice() :: String.t() sampler(:spice, [ @@ -862,12 +820,6 @@ defmodule Faker.Food.En do iex> Faker.Food.En.sushi() "Whitespotted conger" - iex> Faker.Food.En.sushi() - "Japanese horse mackerel" - iex> Faker.Food.En.sushi() - "Salmon" - iex> Faker.Food.En.sushi() - "Octopus" """ @spec sushi() :: String.t() sampler(:sushi, [ diff --git a/lib/faker/food/hy.ex b/lib/faker/food/hy.ex index 943ca492d..b41268e19 100644 --- a/lib/faker/food/hy.ex +++ b/lib/faker/food/hy.ex @@ -12,12 +12,6 @@ defmodule Faker.Food.Hy do iex> Faker.Food.Hy.dish() "ձու շոտլանդական ձևով" - iex> Faker.Food.Hy.dish() - "պիցցա" - iex> Faker.Food.Hy.dish() - "խորոված կողիկներ" - iex> Faker.Food.Hy.dish() - "սաղմոն նիգիրի" """ @spec dish() :: String.t() sampler(:dish, [ @@ -64,13 +58,7 @@ defmodule Faker.Food.Hy do ## Examples iex> Faker.Food.Hy.description() - "Տապակած հավ վաֆլիների հետ: Մատուցվում է թխկիի օշարակով:" - iex> Faker.Food.Hy.description() - "Երեք ձվի օմլետ ռոքֆոր պանրով, մանր սոխ և խոզապուխտ: Կողքը ավելացրեք խորոված կարտոֆիլ և ֆրանսիական տոստ:" - iex> Faker.Food.Hy.description() - "Ապխտած սաղմոն, խոզապուխտով ձու, կարմիր սոխ և լոլիկի սոուս բուլկիի վրա: Կողքը ավելացրեք խորոված կարտոֆիլ:" - iex> Faker.Food.Hy.description() - "Երեք ձու, համեմ, լոլիկ, սոխ, ավոկադո և հալած պանիր: Կողքը ավելացրեք խորոված կարտոֆիլ և ֆրանսիական տոստ:" + "Թարմ նորվեգական սաղմոն, թեթևորեն խառնված մանանեխի սոուսով: Մատուցվում է բրնձի և խաշած բանջարեղենի հետ:" """ @spec description() :: String.t() sampler(:description, [ @@ -90,13 +78,7 @@ defmodule Faker.Food.Hy do ## Examples iex> Faker.Food.Hy.ingredient() - "ոսպ" - iex> Faker.Food.Hy.ingredient() - "մշկընկույզ" - iex> Faker.Food.Hy.ingredient() - "ընկույզ" - iex> Faker.Food.Hy.ingredient() - "սամիթ" + "եգիպտացորենի ձեթ" """ @spec ingredient() :: String.t() sampler(:ingredient, [ @@ -283,14 +265,8 @@ defmodule Faker.Food.Hy do ## Examples - iex> Faker.Food.Hy.measurement() - "թեյի գդալ" - iex> Faker.Food.Hy.measurement() - "գալոն" iex> Faker.Food.Hy.measurement() "պինտա" - iex> Faker.Food.Hy.measurement() - "բաժակ" """ @spec measurement() :: String.t() sampler(:measurement, ["թեյի գդալ", "ճաշի գդալ", "բաժակ", "պինտա", "կվարտա", "գալոն"]) @@ -300,14 +276,8 @@ defmodule Faker.Food.Hy do ## Examples - iex> Faker.Food.Hy.measurement_size() - "1/4" - iex> Faker.Food.Hy.measurement_size() - "3" iex> Faker.Food.Hy.measurement_size() "1" - iex> Faker.Food.Hy.measurement_size() - "1/2" """ @spec measurement_size() :: String.t() sampler(:measurement_size, ["1/4", "1/3", "1/2", "1", "2", "3"]) @@ -317,14 +287,8 @@ defmodule Faker.Food.Hy do ## Examples - iex> Faker.Food.Hy.metric_measurement() - "սանտիլիտր" - iex> Faker.Food.Hy.metric_measurement() - "դեցիլիտր" iex> Faker.Food.Hy.metric_measurement() "լիտր" - iex> Faker.Food.Hy.metric_measurement() - "միլիլիտր" """ @spec metric_measurement() :: String.t() sampler(:metric_measurement, ["միլիլիտր", "դեցիլիտր", "սանտիլիտր", "լիտր"]) @@ -335,13 +299,7 @@ defmodule Faker.Food.Hy do ## Examples iex> Faker.Food.Hy.spice() - "կայնեյան պղպեղ" - iex> Faker.Food.Hy.spice() - "պիրի պիրի համեմունք" - iex> Faker.Food.Hy.spice() - "կարամ մասալա" - iex> Faker.Food.Hy.spice() - "մանանեխ" + "կոճապղպեղ" """ @spec spice() :: String.t() sampler(:spice, [ diff --git a/lib/faker/food/pt_br.ex b/lib/faker/food/pt_br.ex index 95f8d5a50..f188457d6 100644 --- a/lib/faker/food/pt_br.ex +++ b/lib/faker/food/pt_br.ex @@ -12,12 +12,6 @@ defmodule Faker.Food.PtBr do iex> Faker.Food.PtBr.dish() "Asinha de frango" - iex> Faker.Food.PtBr.dish() - "Pizza" - iex> Faker.Food.PtBr.dish() - "Salada Caprese" - iex> Faker.Food.PtBr.dish() - "Peixe frito e batata frita" """ @spec dish() :: String.t() sampler(:dish, [ @@ -54,12 +48,6 @@ defmodule Faker.Food.PtBr do iex> Faker.Food.PtBr.description() "Três ovos com coentro, tomate, cebola, abacate e queijo derretido. Acompanhado com torradas ou croissant." - iex> Faker.Food.PtBr.description() - "Três claras de ovos com espinafre, cogumelos, cebola caramelizada, tomate e queijo com baixo teor de gordura. Acompanhado de torradas integrais." - iex> Faker.Food.PtBr.description() - "Três ovos com coentro, tomate, cebola, abacate e queijo derretido. Acompanhado com torradas ou croissant." - iex> Faker.Food.PtBr.description() - "Três claras de ovos com espinafre, cogumelos, cebola caramelizada, tomate e queijo com baixo teor de gordura. Acompanhado de torradas integrais." """ @spec description() :: String.t() sampler(:description, [ @@ -75,12 +63,6 @@ defmodule Faker.Food.PtBr do iex> Faker.Food.PtBr.ingredient() "Avelã" - iex> Faker.Food.PtBr.ingredient() - "Pepino" - iex> Faker.Food.PtBr.ingredient() - "Polenta" - iex> Faker.Food.PtBr.ingredient() - "Vinagre Balsâmico" """ @spec ingredient() :: String.t() sampler(:ingredient, [ @@ -349,13 +331,7 @@ defmodule Faker.Food.PtBr do ## Examples iex> Faker.Food.PtBr.measurement() - "Colher de Chá" - iex> Faker.Food.PtBr.measurement() - "Colher de Sopa" - iex> Faker.Food.PtBr.measurement() - "Colher de Chá" - iex> Faker.Food.PtBr.measurement() - "Litro" + "Xícara" """ @spec measurement() :: String.t() sampler(:measurement, ["Colher de Chá", "Colher de Sopa", "Copo Americano", "Xícara", "Litro"]) @@ -366,13 +342,7 @@ defmodule Faker.Food.PtBr do ## Examples iex> Faker.Food.PtBr.measurement_size() - "3" - iex> Faker.Food.PtBr.measurement_size() - "1/3" - iex> Faker.Food.PtBr.measurement_size() - "Pitada" - iex> Faker.Food.PtBr.measurement_size() - "2" + "1/2" """ @spec measurement_size() :: String.t() sampler(:measurement_size, ["Pitada", "1/4", "1/3", "1/2", "1", "2", "3"]) @@ -384,12 +354,6 @@ defmodule Faker.Food.PtBr do iex> Faker.Food.PtBr.metric_measurement() "centilitro" - iex> Faker.Food.PtBr.metric_measurement() - "decilitro" - iex> Faker.Food.PtBr.metric_measurement() - "litro" - iex> Faker.Food.PtBr.metric_measurement() - "mililitro" """ @spec metric_measurement() :: String.t() sampler(:metric_measurement, ["mililitro", "decilitro", "centilitro", "litro"]) @@ -401,12 +365,6 @@ defmodule Faker.Food.PtBr do iex> Faker.Food.PtBr.spice() "Açafrão" - iex> Faker.Food.PtBr.spice() - "Chili" - iex> Faker.Food.PtBr.spice() - "Alecrim" - iex> Faker.Food.PtBr.spice() - "Sal do mar grosso" """ @spec spice() :: String.t() sampler(:spice, [ diff --git a/lib/faker/gov/us.ex b/lib/faker/gov/us.ex index 530720043..44ea0715a 100644 --- a/lib/faker/gov/us.ex +++ b/lib/faker/gov/us.ex @@ -39,12 +39,6 @@ defmodule Faker.Gov.Us do iex> Faker.Gov.Us.ein() "04-0389586" - iex> Faker.Gov.Us.ein() - "07-8027034" - iex> Faker.Gov.Us.ein() - "41-6859447" - iex> Faker.Gov.Us.ein() - "83-6106581" """ @spec ein() :: String.t() def ein do diff --git a/lib/faker/industry.ex b/lib/faker/industry.ex index 784dd1547..da5973eba 100644 --- a/lib/faker/industry.ex +++ b/lib/faker/industry.ex @@ -30,12 +30,6 @@ defmodule Faker.Industry do iex> Faker.Industry.super_sector() "Automobiles & Parts" - iex> Faker.Industry.super_sector() - "Banks" - iex> Faker.Industry.super_sector() - "Automobiles & Parts" - iex> Faker.Industry.super_sector() - "Health Care" """ @spec super_sector() :: String.t() localize(:super_sector) @@ -47,12 +41,6 @@ defmodule Faker.Industry do iex> Faker.Industry.sector() "Food & Drug Retailers" - iex> Faker.Industry.sector() - "Banks" - iex> Faker.Industry.sector() - "Software & Computer Services" - iex> Faker.Industry.sector() - "Media" """ @spec sector() :: String.t() localize(:sector) @@ -64,12 +52,6 @@ defmodule Faker.Industry do iex> Faker.Industry.sub_sector() "Electrical Components & Equipment" - iex> Faker.Industry.sub_sector() - "Publishing" - iex> Faker.Industry.sub_sector() - "Alternative Electricity" - iex> Faker.Industry.sub_sector() - "Forestry" """ @spec sub_sector() :: String.t() localize(:sub_sector) diff --git a/lib/faker/industry/en.ex b/lib/faker/industry/en.ex index 982afd32a..293cc5c1f 100644 --- a/lib/faker/industry/en.ex +++ b/lib/faker/industry/en.ex @@ -136,12 +136,6 @@ defmodule Faker.Industry.En do iex> Faker.Industry.En.sub_sector() "Electrical Components & Equipment" - iex> Faker.Industry.En.sub_sector() - "Publishing" - iex> Faker.Industry.En.sub_sector() - "Alternative Electricity" - iex> Faker.Industry.En.sub_sector() - "Forestry" """ @spec sub_sector() :: String.t() sampler(:sub_sector, [ diff --git a/lib/faker/internet.ex b/lib/faker/internet.ex index 81fea2368..dfdd0d663 100644 --- a/lib/faker/internet.ex +++ b/lib/faker/internet.ex @@ -17,12 +17,6 @@ defmodule Faker.Internet do iex> Faker.Internet.domain_name() "blick.org" - iex> Faker.Internet.domain_name() - "schumm.info" - iex> Faker.Internet.domain_name() - "sipes.com" - iex> Faker.Internet.domain_name() - "hane.info" """ @spec domain_name() :: String.t() def domain_name do @@ -36,12 +30,6 @@ defmodule Faker.Internet do iex> Faker.Internet.domain_suffix() "com" - iex> Faker.Internet.domain_suffix() - "org" - iex> Faker.Internet.domain_suffix() - "name" - iex> Faker.Internet.domain_suffix() - "info" """ @spec domain_suffix() :: String.t() localize(:domain_suffix) @@ -53,12 +41,6 @@ defmodule Faker.Internet do iex> Faker.Internet.user_name() "elizabeth2056" - iex> Faker.Internet.user_name() - "reese1921" - iex> Faker.Internet.user_name() - "aniya1972" - iex> Faker.Internet.user_name() - "bianka2054" """ @spec user_name() :: String.t() def user_name, do: user_name(Faker.random_between(0, 1)) @@ -81,12 +63,6 @@ defmodule Faker.Internet do iex> Faker.Internet.domain_word() "blick" - iex> Faker.Internet.domain_word() - "hayes" - iex> Faker.Internet.domain_word() - "schumm" - iex> Faker.Internet.domain_word() - "rolfson" """ @spec domain_word() :: String.t() def domain_word do @@ -100,12 +76,6 @@ defmodule Faker.Internet do iex> Faker.Internet.email() "elizabeth2056@rolfson.net" - iex> Faker.Internet.email() - "conor2058@schiller.com" - iex> Faker.Internet.email() - "frederique2063@metz.name" - iex> Faker.Internet.email() - "jana2042@price.biz" """ @spec email() :: String.t() def email do @@ -119,12 +89,6 @@ defmodule Faker.Internet do iex> Faker.Internet.free_email() "elizabeth2056@hotmail.com" - iex> Faker.Internet.free_email() - "trycia1982@hotmail.com" - iex> Faker.Internet.free_email() - "delphine_hartmann@yahoo.com" - iex> Faker.Internet.free_email() - "mitchel_rutherford@yahoo.com" """ @spec free_email() :: String.t() def free_email do @@ -138,12 +102,6 @@ defmodule Faker.Internet do iex> Faker.Internet.safe_email() "elizabeth2056@example.net" - iex> Faker.Internet.safe_email() - "trycia1982@example.net" - iex> Faker.Internet.safe_email() - "delphine_hartmann@example.com" - iex> Faker.Internet.safe_email() - "mitchel_rutherford@example.com" """ @spec safe_email() :: String.t() def safe_email do @@ -157,12 +115,6 @@ defmodule Faker.Internet do iex> Faker.Internet.free_email_service() "gmail.com" - iex> Faker.Internet.free_email_service() - "hotmail.com" - iex> Faker.Internet.free_email_service() - "gmail.com" - iex> Faker.Internet.free_email_service() - "hotmail.com" """ @spec free_email_service() :: String.t() localize(:free_email_service) @@ -174,12 +126,6 @@ defmodule Faker.Internet do iex> Faker.Internet.url() "http://hayes.name" - iex> Faker.Internet.url() - "http://sipes.com" - iex> Faker.Internet.url() - "http://padberg.name" - iex> Faker.Internet.url() - "http://hartmann.biz" """ @spec url() :: String.t() def url, do: url(Faker.random_between(0, 1)) @@ -194,12 +140,6 @@ defmodule Faker.Internet do iex> Faker.Internet.image_url() "https://placekitten.com/131/131" - iex> Faker.Internet.image_url() - "https://placekitten.com/554/554" - iex> Faker.Internet.image_url() - "https://picsum.photos/936" - iex> Faker.Internet.image_url() - "https://picsum.photos/541" """ @spec image_url() :: String.t() def image_url, do: image_url(Faker.random_between(0, 2)) @@ -226,12 +166,6 @@ defmodule Faker.Internet do iex> Faker.Internet.ip_v4_address() "214.217.139.136" - iex> Faker.Internet.ip_v4_address() - "200.102.244.150" - iex> Faker.Internet.ip_v4_address() - "219.212.222.123" - iex> Faker.Internet.ip_v4_address() - "164.141.15.82" """ @spec ip_v4_address() :: String.t() def ip_v4_address do @@ -247,12 +181,6 @@ defmodule Faker.Internet do iex> Faker.Internet.ip_v6_address() "A2D6:F5D9:BD8B:C588:0DC8:9566:43F4:B196" - iex> Faker.Internet.ip_v6_address() - "05DB:FAD4:88DE:397B:75A4:A98D:DF0F:1F52" - iex> Faker.Internet.ip_v6_address() - "6229:4EFA:2F7B:FEF9:EB07:0128:85B2:DC72" - iex> Faker.Internet.ip_v6_address() - "E867:34BC:715B:FB7C:7E96:AF4F:C733:A82D" """ @spec ip_v6_address() :: String.t() def ip_v6_address do @@ -270,12 +198,6 @@ defmodule Faker.Internet do iex> Faker.Internet.mac_address() "d6:d9:8b:88:c8:66" - iex> Faker.Internet.mac_address() - "f4:96:db:d4:de:7b" - iex> Faker.Internet.mac_address() - "a4:8d:0f:52:29:fa" - iex> Faker.Internet.mac_address() - "7b:f9:07:28:b2:72" """ @spec mac_address() :: String.t() def mac_address do @@ -313,7 +235,7 @@ defmodule Faker.Internet do @spec slug([String.t()], [String.t()]) :: String.t() def slug(words, glue) do words - |> Enum.take_random(length(words)) + |> Faker.shuffle() |> Enum.join(pick(glue)) |> String.downcase() end diff --git a/lib/faker/internet/en.ex b/lib/faker/internet/en.ex index 673245e54..80c58ed8a 100644 --- a/lib/faker/internet/en.ex +++ b/lib/faker/internet/en.ex @@ -12,12 +12,6 @@ defmodule Faker.Internet.En do iex> Faker.Internet.En.free_email_service() "gmail.com" - iex> Faker.Internet.En.free_email_service() - "hotmail.com" - iex> Faker.Internet.En.free_email_service() - "gmail.com" - iex> Faker.Internet.En.free_email_service() - "hotmail.com" """ @spec free_email_service() :: String sampler(:free_email_service, ["gmail.com", "yahoo.com", "hotmail.com"]) @@ -29,12 +23,6 @@ defmodule Faker.Internet.En do iex> Faker.Internet.En.domain_suffix() "com" - iex> Faker.Internet.En.domain_suffix() - "org" - iex> Faker.Internet.En.domain_suffix() - "name" - iex> Faker.Internet.En.domain_suffix() - "info" """ @spec domain_suffix() :: String.t() sampler(:domain_suffix, ["com", "biz", "info", "name", "net", "org"]) diff --git a/lib/faker/internet/es.ex b/lib/faker/internet/es.ex index 3d95ef6ee..77759f1ac 100644 --- a/lib/faker/internet/es.ex +++ b/lib/faker/internet/es.ex @@ -12,12 +12,6 @@ defmodule Faker.Internet.Es do iex> Faker.Internet.Es.free_email_service() "gmail.com" - iex> Faker.Internet.Es.free_email_service() - "hotmail.com" - iex> Faker.Internet.Es.free_email_service() - "gmail.com" - iex> Faker.Internet.Es.free_email_service() - "hotmail.com" """ @spec free_email_service() :: String sampler(:free_email_service, ["gmail.com", "yahoo.com", "hotmail.com"]) @@ -29,12 +23,6 @@ defmodule Faker.Internet.Es do iex> Faker.Internet.Es.domain_suffix() "com" - iex> Faker.Internet.Es.domain_suffix() - "es" - iex> Faker.Internet.Es.domain_suffix() - "com" - iex> Faker.Internet.Es.domain_suffix() - "org" """ @spec domain_suffix() :: String.t() sampler(:domain_suffix, ["com", "es", "info", "com.es", "org"]) diff --git a/lib/faker/internet/hy.ex b/lib/faker/internet/hy.ex index 4d4f4cf63..96fbf438f 100644 --- a/lib/faker/internet/hy.ex +++ b/lib/faker/internet/hy.ex @@ -12,12 +12,6 @@ defmodule Faker.Internet.Hy do iex> Faker.Internet.Hy.free_email_service() "hotmail.com" - iex> Faker.Internet.Hy.free_email_service() - "yandex.ru" - iex> Faker.Internet.Hy.free_email_service() - "freenet.am" - iex> Faker.Internet.Hy.free_email_service() - "yahoo.com" """ @spec free_email_service() :: String sampler(:free_email_service, [ @@ -37,12 +31,6 @@ defmodule Faker.Internet.Hy do iex> Faker.Internet.Hy.domain_suffix() "am" - iex> Faker.Internet.Hy.domain_suffix() - "com" - iex> Faker.Internet.Hy.domain_suffix() - "am" - iex> Faker.Internet.Hy.domain_suffix() - "org" """ @spec domain_suffix() :: String.t() sampler(:domain_suffix, ["am", "com", "info", "net", "org"]) diff --git a/lib/faker/internet/it.ex b/lib/faker/internet/it.ex index ce114f43b..67627ed92 100644 --- a/lib/faker/internet/it.ex +++ b/lib/faker/internet/it.ex @@ -12,12 +12,6 @@ defmodule Faker.Internet.It do iex> Faker.Internet.It.free_email_service() "virgilio.it" - iex> Faker.Internet.It.free_email_service() - "yahoo.it" - iex> Faker.Internet.It.free_email_service() - "aruba.it" - iex> Faker.Internet.It.free_email_service() - "gmail.com" """ @spec free_email_service() :: String.t() sampler(:free_email_service, [ @@ -38,12 +32,6 @@ defmodule Faker.Internet.It do iex> Faker.Internet.It.domain_suffix() "com" - iex> Faker.Internet.It.domain_suffix() - "it" - iex> Faker.Internet.It.domain_suffix() - "com" - iex> Faker.Internet.It.domain_suffix() - "biz" """ @spec domain_suffix() :: String.t() sampler(:domain_suffix, ["com", "it", "info", "org", "biz"]) diff --git a/lib/faker/internet/pt_br.ex b/lib/faker/internet/pt_br.ex index 6f8b30496..0e075440d 100644 --- a/lib/faker/internet/pt_br.ex +++ b/lib/faker/internet/pt_br.ex @@ -12,12 +12,6 @@ defmodule Faker.Internet.PtBr do iex> Faker.Internet.PtBr.free_email_service() "gmail.com" - iex> Faker.Internet.PtBr.free_email_service() - "yahoo.com" - iex> Faker.Internet.PtBr.free_email_service() - "gmail.com" - iex> Faker.Internet.PtBr.free_email_service() - "bol.com.br" """ @spec free_email_service() :: String sampler(:free_email_service, ["gmail.com", "yahoo.com", "hotmail.com", "live.com", "bol.com.br"]) @@ -29,12 +23,6 @@ defmodule Faker.Internet.PtBr do iex> Faker.Internet.PtBr.domain_suffix() "br" - iex> Faker.Internet.PtBr.domain_suffix() - "org" - iex> Faker.Internet.PtBr.domain_suffix() - "name" - iex> Faker.Internet.PtBr.domain_suffix() - "info" """ @spec domain_suffix() :: String.t() sampler(:domain_suffix, ["br", "biz", "info", "name", "net", "org"]) diff --git a/lib/faker/internet/status_code.ex b/lib/faker/internet/status_code.ex index acd9459e6..9ab21fcaa 100644 --- a/lib/faker/internet/status_code.ex +++ b/lib/faker/internet/status_code.ex @@ -10,14 +10,8 @@ defmodule Faker.Internet.StatusCode do ## Examples - iex> Faker.Internet.StatusCode.information() - 102 - iex> Faker.Internet.StatusCode.information() - 101 iex> Faker.Internet.StatusCode.information() 103 - iex> Faker.Internet.StatusCode.information() - 100 """ @spec information :: 100..103 sampler(:information, [100, 101, 102, 103]) diff --git a/lib/faker/internet/user_agent.ex b/lib/faker/internet/user_agent.ex index 32edeeea8..aa47ae4a9 100644 --- a/lib/faker/internet/user_agent.ex +++ b/lib/faker/internet/user_agent.ex @@ -11,14 +11,8 @@ defmodule Faker.Internet.UserAgent do ## Examples - iex> Faker.Internet.UserAgent.bot_user_agent() - "Mozilla/5.0 (compatible; Yahoo! Slurp; http://help.yahoo.com/help/us/ysearch/slurp)" - iex> Faker.Internet.UserAgent.bot_user_agent() - "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)" iex> Faker.Internet.UserAgent.bot_user_agent() "Mozilla/5.0 (compatible; YandexBot/3.0; +http://yandex.com/bots)" - iex> Faker.Internet.UserAgent.bot_user_agent() - "Mozilla/5.0 (compatible; bingbot/2.0; +http://www.bing.com/bingbot.htm)" """ @spec bot_user_agent() :: String.t() sampler(:bot_user_agent, [ @@ -58,12 +52,6 @@ defmodule Faker.Internet.UserAgent do iex> Faker.Internet.UserAgent.ereader_user_agent() "Mozilla/5.0 (X11; U; Linux armv7l like Android; en-us) AppleWebKit/531.2+ (KHTML, like Gecko) Version/5.0 Safari/533.2+ Kindle/3.0+" - iex> Faker.Internet.UserAgent.ereader_user_agent() - "Mozilla/5.0 (Linux; U; en-US) AppleWebKit/528.5+ (KHTML, like Gecko, Safari/528.5+) Version/4.0 Kindle/3.0 (screen 600x800; rotate)" - iex> Faker.Internet.UserAgent.ereader_user_agent() - "Mozilla/5.0 (Linux; U; en-US) AppleWebKit/528.5+ (KHTML, like Gecko, Safari/528.5+) Version/4.0 Kindle/3.0 (screen 600x800; rotate)" - iex> Faker.Internet.UserAgent.ereader_user_agent() - "Mozilla/5.0 (X11; U; Linux armv7l like Android; en-us) AppleWebKit/531.2+ (KHTML, like Gecko) Version/5.0 Safari/533.2+ Kindle/3.0+" """ @spec ereader_user_agent() :: String.t() sampler(:ereader_user_agent, [ @@ -100,13 +88,7 @@ defmodule Faker.Internet.UserAgent do ## Examples iex> Faker.Internet.UserAgent.set_top_user_agent() - "Mozilla/5.0 (CrKey armv7l 1.5.16041) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/31.0.1650.0 Safari/537.36" - iex> Faker.Internet.UserAgent.set_top_user_agent() - "Mozilla/5.0 (Linux; U; Android 4.2.2; he-il; NEO-X5-116A Build/JDQ39) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 Safari/534.30" - iex> Faker.Internet.UserAgent.set_top_user_agent() - "Mozilla/5.0 (CrKey armv7l 1.5.16041) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/31.0.1650.0 Safari/537.36" - iex> Faker.Internet.UserAgent.set_top_user_agent() - "AppleTV5,3/9.1.1" + "Dalvik/2.1.0 (Linux; U; Android 6.0.1; Nexus Player Build/MMB29T)" """ @spec set_top_user_agent() :: String.t() sampler(:set_top_user_agent, [ @@ -122,14 +104,8 @@ defmodule Faker.Internet.UserAgent do ## Examples - iex> Faker.Internet.UserAgent.tablet_user_agent() - "Mozilla/5.0 (Linux; Android 7.0; Pixel C Build/NRD90M; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/52.0.2743.98 Safari/537.36" - iex> Faker.Internet.UserAgent.tablet_user_agent() - "Mozilla/5.0 (Linux; Android 5.0.2; LG-V410/V41020c Build/LRX22G) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/34.0.1847.118 Safari/537.36" iex> Faker.Internet.UserAgent.tablet_user_agent() "Mozilla/5.0 (Linux; Android 5.0.2; SAMSUNG SM-T550 Build/LRX22G) AppleWebKit/537.36 (KHTML, like Gecko) SamsungBrowser/3.3 Chrome/38.0.2125.102 Safari/537.36" - iex> Faker.Internet.UserAgent.tablet_user_agent() - "Mozilla/5.0 (Linux; Android 5.1.1; SHIELD Tablet Build/LMY48C) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.98 Safari/537.36" """ @spec tablet_user_agent() :: String.t() sampler(:tablet_user_agent, [ @@ -146,14 +122,8 @@ defmodule Faker.Internet.UserAgent do ## Examples - iex> Faker.Internet.UserAgent.mobile_user_agent() - "Mozilla/5.0 (Linux; Android 6.0.1; SM-G920V Build/MMB29K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.98 Mobile Safari/537.36" - iex> Faker.Internet.UserAgent.mobile_user_agent() - "Mozilla/5.0 (Linux; Android 6.0; HTC One M9 Build/MRA58K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.98 Mobile Safari/537.36" iex> Faker.Internet.UserAgent.mobile_user_agent() "Mozilla/5.0 (Linux; Android 6.0.1; Nexus 6P Build/MMB29P) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.83 Mobile Safari/537.36" - iex> Faker.Internet.UserAgent.mobile_user_agent() - "Mozilla/5.0 (Windows Phone 10.0; Android 4.2.1; Microsoft; Lumia 950) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2486.0 Mobile Safari/537.36 Edge/13.10586" """ @spec mobile_user_agent() :: String.t() sampler(:mobile_user_agent, [ diff --git a/lib/faker/lorem.ex b/lib/faker/lorem.ex index ea5ab072f..3947bef9c 100644 --- a/lib/faker/lorem.ex +++ b/lib/faker/lorem.ex @@ -286,12 +286,15 @@ defmodule Faker.Lorem do iex> Faker.Lorem.characters() ~c'ppkQqaIfGqxsjFoNITNnu6eXyJicLJNth88PrhGDhwp4LNQMt5pCFh7XGEZUiBOjqwcnSUTH94vu8a9XKUwNAs48lHzPITbFXSfTS0pHfBSmHkbj9kOsd7qRuGeXKTgCgI1idI3uwENwTqc' + iex> Faker.Lorem.characters(3..5) - ~c'EFbv' + ~c'5LR' + iex> Faker.Lorem.characters(2) - ~c'vx' + ~c'8O' + iex> Faker.Lorem.characters(7) - ~c'jycADSd' + ~c'8OUdXz7' """ @spec characters(integer | Range.t()) :: [char] def characters(range_or_length \\ 15..255) @@ -321,13 +324,16 @@ defmodule Faker.Lorem do ## Examples iex> Faker.Lorem.paragraph() - "Deleniti consequatur et qui vitae et. Sit aut expedita cumque est necessitatibus beatae ex sunt! Soluta asperiores qui vitae animi et id et vitae. Quisquam corporis quisquam ab harum!" + "Dolor accusantium ipsam vero et non quidem. Laborum repellat aliquam animi recusandae dolorum in aut atque quas. Qui hic eum deserunt quam neque distinctio officiis veritatis? Aut enim rerum architecto quia ut velit. Dolore iure ut ex debitis odio?" + iex> Faker.Lorem.paragraph(1..2) - "Numquam maxime ut aut inventore eius rerum beatae. Qui officia vel quaerat expedita." + "Amet aperiam quia et odio eius facilis libero eveniet." + iex> Faker.Lorem.paragraph(1) - "Perspiciatis rerum nam repellendus inventore nihil." + "Adipisci ipsa sit officiis ducimus tempora et." + iex> Faker.Lorem.paragraph(2) - "Sequi ducimus qui voluptates magni quisquam sed odio. Vel error non impedit tempora minus." + "Adipisci ipsa sit officiis ducimus tempora et. Et vero enim et hic quidem!" """ @spec paragraph(integer | Range.t()) :: String.t() def paragraph(range \\ 2..5) @@ -353,13 +359,16 @@ defmodule Faker.Lorem do ## Examples iex> Faker.Lorem.paragraphs() - ["Consequatur et qui vitae? Et sit aut expedita cumque est necessitatibus beatae ex. Possimus soluta asperiores qui vitae.", "Et vitae vitae ut quisquam corporis quisquam ab harum ipsa. Numquam maxime ut aut inventore eius rerum beatae. Qui officia vel quaerat expedita. Perspiciatis rerum nam repellendus inventore nihil. Sequi ducimus qui voluptates magni quisquam sed odio.", "Error non impedit tempora minus voluptatem qui fugit. Ab consectetur harum earum possimus. Provident quisquam modi accusantium eligendi numquam illo voluptas. Est non id quibusdam qui omnis?", "Dicta dolores at ut delectus magni atque eos beatae nulla. Laudantium qui dolorem pariatur voluptatibus sed et enim?"] + ["Neque aut ullam voluptas esse adipisci? Sunt mollitia voluptatibus labore qui sint id eum? Quod quam odio aut recusandae consequatur in ea. Aspernatur mollitia repellat eligendi temporibus aliquam accusamus inventore? Aut quo ut incidunt quis tenetur laboriosam eos.", "Ea nam eos voluptate maxime minus. Quia aperiam debitis maiores expedita fugit quibusdam odio saepe. Et et quasi reprehenderit.", "Ipsa soluta repellat ut neque illum dolor. Voluptas sint numquam occaecati. Quidem architecto quisquam quia ad possimus reprehenderit. Debitis reiciendis numquam aut eos dolores porro!", "Tempore quas eveniet nostrum explicabo aliquam sit ut iste ipsum! Perferendis consequatur velit natus distinctio! Qui et esse modi architecto quaerat tempora suscipit explicabo facere.", "Iste aut ipsum dolor qui fugit illo. Eius consequatur nulla natus molestias tempore quidem dolor autem. Id aspernatur vel quia sit consequuntur."] iex> Faker.Lorem.paragraphs(2..3) - ["Voluptate reiciendis repellat et praesentium quia sed nemo. Vero repellat cumque nihil similique repudiandae corrupti rerum? Accusamus suscipit perspiciatis cum et sint dolore et ut. Eos reprehenderit cupiditate omnis et doloremque omnis.", "Quo et est culpa eum ex et veniam aut aut! Labore fuga tenetur alias est provident?", "Illo consequatur maiores illum et quia culpa sunt! Cumque porro ut eum porro est id maxime dolorum animi. Deserunt ipsa consequuntur eveniet asperiores. Quia numquam voluptas vitae repellat tempore."] + ["Qui explicabo optio ut amet doloremque? Et tenetur voluptatem ullam cupiditate aliquam optio unde et.", "Accusantium cumque consequatur aliquid rerum ut dicta explicabo. Itaque illum autem distinctio dolor. Voluptate asperiores amet adipisci quis qui soluta similique. Soluta eum fugiat voluptas quo voluptates?", "Quas velit numquam ducimus quam quidem ut cupiditate placeat. Earum corporis voluptate nisi veritatis vel cum eaque? Eaque inventore ut ut reiciendis? Culpa numquam veritatis qui reiciendis alias repudiandae debitis et? Voluptatem quis reprehenderit aperiam fugit."] iex> Faker.Lorem.paragraphs(1) - ["Voluptas harum modi omnis quam dolor a aliquam officiis. Neque voluptas consequatur sed cupiditate dolorum pariatur et."] + ["Eos et necessitatibus et rerum sit voluptatem quae! Totam a in voluptas ducimus consequuntur. Consequatur neque dolore sunt provident a tenetur id corrupti. Atque rerum illum ut et. Dolorum quia sunt atque quo corporis."] iex> Faker.Lorem.paragraphs(2) - ["Voluptatem natus amet eius eos non dolorum quaerat dolores pariatur. Aliquam rerum ab voluptatem exercitationem nobis enim delectus tempore eos. Ex enim dolore ut consequuntur eaque expedita dicta eius totam. A eveniet ab magni rerum enim consequatur.", "Nihil laudantium ea veniam necessitatibus qui. Minus ad omnis quaerat quidem impedit sint. Id ut repellat qui repudiandae!"] + [ + "Facilis natus sint sapiente? Omnis porro quas totam dolore. Nihil ut sed ut voluptas dolor sint vel eaque quibusdam!", + "Dolorem nemo et sed et. Praesentium debitis voluptatum aspernatur cum voluptatem optio? Voluptatibus sint eaque quia suscipit voluptas in? Ullam ex qui libero eum rerum quae maxime aut!" + ] """ @spec paragraphs(integer | Range.t()) :: list(String.t()) def paragraphs(range \\ 2..5) @@ -389,13 +398,9 @@ defmodule Faker.Lorem do ## Examples iex> Faker.Lorem.sentence() - "Sint deleniti consequatur et qui vitae et quibusdam et sit." + "Adipisci ipsa sit officiis ducimus tempora et." iex> Faker.Lorem.sentence(2..3) - "Cumque est?" - iex> Faker.Lorem.sentence(3) - "Beatae ex sunt." - iex> Faker.Lorem.sentence(5) - "Possimus soluta asperiores qui vitae." + "Est debitis nostrum." """ @spec sentence(integer | Range.t()) :: String.t() def sentence(range \\ 4..10) @@ -417,13 +422,13 @@ defmodule Faker.Lorem do ## Examples iex> Faker.Lorem.sentence(7, "...") - "Aliquam ut sint deleniti consequatur et qui..." + "Et sunt vel et dolores ad cumque..." iex> Faker.Lorem.sentence(1, "?") - "Vitae?" + "Est?" iex> Faker.Lorem.sentence(5, ".") - "Et quibusdam et sit aut." + "Tenetur consequatur illo ut quae." iex> Faker.Lorem.sentence(3, ";") - "Expedita cumque est;" + "Excepturi sint mollitia;" """ @spec sentence(integer, binary) :: String.t() def sentence(num, mark) when is_integer(num) and is_binary(mark) do @@ -447,13 +452,18 @@ defmodule Faker.Lorem do ## Examples iex> Faker.Lorem.sentences() - ["Deleniti consequatur et qui vitae et.", "Sit aut expedita cumque est necessitatibus beatae ex sunt!", "Soluta asperiores qui vitae animi et id et vitae.", "Quisquam corporis quisquam ab harum!"] + ["Dolor accusantium ipsam vero et non quidem.", "Laborum repellat aliquam animi recusandae dolorum in aut atque quas.", "Qui hic eum deserunt quam neque distinctio officiis veritatis?", "Aut enim rerum architecto quia ut velit.", "Dolore iure ut ex debitis odio?"] iex> Faker.Lorem.sentences(3..4) - ["Numquam maxime ut aut inventore eius rerum beatae.", "Qui officia vel quaerat expedita.", "Perspiciatis rerum nam repellendus inventore nihil.", "Sequi ducimus qui voluptates magni quisquam sed odio."] + ["Est neque et assumenda possimus qui odit?", "Ut consequatur aut eos qui laudantium sint quas officiis qui.", "Esse magni assumenda temporibus dicta magnam et accusamus reiciendis et."] iex> Faker.Lorem.sentences(4) - ["Vel error non impedit tempora minus.", "Fugit cupiditate fuga ab consectetur harum earum possimus totam.", "Quisquam modi accusantium eligendi numquam.", "Quod blanditiis est non id quibusdam qui omnis alias!"] + [ + "Corporis est est non vero nisi velit saepe.", + "Deleniti dolor perferendis aliquid dolore repellat harum at officiis?", + "Expedita nostrum dignissimos dolore voluptate atque et impedit quia.", + "Dolorem nesciunt aliquid quo aut id cumque et." + ] iex> Faker.Lorem.sentences(3) - ["Dicta dolores at ut delectus magni atque eos beatae nulla.", "Laudantium qui dolorem pariatur voluptatibus sed et enim?", "Minima laudantium voluptate reiciendis repellat."] + ["Autem tempora velit vel corrupti?", "Velit vero est modi laboriosam ut.", "Voluptatem ut quia iure reiciendis nihil perferendis cum?"] """ @spec sentences(integer | Range.t()) :: [String.t()] def sentences(range \\ 2..5) @@ -483,13 +493,13 @@ defmodule Faker.Lorem do ## Examples iex> Faker.Lorem.words() - ["ut", "sint", "deleniti", "consequatur", "et"] + ["tempora", "architecto", "commodi", "et", "deleniti", "quaerat"] iex> Faker.Lorem.words(1..2) - ["vitae"] + ["cum"] iex> Faker.Lorem.words(2) - ["et", "quibusdam"] + ["cumque", "non"] iex> Faker.Lorem.words(6) - ["et", "sit", "aut", "expedita", "cumque", "est"] + ["nisi", "doloremque", "debitis", "voluptatem", "corrupti", "saepe"] """ @spec words(integer | Range.t()) :: [String.t()] def words(range \\ 3..6) diff --git a/lib/faker/lorem/shakespeare/en.ex b/lib/faker/lorem/shakespeare/en.ex index 9abf937e9..6bee94d2a 100644 --- a/lib/faker/lorem/shakespeare/en.ex +++ b/lib/faker/lorem/shakespeare/en.ex @@ -74,12 +74,6 @@ defmodule Faker.Lorem.Shakespeare.En do iex> Faker.Lorem.Shakespeare.En.king_richard_iii() "The king's name is a tower of strength." - iex> Faker.Lorem.Shakespeare.En.king_richard_iii() - "A horse! a horse! my kingdom for a horse!" - iex> Faker.Lorem.Shakespeare.En.king_richard_iii() - "So wise so young, they say, do never live long." - iex> Faker.Lorem.Shakespeare.En.king_richard_iii() - "Now is the winter of our discontent." """ @spec king_richard_iii() :: String.t() sampler(:king_richard_iii, [ @@ -100,12 +94,6 @@ defmodule Faker.Lorem.Shakespeare.En do iex> Faker.Lorem.Shakespeare.En.romeo_and_juliet() "What's in a name? That which we call a rose by any other name would smell as sweet." - iex> Faker.Lorem.Shakespeare.En.romeo_and_juliet() - "For you and I are past our dancing days." - iex> Faker.Lorem.Shakespeare.En.romeo_and_juliet() - "For you and I are past our dancing days." - iex> Faker.Lorem.Shakespeare.En.romeo_and_juliet() - "For you and I are past our dancing days." """ @spec romeo_and_juliet() :: String.t() sampler(:romeo_and_juliet, [ diff --git a/lib/faker/lorem/shakespeare/ru.ex b/lib/faker/lorem/shakespeare/ru.ex index 22405462e..e7242b0c3 100644 --- a/lib/faker/lorem/shakespeare/ru.ex +++ b/lib/faker/lorem/shakespeare/ru.ex @@ -12,12 +12,6 @@ defmodule Faker.Lorem.Shakespeare.Ru do iex> Faker.Lorem.Shakespeare.Ru.hamlet() "И дальше тишина." - iex> Faker.Lorem.Shakespeare.Ru.hamlet() - "Быть иль не быть, вот в чём вопрос." - iex> Faker.Lorem.Shakespeare.Ru.hamlet() - "Быть иль не быть, вот в чём вопрос." - iex> Faker.Lorem.Shakespeare.Ru.hamlet() - "Быть иль не быть, вот в чём вопрос." """ @spec hamlet() :: String.t() sampler(:hamlet, [ @@ -41,12 +35,6 @@ defmodule Faker.Lorem.Shakespeare.Ru do iex> Faker.Lorem.Shakespeare.Ru.as_you_like_it() "Дурак думает, что он умен; умный же знает, что глуп он." - iex> Faker.Lorem.Shakespeare.Ru.as_you_like_it() - "Весь мир — театр. В нем женщины, мужчины — все актеры. У них свои есть выходы, уходы, и каждый не одну играет роль." - iex> Faker.Lorem.Shakespeare.Ru.as_you_like_it() - "Весь мир — театр. В нем женщины, мужчины — все актеры. У них свои есть выходы, уходы, и каждый не одну играет роль." - iex> Faker.Lorem.Shakespeare.Ru.as_you_like_it() - "Дурак думает, что он умен; умный же знает, что глуп он." """ @spec as_you_like_it() :: String.t() sampler(:as_you_like_it, [ @@ -61,12 +49,6 @@ defmodule Faker.Lorem.Shakespeare.Ru do iex> Faker.Lorem.Shakespeare.Ru.king_richard_iii() "Коня, коня! Престол мой за коня!" - iex> Faker.Lorem.Shakespeare.Ru.king_richard_iii() - "Нет, не купить любви ценой злодейств!" - iex> Faker.Lorem.Shakespeare.Ru.king_richard_iii() - "Нет, не купить любви ценой злодейств!" - iex> Faker.Lorem.Shakespeare.Ru.king_richard_iii() - "Коня, коня! Престол мой за коня!" """ @spec king_richard_iii() :: String.t() sampler(:king_richard_iii, [ @@ -81,12 +63,6 @@ defmodule Faker.Lorem.Shakespeare.Ru do iex> Faker.Lorem.Shakespeare.Ru.romeo_and_juliet() "Нет повести печальнее на свете, чем повесть о Ромео и Джульетте." - iex> Faker.Lorem.Shakespeare.Ru.romeo_and_juliet() - "Картина требует красивой рамы, и золотое содержанье книг, нуждается в обложках золотых." - iex> Faker.Lorem.Shakespeare.Ru.romeo_and_juliet() - "Чем лучше цель, тем целимся мы метче." - iex> Faker.Lorem.Shakespeare.Ru.romeo_and_juliet() - "В минуты отчаянья сойдёт за вечность час..." """ @spec romeo_and_juliet() :: String.t() sampler(:romeo_and_juliet, [ diff --git a/lib/faker/name.ex b/lib/faker/name.ex index b8a2206b9..4ee61ad1b 100644 --- a/lib/faker/name.ex +++ b/lib/faker/name.ex @@ -12,12 +12,6 @@ defmodule Faker.Name do iex> Faker.Name.name() "Mrs. Abe Rolfson MD" - iex> Faker.Name.name() - "Conor Padberg" - iex> Faker.Name.name() - "Mr. Bianka Ryan" - iex> Faker.Name.name() - "Ally Rau MD" """ @deprecated "Use Faker.Person.name/0 instead." @spec name() :: String.t() @@ -30,12 +24,6 @@ defmodule Faker.Name do iex> Faker.Name.first_name() "Joany" - iex> Faker.Name.first_name() - "Elizabeth" - iex> Faker.Name.first_name() - "Abe" - iex> Faker.Name.first_name() - "Ozella" """ @deprecated "Use Faker.Person.first_name/0 instead." @spec first_name() :: String.t() @@ -48,12 +36,6 @@ defmodule Faker.Name do iex> Faker.Name.last_name() "Blick" - iex> Faker.Name.last_name() - "Hayes" - iex> Faker.Name.last_name() - "Schumm" - iex> Faker.Name.last_name() - "Rolfson" """ @deprecated "Use Faker.Person.last_name/0 instead." @spec last_name() :: String.t() @@ -66,12 +48,6 @@ defmodule Faker.Name do iex> Faker.Name.title() "Dynamic Identity Administrator" - iex> Faker.Name.title() - "Product Communications Technician" - iex> Faker.Name.title() - "Legacy Accountability Architect" - iex> Faker.Name.title() - "Customer Data Representative" """ @deprecated "Use Faker.Person.title/0 instead." @spec title() :: String.t() @@ -84,12 +60,6 @@ defmodule Faker.Name do iex> Faker.Name.suffix() "II" - iex> Faker.Name.suffix() - "V" - iex> Faker.Name.suffix() - "V" - iex> Faker.Name.suffix() - "V" """ @deprecated "Use Faker.Person.suffix/0 instead." @spec suffix() :: String.t() @@ -102,12 +72,6 @@ defmodule Faker.Name do iex> Faker.Name.prefix() "Mr." - iex> Faker.Name.prefix() - "Mrs." - iex> Faker.Name.prefix() - "Mr." - iex> Faker.Name.prefix() - "Dr." """ @deprecated "Use Faker.Person.prefix/0 instead." @spec prefix() :: String.t() diff --git a/lib/faker/person/fr.ex b/lib/faker/person/fr.ex index 31c8cf010..6ce0fd4a6 100644 --- a/lib/faker/person/fr.ex +++ b/lib/faker/person/fr.ex @@ -32,7 +32,7 @@ defmodule Faker.Person.Fr do Returns a random first name ## Examples - + iex> Faker.Person.Fr.first_name() "Damien" iex> Faker.Person.Fr.first_name() @@ -292,7 +292,7 @@ defmodule Faker.Person.Fr do Returns a random prefix ## Examples - + iex> Faker.Person.Fr.prefix() "Docteur" iex> Faker.Person.Fr.prefix() @@ -333,5 +333,3 @@ defmodule Faker.Person.Fr do "PhD" ]) end - -# Faker.Person.Fr diff --git a/lib/faker/phone/pt_br.ex b/lib/faker/phone/pt_br.ex index 4141d9d8e..49ba01288 100644 --- a/lib/faker/phone/pt_br.ex +++ b/lib/faker/phone/pt_br.ex @@ -30,6 +30,7 @@ defmodule Faker.Phone.PtBr do Replace 'xx' for a random region number picked. ## Examples + iex> Faker.Phone.PtBr.number_with_region("(xx) 9 1542-6461") "(92) 9 1542-6461" iex> Faker.Phone.PtBr.number_with_region("(xx) 4329-7052") @@ -51,6 +52,7 @@ defmodule Faker.Phone.PtBr do Pick a random region code from list ## Examples + iex> Faker.Phone.PtBr.generate_region_code() "92" iex> Faker.Phone.PtBr.generate_region_code() diff --git a/lib/faker/pizza.ex b/lib/faker/pizza.ex index 381f5cb95..a1932b2a6 100644 --- a/lib/faker/pizza.ex +++ b/lib/faker/pizza.ex @@ -462,16 +462,15 @@ defmodule Faker.Pizza do sampler(:combo, [ "Africana", "All Dressed", - "Bacon Cheeseburger ", + "Bacon Cheeseburger", "BBQ Chicken", - "Bianca ", + "Bianca", "Bolognese", "Breakfast", "Buffalo Chicken", "Canadian", "Caprese", "Capricciosa", - "Capricciosa ", "Cheese", "Chicken Pesto", "Ciao-ciao", @@ -494,7 +493,7 @@ defmodule Faker.Pizza do "Margherita", "Meat Feast", "Meat Lovers", - "Meatball ", + "Meatball", "Mockba", "Onion & Gorgonzola", "Pepperoni & Mushroom", diff --git a/lib/faker/random.ex b/lib/faker/random.ex index 982eaec68..17f707ff3 100644 --- a/lib/faker/random.ex +++ b/lib/faker/random.ex @@ -3,9 +3,10 @@ defmodule Faker.Random do Behaviour that defines randomisation in faker. """ - @callback random_between(integer, integer) :: integer - @callback random_bytes(pos_integer) :: binary - @callback random_uniform() :: float + @callback random_between(integer(), integer()) :: integer() + @callback random_bytes(pos_integer()) :: binary() + @callback random_uniform() :: float() + @callback shuffle(Enum.t()) :: list() defmacro __using__(_) do quote do @@ -23,7 +24,11 @@ defmodule Faker.Random do :rand.uniform() end - defoverridable random_between: 2, random_bytes: 1, random_uniform: 0 + def shuffle(enum) do + Enum.shuffle(enum) + end + + defoverridable random_between: 2, random_bytes: 1, random_uniform: 0, shuffle: 1 end end end diff --git a/lib/faker/random/test.ex b/lib/faker/random/test.ex index 6b8355b60..2f07c1b91 100644 --- a/lib/faker/random/test.ex +++ b/lib/faker/random/test.ex @@ -1,13 +1,11 @@ defmodule Faker.Random.Test do @moduledoc false - @behaviour Faker.Random + + use Faker.Random def random_between(left, right) do set_seed(:ets.lookup(:seed_registry, self())) - - left..right - |> shuffle() - |> hd() + Enum.random(left..right) end def random_bytes(total) do diff --git a/lib/faker/util.ex b/lib/faker/util.ex index d8764ec34..20b88d034 100644 --- a/lib/faker/util.ex +++ b/lib/faker/util.ex @@ -41,17 +41,25 @@ defmodule Faker.Util do iex> Faker.Util.sample_uniq(2, &Faker.Internet.email/0) ["conor2058@schiller.com", "elizabeth2056@rolfson.net"] - iex> Faker.Util.sample_uniq(10, fn -> Faker.String.base64(4) end) - ["1tmL", "29Te", "Byiy", "Kfp7", "Z7xb", "lk8z", "pI0P", "yGb0", "ye3Q", "yfOB"] - + [ + "0CzJ", + "3nuk", + "D1Ip", + "IqFG", + "My3J", + "W3yW", + "e/kH", + "gd75", + "hVCK", + "snJn" + ] iex> Faker.Util.sample_uniq(1, &Faker.Phone.EnUs.area_code/0) - ["825"] - + ["508"] iex> Faker.Util.sample_uniq(0, &Faker.Internet.email/0) ** (FunctionClauseError) no function clause matching in Faker.Util.sample_uniq/3 """ - @spec sample_uniq(pos_integer, (() -> any), MapSet.t()) :: [any] + @spec sample_uniq(pos_integer, (-> any), MapSet.t()) :: [any] def sample_uniq(count, sampler, acc \\ MapSet.new()) when is_integer(count) and count > 0 and is_function(sampler, 0) do case MapSet.size(acc) do @@ -84,7 +92,7 @@ defmodule Faker.Util do Enum.map(0..(n - 1), &fun.(&1)) end - @spec list(integer, (() -> any)) :: [any] + @spec list(integer, (-> any)) :: [any] def list(n, fun) when is_function(fun, 0) do Enum.map(0..(n - 1), fn _ -> fun.() end) end @@ -103,7 +111,7 @@ defmodule Faker.Util do iex> Faker.Util.join(2, " or ", &Faker.Color.name/0) "Purple or White" """ - @spec join(integer, binary, (() -> binary)) :: binary + @spec join(integer, binary, (-> binary)) :: binary def join(n, joiner \\ "", fun) do Enum.join(list(n, fun), joiner) end @@ -115,12 +123,6 @@ defmodule Faker.Util do iex> Faker.Util.digit() "0" - iex> Faker.Util.digit() - "1" - iex> Faker.Util.digit() - "5" - iex> Faker.Util.digit() - "4" """ @spec digit() :: binary localize(:digit) @@ -151,14 +153,6 @@ defmodule Faker.Util do iex> Faker.Util.letter() "E" - iex> Faker.Util.letter() - "L" - iex> Faker.Util.letter() - "R" - iex> Faker.Util.letter() - "C" - iex> Faker.Util.letter() - "e" """ @spec letter() :: binary localize(:letter) @@ -170,12 +164,6 @@ defmodule Faker.Util do iex> Faker.Util.lower_letter() "e" - iex> Faker.Util.lower_letter() - "l" - iex> Faker.Util.lower_letter() - "r" - iex> Faker.Util.lower_letter() - "c" """ @spec lower_letter() :: binary localize(:lower_letter) @@ -187,12 +175,6 @@ defmodule Faker.Util do iex> Faker.Util.upper_letter() "E" - iex> Faker.Util.upper_letter() - "L" - iex> Faker.Util.upper_letter() - "R" - iex> Faker.Util.upper_letter() - "C" """ @spec upper_letter() :: binary localize(:upper_letter) diff --git a/lib/faker/vehicle.ex b/lib/faker/vehicle.ex index 6232e6588..60b4ed3c0 100644 --- a/lib/faker/vehicle.ex +++ b/lib/faker/vehicle.ex @@ -11,6 +11,7 @@ defmodule Faker.Vehicle do Returns a vehicle body style string ## Examples + iex> Faker.Vehicle.body_style() "Minivan" iex> Faker.Vehicle.body_style() @@ -27,6 +28,7 @@ defmodule Faker.Vehicle do Returns a vehicle drivetrain string ## Examples + iex> Faker.Vehicle.drivetrain() "4x2/2-wheel drive" iex> Faker.Vehicle.drivetrain() @@ -43,6 +45,7 @@ defmodule Faker.Vehicle do Returns a vehicle fuel type string ## Examples + iex> Faker.Vehicle.fuel_type() "Ethanol" iex> Faker.Vehicle.fuel_type() @@ -128,6 +131,7 @@ defmodule Faker.Vehicle do Returns a vehicle option string ## Examples + iex> Faker.Vehicle.option() "Premium Sound" iex> Faker.Vehicle.option() @@ -161,6 +165,7 @@ defmodule Faker.Vehicle do Returns a list of vehicle options() ## Examples + iex> Faker.Vehicle.options() ["Power Steering", "A/C: Front", "Keyless Entry", "AM/FM Stereo", "Power Steering", "Antilock Brakes", "8-Track Player", "Leather Interior"] iex> Faker.Vehicle.options() @@ -179,6 +184,7 @@ defmodule Faker.Vehicle do Returns a vehicle standard option string ## Examples + iex> Faker.Vehicle.standard_spec() "Tire pressure monitoring system (TPMS)" iex> Faker.Vehicle.standard_spec() @@ -195,6 +201,7 @@ defmodule Faker.Vehicle do Returns a list of vehicle standard specs ## Examples + iex> Faker.Vehicle.standard_specs() ["20\\" x 9.0\\" front & 20\\" x 10.0\\" rear aluminum wheels", "Deluxe insulation group", "Torsion beam rear suspension w/stabilizer bar", "High performance suspension", "200mm front axle", "Traveler/mini trip computer", "P235/50R18 all-season tires", "Front door tinted glass"] iex> Faker.Vehicle.standard_specs() @@ -213,6 +220,7 @@ defmodule Faker.Vehicle do Returns a list of vehicle standard specs of the given length ## Examples + iex> Faker.Vehicle.En.standard_specs(3) ["Tire pressure monitoring system (TPMS)", "20\\" x 9.0\\" front & 20\\" x 10.0\\" rear aluminum wheels", "Deluxe insulation group"] iex> Faker.Vehicle.En.standard_specs(3) @@ -231,14 +239,9 @@ defmodule Faker.Vehicle do Returns a vehicle transmission string ## Examples - iex> Faker.Vehicle.transmission() - "CVT" - iex> Faker.Vehicle.transmission() - "Automatic" + iex> Faker.Vehicle.transmission() "Manual" - iex> Faker.Vehicle.transmission() - "Automanual" """ @spec transmission() :: String.t() localize(:transmission) @@ -247,6 +250,7 @@ defmodule Faker.Vehicle do Returns a vehicle identification number string ## Examples + iex> Faker.Vehicle.vin() "1C689K5Y000T03374" iex> Faker.Vehicle.vin() diff --git a/lib/faker/vehicle/en.ex b/lib/faker/vehicle/en.ex index c09d7032a..acad561a2 100644 --- a/lib/faker/vehicle/en.ex +++ b/lib/faker/vehicle/en.ex @@ -277,6 +277,7 @@ defmodule Faker.Vehicle.En do Returns a vehicle body style string ## Examples + iex> Faker.Vehicle.En.body_style() "Minivan" iex> Faker.Vehicle.En.body_style() @@ -306,6 +307,7 @@ defmodule Faker.Vehicle.En do Returns a vehicle drivetrain string ## Examples + iex> Faker.Vehicle.En.drivetrain() "4x2/2-wheel drive" iex> Faker.Vehicle.En.drivetrain() @@ -322,6 +324,7 @@ defmodule Faker.Vehicle.En do Returns a vehicle fuel type string ## Examples + iex> Faker.Vehicle.En.fuel_type() "Ethanol" iex> Faker.Vehicle.En.fuel_type() @@ -424,6 +427,7 @@ defmodule Faker.Vehicle.En do Returns a vehicle option string ## Examples + iex> Faker.Vehicle.En.option() "Premium Sound" iex> Faker.Vehicle.En.option() @@ -442,6 +446,7 @@ defmodule Faker.Vehicle.En do Returns a list of vehicle options() ## Examples + iex> Faker.Vehicle.En.options() ["Power Steering", "A/C: Front", "Keyless Entry", "AM/FM Stereo", "Power Steering", "Antilock Brakes", "8-Track Player", "Leather Interior"] iex> Faker.Vehicle.En.options() @@ -460,6 +465,7 @@ defmodule Faker.Vehicle.En do Returns a list of vehicle options of the given length ## Examples + iex> Faker.Vehicle.En.options(3) ["Premium Sound", "Power Steering", "A/C: Front"] iex> Faker.Vehicle.En.options(3) @@ -478,6 +484,7 @@ defmodule Faker.Vehicle.En do Reterns a vehicle standard option string ## Examples + iex> Faker.Vehicle.En.standard_spec() "Tire pressure monitoring system (TPMS)" iex> Faker.Vehicle.En.standard_spec() @@ -496,6 +503,7 @@ defmodule Faker.Vehicle.En do Returns a list of vehicle standard specs ## Examples + iex> Faker.Vehicle.En.standard_specs() ["20\\" x 9.0\\" front & 20\\" x 10.0\\" rear aluminum wheels", "Deluxe insulation group", "Torsion beam rear suspension w/stabilizer bar", "High performance suspension", "200mm front axle", "Traveler/mini trip computer", "P235/50R18 all-season tires", "Front door tinted glass"] iex> Faker.Vehicle.En.standard_specs() @@ -514,6 +522,7 @@ defmodule Faker.Vehicle.En do Returns a list of vehicle standard specs of the given length ## Examples + iex> Faker.Vehicle.En.standard_specs(3) ["Tire pressure monitoring system (TPMS)", "20\\" x 9.0\\" front & 20\\" x 10.0\\" rear aluminum wheels", "Deluxe insulation group"] iex> Faker.Vehicle.En.standard_specs(3) @@ -532,6 +541,7 @@ defmodule Faker.Vehicle.En do Returns a vehicle transmission string ## Examples + iex> Faker.Vehicle.En.transmission() "CVT" iex> Faker.Vehicle.En.transmission() diff --git a/mix.exs b/mix.exs index 223b29003..4d9053e67 100644 --- a/mix.exs +++ b/mix.exs @@ -14,6 +14,9 @@ defmodule Faker.Mixfile do name: "Faker", deps: deps(), docs: docs(), + preferred_cli_env: [ + "test.watch": :test + ], dialyzer: [ flags: [ :error_handling, @@ -44,7 +47,8 @@ defmodule Faker.Mixfile do {:ex_doc, "== 0.33.0", only: :dev, runtime: false}, {:earmark, "1.4.46", only: :dev, runtime: false}, {:credo, "== 1.7.5", only: [:dev, :test], runtime: false}, - {:dialyxir, "== 1.4.3", only: [:dev], runtime: false} + {:dialyxir, "== 1.4.3", only: [:dev], runtime: false}, + {:mix_test_watch, "~> 1.0", only: [:dev, :test], runtime: false} ] end diff --git a/mix.lock b/mix.lock index c5568ba9b..0d63c84ed 100644 --- a/mix.lock +++ b/mix.lock @@ -11,6 +11,7 @@ "makeup": {:hex, :makeup, "1.1.2", "9ba8837913bdf757787e71c1581c21f9d2455f4dd04cfca785c70bbfff1a76a3", [:mix], [{:nimble_parsec, "~> 1.2.2 or ~> 1.3", [hex: :nimble_parsec, repo: "hexpm", optional: false]}], "hexpm", "cce1566b81fbcbd21eca8ffe808f33b221f9eee2cbc7a1706fc3da9ff18e6cac"}, "makeup_elixir": {:hex, :makeup_elixir, "0.16.2", "627e84b8e8bf22e60a2579dad15067c755531fea049ae26ef1020cad58fe9578", [:mix], [{:makeup, "~> 1.0", [hex: :makeup, repo: "hexpm", optional: false]}, {:nimble_parsec, "~> 1.2.3 or ~> 1.3", [hex: :nimble_parsec, repo: "hexpm", optional: false]}], "hexpm", "41193978704763f6bbe6cc2758b84909e62984c7752b3784bd3c218bb341706b"}, "makeup_erlang": {:hex, :makeup_erlang, "1.0.0", "6f0eff9c9c489f26b69b61440bf1b238d95badae49adac77973cbacae87e3c2e", [:mix], [{:makeup, "~> 1.0", [hex: :makeup, repo: "hexpm", optional: false]}], "hexpm", "ea7a9307de9d1548d2a72d299058d1fd2339e3d398560a0e46c27dab4891e4d2"}, + "mix_test_watch": {:hex, :mix_test_watch, "1.2.0", "1f9acd9e1104f62f280e30fc2243ae5e6d8ddc2f7f4dc9bceb454b9a41c82b42", [:mix], [{:file_system, "~> 0.2 or ~> 1.0", [hex: :file_system, repo: "hexpm", optional: false]}], "hexpm", "278dc955c20b3fb9a3168b5c2493c2e5cffad133548d307e0a50c7f2cfbf34f6"}, "nimble_parsec": {:hex, :nimble_parsec, "1.4.0", "51f9b613ea62cfa97b25ccc2c1b4216e81df970acd8e16e8d1bdc58fef21370d", [:mix], [], "hexpm", "9c565862810fb383e9838c1dd2d7d2c437b3d13b267414ba6af33e50d2d1cf28"}, "poison": {:hex, :poison, "3.1.0", "d9eb636610e096f86f25d9a46f35a9facac35609a7591b3be3326e99a0484665", [:mix], [], "hexpm"}, } From 3d21824eaa0d71b4a8e2d9ecf92bbb45fb6788e4 Mon Sep 17 00:00:00 2001 From: Marcus Wood Date: Tue, 10 Sep 2024 13:53:24 +1000 Subject: [PATCH 22/92] Discard changes to lib/faker/address.ex --- lib/faker/address.ex | 150 +++++++++++++++++++++++++++++++++---------- 1 file changed, 115 insertions(+), 35 deletions(-) diff --git a/lib/faker/address.ex b/lib/faker/address.ex index 7ba655808..5c7dc7c19 100644 --- a/lib/faker/address.ex +++ b/lib/faker/address.ex @@ -15,9 +15,13 @@ defmodule Faker.Address do ## Examples iex> Faker.Address.building_number() - "24" + "15426" iex> Faker.Address.building_number() - "79" + "6" + iex> Faker.Address.building_number() + "0832" + iex> Faker.Address.building_number() + "7" """ @spec building_number() :: String.t() localize(:building_number) @@ -28,9 +32,13 @@ defmodule Faker.Address do ## Examples iex> Faker.Address.city() - "Carter" + "Elizabeth" + iex> Faker.Address.city() + "Rolfson" iex> Faker.Address.city() - "South Lesley" + "West Conor" + iex> Faker.Address.city() + "Hardy" """ @spec city() :: String.t() localize(:city) @@ -41,9 +49,13 @@ defmodule Faker.Address do ## Examples iex> Faker.Address.city_prefix() - "South" + "Port" + iex> Faker.Address.city_prefix() + "West" iex> Faker.Address.city_prefix() "North" + iex> Faker.Address.city_prefix() + "Lake" """ @spec city_prefix() :: String.t() localize(:city_prefix) @@ -54,9 +66,13 @@ defmodule Faker.Address do ## Examples iex> Faker.Address.city_suffix() - "bury" + "burgh" iex> Faker.Address.city_suffix() - "port" + "mouth" + iex> Faker.Address.city_suffix() + "burgh" + iex> Faker.Address.city_suffix() + "view" """ @spec city_suffix() :: String.t() localize(:city_suffix) @@ -67,9 +83,13 @@ defmodule Faker.Address do ## Examples iex> Faker.Address.En.country() - "Dominican Republic" + "Guinea-Bissau" + iex> Faker.Address.En.country() + "Tuvalu" iex> Faker.Address.En.country() - "Bosnia and Herzegovina" + "Portugal" + iex> Faker.Address.En.country() + "United Arab Emirates" """ @spec country() :: String.t() localize(:country) @@ -80,9 +100,13 @@ defmodule Faker.Address do ## Examples iex> Faker.Address.country_code() - "DM" + "IT" + iex> Faker.Address.country_code() + "MR" + iex> Faker.Address.country_code() + "GM" iex> Faker.Address.country_code() - "BG" + "CX" """ @spec country_code() :: String.t() localize(:country_code) @@ -93,9 +117,13 @@ defmodule Faker.Address do ## Examples iex> Faker.Address.geohash() - "1kgw0gzrzz" + "1kgw0" iex> Faker.Address.geohash() - "jhkfxu2v" + "575152tr612btt" + iex> Faker.Address.geohash() + "20kxxzd9k22m6jedp" + iex> Faker.Address.geohash() + "06kjmd2wtwjp2px" """ @spec geohash() :: binary def geohash do @@ -150,6 +178,10 @@ defmodule Faker.Address do -62.20459142744528 iex> Faker.Address.latitude() -59.39243543011051 + iex> Faker.Address.latitude() + 15.346881460762518 + iex> Faker.Address.latitude() + -72.94522080668256 """ @spec latitude() :: float def latitude do @@ -165,6 +197,10 @@ defmodule Faker.Address do -124.40918285489056 iex> Faker.Address.longitude() -118.78487086022102 + iex> Faker.Address.longitude() + 30.693762921525035 + iex> Faker.Address.longitude() + -145.8904416133651 """ @spec longitude() :: float def longitude do @@ -177,9 +213,13 @@ defmodule Faker.Address do ## Examples iex> Faker.Address.postcode() - "70879" + "01542" iex> Faker.Address.postcode() - "90648" + "64610" + iex> Faker.Address.postcode() + "83297" + iex> Faker.Address.postcode() + "05235" """ @spec postcode() :: String.t() defdelegate postcode, to: __MODULE__, as: :zip_code @@ -190,9 +230,13 @@ defmodule Faker.Address do ## Examples iex> Faker.Address.secondary_address() - "Apt. 576" + "Apt. 154" + iex> Faker.Address.secondary_address() + "Apt. 646" iex> Faker.Address.secondary_address() - "Suite 386" + "Suite 083" + iex> Faker.Address.secondary_address() + "Apt. 970" """ @spec secondary_address() :: String.t() localize(:secondary_address) @@ -202,10 +246,14 @@ defmodule Faker.Address do ## Examples - iex> Faker.Address.state() - "New Hampshire" iex> Faker.Address.state() "Hawaii" + iex> Faker.Address.state() + "Alaska" + iex> Faker.Address.state() + "Oklahoma" + iex> Faker.Address.state() + "California" """ @spec state() :: String.t() localize(:state) @@ -215,10 +263,14 @@ defmodule Faker.Address do ## Examples - iex> Faker.Address.state_abbr() - "NH" iex> Faker.Address.state_abbr() "HI" + iex> Faker.Address.state_abbr() + "AK" + iex> Faker.Address.state_abbr() + "OK" + iex> Faker.Address.state_abbr() + "CA" """ @spec state_abbr() :: String.t() localize(:state_abbr) @@ -229,9 +281,13 @@ defmodule Faker.Address do ## Examples iex> Faker.Address.street_address() - "24 Adelle Place" + "15426 Aniya Mews" + iex> Faker.Address.street_address() + "83297 Jana Spring" + iex> Faker.Address.street_address() + "57 Helene Mission" iex> Faker.Address.street_address() - "26258 Winston Pass" + "03 Izaiah Land" """ @spec street_address() :: String.t() def street_address do @@ -244,9 +300,13 @@ defmodule Faker.Address do ## Examples iex> Faker.Address.street_address(true) - "24 Adelle Place Apt. 515" - iex> Faker.Address.street_address(false) - "3 Stiedemann Locks" + "15426 Aniya Mews Apt. 832" + iex> Faker.Address.street_address(true) + "7 Jana Spring Suite 570" + iex> Faker.Address.street_address(true) + "030 Kozey Knoll Suite 733" + iex> Faker.Address.street_address(true) + "603 Homenick Shore Suite 981" """ @spec street_address(true | any) :: String.t() def street_address(true), do: street_address() <> " " <> secondary_address() @@ -258,9 +318,13 @@ defmodule Faker.Address do ## Examples iex> Faker.Address.street_name() - "Aimee Roads" + "Elizabeth Freeway" + iex> Faker.Address.street_name() + "Reese Plaza" + iex> Faker.Address.street_name() + "Aniya Mews" iex> Faker.Address.street_name() - "Glover Springs" + "Bianka Heights" """ @spec street_name() :: String.t() def street_name do @@ -275,10 +339,14 @@ defmodule Faker.Address do ## Examples + iex> Faker.Address.street_suffix() + "View" + iex> Faker.Address.street_suffix() + "Locks" iex> Faker.Address.street_suffix() "Freeway" iex> Faker.Address.street_suffix() - "Falls" + "Lodge" """ @spec street_suffix() :: String.t() localize(:street_suffix) @@ -289,9 +357,13 @@ defmodule Faker.Address do ## Examples iex> Faker.Address.time_zone() - "Europe/Bucharest" + "Europe/Istanbul" + iex> Faker.Address.time_zone() + "Europe/Copenhagen" iex> Faker.Address.time_zone() - "Australia/Hobart" + "America/Indiana/Indianapolis" + iex> Faker.Address.time_zone() + "America/Guyana" """ @spec time_zone() :: String.t() localize(:time_zone) @@ -302,9 +374,13 @@ defmodule Faker.Address do ## Examples iex> Faker.Address.zip() - "70879" + "01542" + iex> Faker.Address.zip() + "64610" + iex> Faker.Address.zip() + "83297" iex> Faker.Address.zip() - "90648" + "05235" """ @spec zip() :: String.t() defdelegate zip, to: __MODULE__, as: :zip_code @@ -315,9 +391,13 @@ defmodule Faker.Address do ## Examples iex> Faker.Address.zip_code() - "70879" + "01542" + iex> Faker.Address.zip_code() + "64610" + iex> Faker.Address.zip_code() + "83297" iex> Faker.Address.zip_code() - "90648" + "05235" """ @spec zip_code() :: String.t() localize(:zip_code) From ef008e5e83aad05bc19a170f731edd507e9485e3 Mon Sep 17 00:00:00 2001 From: Marcus Wood Date: Tue, 10 Sep 2024 13:53:42 +1000 Subject: [PATCH 23/92] Discard changes to lib/faker/address/en.ex --- lib/faker/address/en.ex | 106 ++++++++++++++++++++++++++++++++++++---- 1 file changed, 97 insertions(+), 9 deletions(-) diff --git a/lib/faker/address/en.ex b/lib/faker/address/en.ex index db58dadc4..277e4bf11 100644 --- a/lib/faker/address/en.ex +++ b/lib/faker/address/en.ex @@ -14,6 +14,12 @@ defmodule Faker.Address.En do iex> Faker.Address.En.building_number() "15426" + iex> Faker.Address.En.building_number() + "6" + iex> Faker.Address.En.building_number() + "0832" + iex> Faker.Address.En.building_number() + "7" """ @spec building_number() :: String.t() def building_number do @@ -28,7 +34,13 @@ defmodule Faker.Address.En do ## Examples iex> Faker.Address.En.city() - "Carter" + "Elizabeth" + iex> Faker.Address.En.city() + "Rolfson" + iex> Faker.Address.En.city() + "West Conor" + iex> Faker.Address.En.city() + "Hardy" """ @spec city() :: String.t() def city do @@ -46,7 +58,13 @@ defmodule Faker.Address.En do ## Examples iex> Faker.Address.En.city_prefix() - "South" + "Port" + iex> Faker.Address.En.city_prefix() + "West" + iex> Faker.Address.En.city_prefix() + "North" + iex> Faker.Address.En.city_prefix() + "Lake" """ @spec city_prefix() :: String.t() sampler(:city_prefix, [ @@ -65,7 +83,13 @@ defmodule Faker.Address.En do ## Examples iex> Faker.Address.En.city_suffix() - "bury" + "burgh" + iex> Faker.Address.En.city_suffix() + "mouth" + iex> Faker.Address.En.city_suffix() + "burgh" + iex> Faker.Address.En.city_suffix() + "view" """ @spec city_suffix() :: String.t() sampler(:city_suffix, [ @@ -97,6 +121,12 @@ defmodule Faker.Address.En do iex> Faker.Address.En.country() "Guinea-Bissau" + iex> Faker.Address.En.country() + "Tuvalu" + iex> Faker.Address.En.country() + "Portugal" + iex> Faker.Address.En.country() + "United Arab Emirates" """ @spec country() :: String.t() sampler(:country, [ @@ -353,7 +383,13 @@ defmodule Faker.Address.En do ## Examples iex> Faker.Address.En.country_code() - "DM" + "IT" + iex> Faker.Address.En.country_code() + "MR" + iex> Faker.Address.En.country_code() + "GM" + iex> Faker.Address.En.country_code() + "CX" """ @spec country_code() :: String.t() sampler(:country_code, [ @@ -615,7 +651,13 @@ defmodule Faker.Address.En do ## Examples iex> Faker.Address.En.secondary_address() - "Apt. 576" + "Apt. 154" + iex> Faker.Address.En.secondary_address() + "Apt. 646" + iex> Faker.Address.En.secondary_address() + "Suite 083" + iex> Faker.Address.En.secondary_address() + "Apt. 970" """ @spec secondary_address() :: String.t() def secondary_address do @@ -631,6 +673,12 @@ defmodule Faker.Address.En do iex> Faker.Address.En.state() "Hawaii" + iex> Faker.Address.En.state() + "Alaska" + iex> Faker.Address.En.state() + "Oklahoma" + iex> Faker.Address.En.state() + "California" """ @spec state() :: String.t() sampler(:state, [ @@ -693,6 +741,12 @@ defmodule Faker.Address.En do iex> Faker.Address.En.state_abbr() "HI" + iex> Faker.Address.En.state_abbr() + "AK" + iex> Faker.Address.En.state_abbr() + "OK" + iex> Faker.Address.En.state_abbr() + "CA" """ @spec state_abbr() :: String.t() sampler(:state_abbr, [ @@ -755,6 +809,12 @@ defmodule Faker.Address.En do iex> Faker.Address.En.street_address() "15426 Padberg Mews" + iex> Faker.Address.En.street_address() + "83297 Jana Spring" + iex> Faker.Address.En.street_address() + "57 Legros Cletus Field" + iex> Faker.Address.En.street_address() + "32097 Brekke Ladarius Turnpike" """ @spec street_address() :: String.t() def street_address do @@ -769,7 +829,11 @@ defmodule Faker.Address.En do iex> Faker.Address.En.street_address(true) "15426 Padberg Mews, Apt. 832" iex> Faker.Address.En.street_address(false) - "25 Sipes Keys" + "7 Jana Spring" + iex> Faker.Address.En.street_address(true) + "57 Legros Cletus Field, Apt. 320" + iex> Faker.Address.En.street_address(false) + "7 Brekke Ladarius Turnpike" """ @spec street_address(true | any) :: String.t() def street_address(true), do: street_address() <> ", " <> secondary_address() @@ -781,7 +845,13 @@ defmodule Faker.Address.En do ## Examples iex> Faker.Address.En.street_name() - "Aileen Road" + "Elizabeth Freeway" + iex> Faker.Address.En.street_name() + "Sipes Trycia Glen" + iex> Faker.Address.En.street_name() + "Schiller Delphine Points" + iex> Faker.Address.En.street_name() + "Murphy Shore" """ @spec street_name() :: String.t() def street_name do @@ -799,6 +869,12 @@ defmodule Faker.Address.En do iex> Faker.Address.En.street_suffix() "View" + iex> Faker.Address.En.street_suffix() + "Locks" + iex> Faker.Address.En.street_suffix() + "Freeway" + iex> Faker.Address.En.street_suffix() + "Lodge" """ @spec street_suffix() :: String.t() sampler(:street_suffix, [ @@ -1035,7 +1111,13 @@ defmodule Faker.Address.En do ## Examples iex> Faker.Address.En.time_zone() - "Europe/Bucharest" + "Europe/Istanbul" + iex> Faker.Address.En.time_zone() + "Europe/Copenhagen" + iex> Faker.Address.En.time_zone() + "America/Indiana/Indianapolis" + iex> Faker.Address.En.time_zone() + "America/Guyana" """ @spec time_zone() :: String.t() sampler(:time_zone, [ @@ -1190,7 +1272,13 @@ defmodule Faker.Address.En do ## Examples iex> Faker.Address.En.zip_code() - "70879" + "01542" + iex> Faker.Address.En.zip_code() + "64610" + iex> Faker.Address.En.zip_code() + "83297" + iex> Faker.Address.En.zip_code() + "05235" """ @spec zip_code() :: String.t() def zip_code do From 20b65f8c634f531617dc8dfed7c1085006bc5108 Mon Sep 17 00:00:00 2001 From: Marcus Wood Date: Tue, 10 Sep 2024 13:54:13 +1000 Subject: [PATCH 24/92] Discard changes to lib/faker/address/es.ex --- lib/faker/address/es.ex | 96 ++++++++++++++++++++++++++++++++++++++--- 1 file changed, 89 insertions(+), 7 deletions(-) diff --git a/lib/faker/address/es.ex b/lib/faker/address/es.ex index 62b196492..b560eb790 100644 --- a/lib/faker/address/es.ex +++ b/lib/faker/address/es.ex @@ -13,7 +13,13 @@ defmodule Faker.Address.Es do ## Examples iex> Faker.Address.Es.building_number() - "2" + "s/n." + iex> Faker.Address.Es.building_number() + "5" + iex> Faker.Address.Es.building_number() + "26" + iex> Faker.Address.Es.building_number() + "61" """ @spec building_number() :: String.t() def building_number do @@ -29,6 +35,12 @@ defmodule Faker.Address.Es do iex> Faker.Address.Es.city() "Guillermina" + iex> Faker.Address.Es.city() + "Agosto" + iex> Faker.Address.Es.city() + "Burgos Alfonso" + iex> Faker.Address.Es.city() + "María José" """ @spec city() :: String.t() def city do @@ -47,6 +59,12 @@ defmodule Faker.Address.Es do iex> Faker.Address.Es.city_prefix() "Vitoria" + iex> Faker.Address.Es.city_prefix() + "Oviedo" + iex> Faker.Address.Es.city_prefix() + "Talavera de la Reina" + iex> Faker.Address.Es.city_prefix() + "Cáceres" """ @spec city_prefix() :: String.t() sampler(:city_prefix, [ @@ -186,7 +204,13 @@ defmodule Faker.Address.Es do ## Examples iex> Faker.Address.Es.country() - "Gambia" + "Cabo Verde" + iex> Faker.Address.Es.country() + "Malawi" + iex> Faker.Address.Es.country() + "Bielorusia" + iex> Faker.Address.Es.country() + "Mali" """ @spec country() :: String.t() sampler(:country, [ @@ -389,7 +413,13 @@ defmodule Faker.Address.Es do ## Examples iex> Faker.Address.Es.secondary_address() - "Esc. 576" + "Esc. 154" + iex> Faker.Address.Es.secondary_address() + "Esc. 646" + iex> Faker.Address.Es.secondary_address() + "Puerta 083" + iex> Faker.Address.Es.secondary_address() + "Esc. 970" """ @spec secondary_address() :: String.t() def secondary_address do @@ -411,6 +441,12 @@ defmodule Faker.Address.Es do iex> Faker.Address.Es.region() "Extremadura" + iex> Faker.Address.Es.region() + "Aragón" + iex> Faker.Address.Es.region() + "País Vasco" + iex> Faker.Address.Es.region() + "Canarias" """ @spec region() :: String.t() @@ -444,6 +480,12 @@ defmodule Faker.Address.Es do iex> Faker.Address.Es.state_abbr() "Ara" + iex> Faker.Address.Es.state_abbr() + "Cbr" + iex> Faker.Address.Es.state_abbr() + "Mad" + iex> Faker.Address.Es.state_abbr() + "Gal" """ @spec state_abbr() :: String.t() sampler(:state_abbr, [ @@ -473,6 +515,12 @@ defmodule Faker.Address.Es do iex> Faker.Address.Es.street_address() "Arrabal Daniela 26" + iex> Faker.Address.Es.street_address() + "Mercado Navarro s/n." + iex> Faker.Address.Es.street_address() + "Parque Débora Huerta 05" + iex> Faker.Address.Es.street_address() + "Rambla Gutiérrez 02" """ @spec street_address() :: String.t() def street_address do @@ -487,7 +535,11 @@ defmodule Faker.Address.Es do iex> Faker.Address.Es.street_address(true) "Arrabal Daniela 26 Esc. 610" iex> Faker.Address.Es.street_address(false) - "Cuesta Dávila 0" + "Parque Débora Huerta 05" + iex> Faker.Address.Es.street_address(false) + "Rambla Gutiérrez 02" + iex> Faker.Address.Es.street_address(false) + "Calle Murillo 2" """ @spec street_address(true | any) :: String.t() def street_address(true), do: street_address() <> " " <> secondary_address() @@ -499,7 +551,13 @@ defmodule Faker.Address.Es do ## Examples iex> Faker.Address.Es.street_name() - "Rua Alfonso" + "Arrabal Daniela" + iex> Faker.Address.Es.street_name() + "Polígono Javier Acosta" + iex> Faker.Address.Es.street_name() + "Urbanización Gerardo Garza" + iex> Faker.Address.Es.street_name() + "Ferrocarril Huerta" """ @spec street_name() :: String.t() def street_name do @@ -516,8 +574,14 @@ defmodule Faker.Address.Es do Return street suffix. ## Examples + iex> Faker.Address.Es.street_suffix() + "de arriba" + iex> Faker.Address.Es.street_suffix() + "Sur" iex> Faker.Address.Es.street_suffix() "de abajo" + iex> Faker.Address.Es.street_suffix() + "Norte" """ @spec street_suffix() :: String.t() sampler(:street_suffix, [ @@ -534,6 +598,12 @@ defmodule Faker.Address.Es do iex> Faker.Address.Es.street_prefix() "Carretera" + iex> Faker.Address.Es.street_prefix() + "Arrabal" + iex> Faker.Address.Es.street_prefix() + "Chalet" + iex> Faker.Address.Es.street_prefix() + "Colegio" """ @spec street_prefix() :: String.t() sampler(:street_prefix, [ @@ -614,7 +684,13 @@ defmodule Faker.Address.Es do ## Examples iex> Faker.Address.Es.time_zone() - "Europa/Riga" + "Australia/Sydney" + iex> Faker.Address.Es.time_zone() + "America/Guyana" + iex> Faker.Address.Es.time_zone() + "Asia/Kathmandu" + iex> Faker.Address.Es.time_zone() + "Europa/Vienna" """ @spec time_zone() :: String.t() sampler(:time_zone, [ @@ -751,7 +827,13 @@ defmodule Faker.Address.Es do ## Examples iex> Faker.Address.Es.zip_code() - "70879" + "01542" + iex> Faker.Address.Es.zip_code() + "64610" + iex> Faker.Address.Es.zip_code() + "83297" + iex> Faker.Address.Es.zip_code() + "05235" """ @spec zip_code() :: String.t() def zip_code do From d2ecd088c94498fdd735b4bcff730f058c2094be Mon Sep 17 00:00:00 2001 From: Marcus Wood Date: Tue, 10 Sep 2024 13:54:25 +1000 Subject: [PATCH 25/92] Discard changes to lib/faker/address/hy.ex --- lib/faker/address/hy.ex | 74 ++++++++++++++++++++++++++++++++++++++--- 1 file changed, 69 insertions(+), 5 deletions(-) diff --git a/lib/faker/address/hy.ex b/lib/faker/address/hy.ex index 90034a6c0..2becbbc9c 100644 --- a/lib/faker/address/hy.ex +++ b/lib/faker/address/hy.ex @@ -10,8 +10,14 @@ defmodule Faker.Address.Hy do ## Examples + iex> Faker.Address.Hy.building_number() + "1" iex> Faker.Address.Hy.building_number() "4" + iex> Faker.Address.Hy.building_number() + "64" + iex> Faker.Address.Hy.building_number() + "108" """ @spec building_number() :: String.t() def building_number do @@ -27,6 +33,12 @@ defmodule Faker.Address.Hy do iex> Faker.Address.Hy.city() "Ստեփանավան" + iex> Faker.Address.Hy.city() + "Մարալիկ" + iex> Faker.Address.Hy.city() + "Ճամբարակ" + iex> Faker.Address.Hy.city() + "Մեղրի" """ @spec city() :: String.t() @@ -102,7 +114,13 @@ defmodule Faker.Address.Hy do ## Examples iex> Faker.Address.Hy.country() - "Սալվադոր" + "Ֆրանսիա" + iex> Faker.Address.Hy.country() + "Նիդերլանդներ" + iex> Faker.Address.Hy.country() + "Ղազախստան" + iex> Faker.Address.Hy.country() + "Թուրքմենստան" """ @spec country() :: String.t() sampler(:country, [ @@ -344,8 +362,14 @@ defmodule Faker.Address.Hy do ## Examples + iex> Faker.Address.Hy.secondary_address() + "բն. 1" iex> Faker.Address.Hy.secondary_address() "բն. 4" + iex> Faker.Address.Hy.secondary_address() + "բն. 64" + iex> Faker.Address.Hy.secondary_address() + "բն. 110" """ @spec secondary_address() :: String.t() @@ -363,6 +387,12 @@ defmodule Faker.Address.Hy do iex> Faker.Address.Hy.state() "Արագածոտն" + iex> Faker.Address.Hy.state() + "Արարատ" + iex> Faker.Address.Hy.state() + "Կոտայք" + iex> Faker.Address.Hy.state() + "Լոռի" """ @spec state() :: String.t() sampler(:state, [ @@ -385,6 +415,12 @@ defmodule Faker.Address.Hy do iex> Faker.Address.Hy.state_abbr() "ԱԳ" + iex> Faker.Address.Hy.state_abbr() + "ԱՐ" + iex> Faker.Address.Hy.state_abbr() + "ԿՏ" + iex> Faker.Address.Hy.state_abbr() + "ԼՌ" """ @spec state_abbr() :: String.t() sampler(:state_abbr, [ @@ -406,7 +442,13 @@ defmodule Faker.Address.Hy do ## Examples iex> Faker.Address.Hy.street_address() - "Թորամանյան 09" + "Սուրբ Հովհաննեսի 542" + iex> Faker.Address.Hy.street_address() + "Բուռնազյան 61" + iex> Faker.Address.Hy.street_address() + "Լամբրոնի 329" + iex> Faker.Address.Hy.street_address() + "Հանրապետության 5" """ @spec street_address() :: String.t() def street_address do @@ -419,9 +461,13 @@ defmodule Faker.Address.Hy do ## Examples iex> Faker.Address.Hy.street_address(true) - "Թորամանյան 09 բն. 58" + "Սուրբ Հովհաննեսի 542 բն. 4" + iex> Faker.Address.Hy.street_address(false) + "Գյուլբենկյան 0" + iex> Faker.Address.Hy.street_address(true) + "Պուշկինի 29 բն. 0" iex> Faker.Address.Hy.street_address(false) - "Իսահակյան 28" + "Տիգրան Մեծի 35" """ @spec street_address(true | any) :: String.t() def street_address(true), do: street_address() <> " " <> secondary_address() @@ -433,7 +479,13 @@ defmodule Faker.Address.Hy do ## Examples iex> Faker.Address.Hy.street_name() - "Թորամանյան" + "Սուրբ Հովհաննեսի" + iex> Faker.Address.Hy.street_name() + "Մոսկովյան" + iex> Faker.Address.Hy.street_name() + "Սերգեյ Փարաջանովի" + iex> Faker.Address.Hy.street_name() + "Պրահայի" """ @spec street_name() :: String.t() sampler(:street_name, [ @@ -609,6 +661,12 @@ defmodule Faker.Address.Hy do iex> Faker.Address.Hy.street_suffix() "նրբանցք" + iex> Faker.Address.Hy.street_suffix() + "պողոտա" + iex> Faker.Address.Hy.street_suffix() + "փակուղի" + iex> Faker.Address.Hy.street_suffix() + "փողոց" """ @spec street_suffix() :: String.t() sampler(:street_suffix, [ @@ -625,6 +683,12 @@ defmodule Faker.Address.Hy do iex> Faker.Address.Hy.zip_code() "0154" + iex> Faker.Address.Hy.zip_code() + "2646" + iex> Faker.Address.Hy.zip_code() + "1083" + iex> Faker.Address.Hy.zip_code() + "2970" """ @spec zip_code() :: String.t() def zip_code do From 71cd9624d4be9e45edb2f950510d7590cc6e47b0 Mon Sep 17 00:00:00 2001 From: Marcus Wood Date: Tue, 10 Sep 2024 13:54:33 +1000 Subject: [PATCH 26/92] Discard changes to lib/faker/address/it.ex --- lib/faker/address/it.ex | 114 ++++++++++++++++++++++++++++++++++++---- 1 file changed, 104 insertions(+), 10 deletions(-) diff --git a/lib/faker/address/it.ex b/lib/faker/address/it.ex index 30597f73b..6505dbc08 100644 --- a/lib/faker/address/it.ex +++ b/lib/faker/address/it.ex @@ -14,6 +14,12 @@ defmodule Faker.Address.It do iex> Faker.Address.It.building_number() "154" + iex> Faker.Address.It.building_number() + "64" + iex> Faker.Address.It.building_number() + "1" + iex> Faker.Address.It.building_number() + "832" """ @spec building_number() :: String.t() def building_number do @@ -28,7 +34,13 @@ defmodule Faker.Address.It do ## Examples iex> Faker.Address.It.city() - "Dionigi di sotto" + "Dionigi Marittima" + iex> Faker.Address.It.city() + "Quarto Gennaro" + iex> Faker.Address.It.city() + "Sesto Maurizia" + iex> Faker.Address.It.city() + "Case di Taffy" """ @spec city() :: String.t() def city do @@ -46,7 +58,13 @@ defmodule Faker.Address.It do ## Examples iex> Faker.Address.It.city_prefix() - "Settimo" + "Quarto" + iex> Faker.Address.It.city_prefix() + "Castello" + iex> Faker.Address.It.city_prefix() + "Quarto" + iex> Faker.Address.It.city_prefix() + "Santa" """ @spec city_prefix() :: String.t() sampler(:city_prefix, [ @@ -70,15 +88,19 @@ defmodule Faker.Address.It do ## Examples + iex> Faker.Address.It.city_suffix() + "di sotto" iex> Faker.Address.It.city_suffix() "di sopra" + iex> Faker.Address.It.city_suffix() + "Marittima" """ @spec city_suffix() :: String.t() sampler(:city_suffix, [ "al mare", - "Marittima", "di sopra", - "di sotto" + "di sotto", + "Marittima" ]) @doc """ @@ -88,7 +110,13 @@ defmodule Faker.Address.It do ## Examples iex> Faker.Address.It.country() - "Estonia" + "Etiopia" + iex> Faker.Address.It.country() + "Cipro" + iex> Faker.Address.It.country() + "Timor Leste" + iex> Faker.Address.It.country() + "Nicaragua" """ @spec country() :: String.t() sampler(:country, [ @@ -349,7 +377,9 @@ defmodule Faker.Address.It do ## Examples iex> Faker.Address.It.country_code() - "EE" + "CO" + iex> Faker.Address.It.country_code() + "LV" """ @spec country_code() :: String.t() sampler(:country_code, [ @@ -609,6 +639,12 @@ defmodule Faker.Address.It do iex> Faker.Address.It.secondary_address() "/A" + iex> Faker.Address.It.secondary_address() + "/B" + iex> Faker.Address.It.secondary_address() + "/A" + iex> Faker.Address.It.secondary_address() + "Edificio 26" """ @spec secondary_address() :: String.t() def secondary_address do @@ -633,7 +669,13 @@ defmodule Faker.Address.It do ## Examples iex> Faker.Address.It.region() - "Liguria" + "Molise" + iex> Faker.Address.It.region() + "Basilicata" + iex> Faker.Address.It.region() + "Toscana" + iex> Faker.Address.It.region() + "Emilia-Romagna" """ @spec region() :: String.t() sampler(:region, [ @@ -676,7 +718,13 @@ defmodule Faker.Address.It do ## Examples iex> Faker.Address.It.province() - "Nuoro" + "Barletta-Andria-Trani" + iex> Faker.Address.It.province() + "Trento" + iex> Faker.Address.It.province() + "Pavia" + iex> Faker.Address.It.province() + "Caserta" """ @spec province() :: String.t() sampler(:province, [ @@ -801,6 +849,12 @@ defmodule Faker.Address.It do iex> Faker.Address.It.province_abbr() "BA" + iex> Faker.Address.It.province_abbr() + "TR" + iex> Faker.Address.It.province_abbr() + "PG" + iex> Faker.Address.It.province_abbr() + "CE" """ @spec province_abbr() :: String.t() sampler(:province_abbr, [ @@ -921,6 +975,12 @@ defmodule Faker.Address.It do iex> Faker.Address.It.region_province_abbr() ["Calabria", "Reggio di Calabria", "RC"] + iex> Faker.Address.It.region_province_abbr() + ["Trentino-Alto Adige/Südtirol", "Bolzano/Bozen", "BZ"] + iex> Faker.Address.It.region_province_abbr() + ["Puglia", "Bari", "BA"] + iex> Faker.Address.It.region_province_abbr() + ["Emilia-Romagna", "Piacenza", "PC"] """ @spec region_province_abbr() :: [String.t()] sampler(:region_province_abbr, [ @@ -1040,6 +1100,12 @@ defmodule Faker.Address.It do iex> Faker.Address.It.street_address() "Corso Agave, 2" + iex> Faker.Address.It.street_address() + "Viale Keith, 083" + iex> Faker.Address.It.street_address() + "Strada per Liguria, 523" + iex> Faker.Address.It.street_address() + "Viale De Rosa, 03" """ @spec street_address() :: String.t() def street_address do @@ -1052,9 +1118,13 @@ defmodule Faker.Address.It do ## Examples iex> Faker.Address.It.street_address(true) - "Viale Congo, 51/C" + "Corso Agave, 2/B" + iex> Faker.Address.It.street_address(false) + "Via per Piemonte, 832" + iex> Faker.Address.It.street_address(false) + "Vicolo Longo, 2" iex> Faker.Address.It.street_address(false) - "Strada per Milano, 55" + "Via Privata Galli, 2" """ @spec street_address(true | any) :: String.t() def street_address(true), do: street_address() <> secondary_address() @@ -1067,6 +1137,12 @@ defmodule Faker.Address.It do iex> Faker.Address.It.street_name() "Corso Agave" + iex> Faker.Address.It.street_name() + "Via Privata Gennaro Mazza" + iex> Faker.Address.It.street_name() + "Vicolo Shaula Lombardi" + iex> Faker.Address.It.street_name() + "Strada per Giuliani" """ @spec street_name() :: String.t() def street_name do @@ -1090,6 +1166,12 @@ defmodule Faker.Address.It do iex> Faker.Address.It.street_prefix() "Vicolo" + iex> Faker.Address.It.street_prefix() + "Corso" + iex> Faker.Address.It.street_prefix() + "Piazzale" + iex> Faker.Address.It.street_prefix() + "Piazza" """ @spec street_prefix() :: String.t() sampler(:street_prefix, [ @@ -1111,6 +1193,12 @@ defmodule Faker.Address.It do iex> Faker.Address.It.time_zone() "Australia/Sydney" + iex> Faker.Address.It.time_zone() + "America/Guyana" + iex> Faker.Address.It.time_zone() + "Asia/Kathmandu" + iex> Faker.Address.It.time_zone() + "Europa/Vienna" """ @spec time_zone() :: String.t() sampler(:time_zone, [ @@ -1248,6 +1336,12 @@ defmodule Faker.Address.It do iex> Faker.Address.It.zip_code() "01542" + iex> Faker.Address.It.zip_code() + "64610" + iex> Faker.Address.It.zip_code() + "83297" + iex> Faker.Address.It.zip_code() + "05235" """ @spec zip_code() :: String.t() def zip_code do From c3464de5270264af2766a5c0d3868f5c9f395210 Mon Sep 17 00:00:00 2001 From: Marcus Wood Date: Tue, 10 Sep 2024 13:54:42 +1000 Subject: [PATCH 27/92] Discard changes to lib/faker/address/pt_br.ex --- lib/faker/address/pt_br.ex | 98 ++++++++++++++++++++++++++++++++++++-- 1 file changed, 93 insertions(+), 5 deletions(-) diff --git a/lib/faker/address/pt_br.ex b/lib/faker/address/pt_br.ex index e8a3a32a5..032c11286 100644 --- a/lib/faker/address/pt_br.ex +++ b/lib/faker/address/pt_br.ex @@ -14,6 +14,12 @@ defmodule Faker.Address.PtBr do iex> Faker.Address.PtBr.building_number() "s/n" + iex> Faker.Address.PtBr.building_number() + "5426" + iex> Faker.Address.PtBr.building_number() + "6" + iex> Faker.Address.PtBr.building_number() + "0832" """ @spec building_number() :: String.t() def building_number do @@ -29,6 +35,12 @@ defmodule Faker.Address.PtBr do iex> Faker.Address.PtBr.city() "Senador Kaique Paulista" + iex> Faker.Address.PtBr.city() + "São Roberta dos Dourados" + iex> Faker.Address.PtBr.city() + "Salto das Flores" + iex> Faker.Address.PtBr.city() + "Kléber" """ @spec city() :: String.t() def city do @@ -49,7 +61,13 @@ defmodule Faker.Address.PtBr do ## Examples iex> Faker.Address.PtBr.city_suffixes() - "de Goiás" + "da Serra" + iex> Faker.Address.PtBr.city_suffixes() + "dos Dourados" + iex> Faker.Address.PtBr.city_suffixes() + "da Serra" + iex> Faker.Address.PtBr.city_suffixes() + "Paulista" """ @spec city_suffixes() :: String.t() sampler(:city_suffixes, [ @@ -81,6 +99,12 @@ defmodule Faker.Address.PtBr do iex> Faker.Address.PtBr.city_prefix() "Santo" + iex> Faker.Address.PtBr.city_prefix() + "Senador" + iex> Faker.Address.PtBr.city_prefix() + "Senador" + iex> Faker.Address.PtBr.city_prefix() + "Alta" """ @spec city_prefix() :: String.t() sampler(:city_prefix, [ @@ -115,6 +139,12 @@ defmodule Faker.Address.PtBr do iex> Faker.Address.PtBr.country() "Ilhas Virgens Britânicas" + iex> Faker.Address.PtBr.country() + "Coreia do Sul" + iex> Faker.Address.PtBr.country() + "Bolívia" + iex> Faker.Address.PtBr.country() + "Mongólia" """ @spec country() :: String.t() sampler(:country, [ @@ -393,6 +423,12 @@ defmodule Faker.Address.PtBr do iex> Faker.Address.PtBr.secondary_address() "Sala 154" + iex> Faker.Address.PtBr.secondary_address() + "Sala 646" + iex> Faker.Address.PtBr.secondary_address() + "AP 083" + iex> Faker.Address.PtBr.secondary_address() + "Sala 970" """ @spec secondary_address() :: String.t() def secondary_address do @@ -407,7 +443,13 @@ defmodule Faker.Address.PtBr do ## Examples iex> Faker.Address.PtBr.state() - "Espírito Santo" + "Rondônia" + iex> Faker.Address.PtBr.state() + "Rio Grande do Sul" + iex> Faker.Address.PtBr.state() + "Distrito Federal" + iex> Faker.Address.PtBr.state() + "Ceará" """ @spec state() :: String.t() sampler(:state, [ @@ -446,7 +488,13 @@ defmodule Faker.Address.PtBr do ## Examples iex> Faker.Address.PtBr.neighborhood() - "Candelaria" + "Granja De Freitas" + iex> Faker.Address.PtBr.neighborhood() + "Novo Ouro Preto" + iex> Faker.Address.PtBr.neighborhood() + "Padre Eustáquio" + iex> Faker.Address.PtBr.neighborhood() + "Nossa Senhora Aparecida" """ @spec neighborhood() :: String.t() @@ -941,7 +989,13 @@ defmodule Faker.Address.PtBr do ## Examples iex> Faker.Address.PtBr.state_abbr() - "ES" + "RO" + iex> Faker.Address.PtBr.state_abbr() + "RS" + iex> Faker.Address.PtBr.state_abbr() + "DF" + iex> Faker.Address.PtBr.state_abbr() + "CE" """ @spec state_abbr() :: String.t() sampler(:state_abbr, [ @@ -981,6 +1035,12 @@ defmodule Faker.Address.PtBr do iex> Faker.Address.PtBr.street_address() "Estação Kaique, 2" + iex> Faker.Address.PtBr.street_address() + "Lagoa Matheus, 0832" + iex> Faker.Address.PtBr.street_address() + "Estrada Diegues, s/n" + iex> Faker.Address.PtBr.street_address() + "Praia Limeira, 020" """ @spec street_address() :: String.t() def street_address do @@ -995,7 +1055,11 @@ defmodule Faker.Address.PtBr do iex> Faker.Address.PtBr.street_address(true) "Estação Kaique, 2 Sala 461" iex> Faker.Address.PtBr.street_address(false) - "Trecho Vicente Videira, 449" + "Conjunto Rodrigo, 970" + iex> Faker.Address.PtBr.street_address(false) + "Trecho Davi Luiz Limeira, 020" + iex> Faker.Address.PtBr.street_address(false) + "Sítio Maria Eduarda, 097" """ @spec street_address(true | any) :: String.t() def street_address(true), do: street_address() <> " " <> secondary_address() @@ -1008,6 +1072,12 @@ defmodule Faker.Address.PtBr do iex> Faker.Address.PtBr.street_name() "Estação Kaique" + iex> Faker.Address.PtBr.street_name() + "Morro Louise Macieira" + iex> Faker.Address.PtBr.street_name() + "Loteamento Maria Alice Junqueira" + iex> Faker.Address.PtBr.street_name() + "Condomínio da Maia" """ @spec street_name() :: String.t() def street_name do @@ -1027,6 +1097,12 @@ defmodule Faker.Address.PtBr do iex> Faker.Address.PtBr.street_prefix() "Recanto" + iex> Faker.Address.PtBr.street_prefix() + "Estação" + iex> Faker.Address.PtBr.street_prefix() + "Feira" + iex> Faker.Address.PtBr.street_prefix() + "Fazenda" """ @spec street_prefix() :: String.t() sampler(:street_prefix, [ @@ -1084,6 +1160,12 @@ defmodule Faker.Address.PtBr do iex> Faker.Address.PtBr.time_zone() "Australia/Sydney" + iex> Faker.Address.PtBr.time_zone() + "America/Guyana" + iex> Faker.Address.PtBr.time_zone() + "Asia/Kathmandu" + iex> Faker.Address.PtBr.time_zone() + "Europa/Vienna" """ @spec time_zone() :: String.t() sampler(:time_zone, [ @@ -1221,6 +1303,12 @@ defmodule Faker.Address.PtBr do iex> Faker.Address.PtBr.zip_code() "15426461" + iex> Faker.Address.PtBr.zip_code() + "83297052" + iex> Faker.Address.PtBr.zip_code() + "57.020-303" + iex> Faker.Address.PtBr.zip_code() + "09733-760" """ @spec zip_code() :: String.t() def zip_code do From 445a39a31498c9f663cfb86cc4d4e9a75a5e6d7f Mon Sep 17 00:00:00 2001 From: Marcus Wood Date: Tue, 10 Sep 2024 13:56:28 +1000 Subject: [PATCH 28/92] Discard changes to lib/faker/address/ru.ex --- lib/faker/address/ru.ex | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/lib/faker/address/ru.ex b/lib/faker/address/ru.ex index 9e31c43af..b81e59380 100644 --- a/lib/faker/address/ru.ex +++ b/lib/faker/address/ru.ex @@ -12,6 +12,12 @@ defmodule Faker.Address.Ru do iex> Faker.Address.Ru.country() "Белоруссия" + iex> Faker.Address.Ru.country() + "Австрия" + iex> Faker.Address.Ru.country() + "Ирландия" + iex> Faker.Address.Ru.country() + "Тринидад и Тобаго" """ @spec country() :: String.t() sampler(:country, [ @@ -217,7 +223,13 @@ defmodule Faker.Address.Ru do ## Examples iex> Faker.Address.Ru.state() - "Псковская область" + "Самарская область" + iex> Faker.Address.Ru.state() + "Орловская область" + iex> Faker.Address.Ru.state() + "Рязанская область" + iex> Faker.Address.Ru.state() + "Волгоградская область" """ @spec state() :: String.t() sampler(:state, [ From a482227cbaccd3d8b522331329087b6738e829bf Mon Sep 17 00:00:00 2001 From: Marcus Wood Date: Tue, 10 Sep 2024 13:56:45 +1000 Subject: [PATCH 29/92] Discard changes to lib/faker/airports.ex --- lib/faker/airports.ex | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/lib/faker/airports.ex b/lib/faker/airports.ex index e045db8e5..211062bf5 100644 --- a/lib/faker/airports.ex +++ b/lib/faker/airports.ex @@ -11,7 +11,13 @@ defmodule Faker.Airports do ## Examples iex> Faker.Airports.icao() - "YGIA" + "SNOS" + iex> Faker.Airports.icao() + "UNBG" + iex> Faker.Airports.icao() + "KLOM" + iex> Faker.Airports.icao() + "HCME" """ @spec icao() :: String.t() sampler(:icao, [ @@ -1023,7 +1029,13 @@ defmodule Faker.Airports do ## Examples iex> Faker.Airports.iata() - "HVD" + "BFU" + iex> Faker.Airports.iata() + "FMM" + iex> Faker.Airports.iata() + "YUS" + iex> Faker.Airports.iata() + "YPH" """ @spec iata() :: String.t() sampler(:iata, [ From d9e4af5805278c0960599952566ac87e0e9ccb15 Mon Sep 17 00:00:00 2001 From: Marcus Wood Date: Tue, 10 Sep 2024 13:56:52 +1000 Subject: [PATCH 30/92] Discard changes to lib/faker/airports/en.ex --- lib/faker/airports/en.ex | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/lib/faker/airports/en.ex b/lib/faker/airports/en.ex index 758fb5283..f503f4027 100644 --- a/lib/faker/airports/en.ex +++ b/lib/faker/airports/en.ex @@ -11,7 +11,13 @@ defmodule Faker.Airports.En do ## Examples iex> Faker.Airports.En.name() - "Rabat-Sale Airport" + "Union Island International Airport" + iex> Faker.Airports.En.name() + "St. John's International Airport" + iex> Faker.Airports.En.name() + "Jizan Regional Airport" + iex> Faker.Airports.En.name() + "Bisho Airport" """ @spec name() :: String.t() From df44be9b785025d5a1701985b108318706a0092f Mon Sep 17 00:00:00 2001 From: Marcus Wood Date: Tue, 10 Sep 2024 13:56:58 +1000 Subject: [PATCH 31/92] Discard changes to lib/faker/airports/pt_br.ex --- lib/faker/airports/pt_br.ex | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/lib/faker/airports/pt_br.ex b/lib/faker/airports/pt_br.ex index 0f86bd323..9f0a64c90 100644 --- a/lib/faker/airports/pt_br.ex +++ b/lib/faker/airports/pt_br.ex @@ -11,7 +11,13 @@ defmodule Faker.Airports.PtBr do ## Examples iex> Faker.Airports.PtBr.name() - "Aeroporto Internacional Marechal Cunha Machado (SLZ/SBSL)" + "Aeroporto de Alcântara (QAH/SNCW)" + iex> Faker.Airports.PtBr.name() + "Aeroporto Internacional Presidente Castro Pinto (JPA/SBJP)" + iex> Faker.Airports.PtBr.name() + "Aeroporto Internacional Pinto Martins (FOR/SBFZ)" + iex> Faker.Airports.PtBr.name() + "Aeroporto Internacional Salgado Filho (POA/SBPA)" """ @spec name() :: String.t() From 05e24f3815e80cafc1fa574de2a7c0f470623463 Mon Sep 17 00:00:00 2001 From: Marcus Wood Date: Tue, 10 Sep 2024 13:57:15 +1000 Subject: [PATCH 32/92] Discard changes to lib/faker/app.ex --- lib/faker/app.ex | 30 +++++++++++++++++++++++++++--- 1 file changed, 27 insertions(+), 3 deletions(-) diff --git a/lib/faker/app.ex b/lib/faker/app.ex index cadc69353..cf5b56621 100644 --- a/lib/faker/app.ex +++ b/lib/faker/app.ex @@ -14,7 +14,13 @@ defmodule Faker.App do ## Examples iex> Faker.App.version() - "2.4" + "0.1.5" + iex> Faker.App.version() + "2.6.4" + iex> Faker.App.version() + "0.10" + iex> Faker.App.version() + "3.2" """ @spec version() :: String.t() def version do @@ -36,7 +42,13 @@ defmodule Faker.App do ## Examples iex> Faker.App.semver() - "2.10.14" + "5.42.64" + iex> Faker.App.semver() + "0.2.8" + iex> Faker.App.semver() + "7.0.5" + iex> Faker.App.semver() + "5.7.0" """ @spec semver(Keyword.t()) :: String.t() def semver(opts \\ []) do @@ -94,6 +106,12 @@ defmodule Faker.App do iex> Faker.App.name() "Redhold" + iex> Faker.App.name() + "Tempsoft" + iex> Faker.App.name() + "Tempsoft" + iex> Faker.App.name() + "Quo Lux" """ @spec name() :: String.t() sampler(:name, [ @@ -167,7 +185,13 @@ defmodule Faker.App do ## Examples iex> Faker.App.author() - "Aglae Rempel" + "Mr. Ozella Sipes" + iex> Faker.App.author() + "Aniya Schiller" + iex> Faker.App.author() + "Frederique Murphy" + iex> Faker.App.author() + "Rutherford Inc" """ @spec author() :: String.t() def author, do: author(Faker.random_between(0, 1)) From 79372810c5e90d8e15c8d8fbafff1028b55f74b2 Mon Sep 17 00:00:00 2001 From: Marcus Wood Date: Tue, 10 Sep 2024 13:57:20 +1000 Subject: [PATCH 33/92] Discard changes to lib/faker/avatar.ex --- lib/faker/avatar.ex | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/lib/faker/avatar.ex b/lib/faker/avatar.ex index 209a2d745..80684b806 100644 --- a/lib/faker/avatar.ex +++ b/lib/faker/avatar.ex @@ -12,6 +12,12 @@ defmodule Faker.Avatar do iex> Faker.Avatar.image_url() "https://robohash.org/set_set1/bgset_bg2/kQqaIfGqxsjFoNIT" + iex> Faker.Avatar.image_url() + "https://robohash.org/set_set2/bgset_bg2/6" + iex> Faker.Avatar.image_url() + "https://robohash.org/set_set2/bgset_bg2/J" + iex> Faker.Avatar.image_url() + "https://robohash.org/set_set3/bgset_bg1/JNth88PrhGDhwp4LNQMt" """ @spec image_url() :: String.t() def image_url do @@ -27,6 +33,10 @@ defmodule Faker.Avatar do "https://robohash.org/faker" iex> Faker.Avatar.image_url("elixir") "https://robohash.org/elixir" + iex> Faker.Avatar.image_url("plug") + "https://robohash.org/plug" + iex> Faker.Avatar.image_url("ecto") + "https://robohash.org/ecto" """ @spec image_url(binary) :: String.t() def image_url(slug) do @@ -40,9 +50,13 @@ defmodule Faker.Avatar do ## Examples iex> Faker.Avatar.image_url(200, 200) - "https://robohash.org/set_set3/bgset_bg2/oQAJDfv8?size=200x200" + "https://robohash.org/set_set2/bgset_bg2/ppkQqaIfGqx?size=200x200" iex> Faker.Avatar.image_url(800, 600) - "https://robohash.org/set_set2/bgset_bg2/zi6hv78yuUKwc1jeSsL?size=800x600" + "https://robohash.org/set_set2/bgset_bg2/oNITNnu6?size=800x600" + iex> Faker.Avatar.image_url(32, 32) + "https://robohash.org/set_set3/bgset_bg1/J?size=32x32" + iex> Faker.Avatar.image_url(128, 128) + "https://robohash.org/set_set1/bgset_bg2/JNth88PrhGDhwp4LNQMt?size=128x128" """ @spec image_url(integer, integer) :: String.t() def image_url(width, height) @@ -60,6 +74,10 @@ defmodule Faker.Avatar do "https://robohash.org/phoenix?size=100x100" iex> Faker.Avatar.image_url("haskell", 200, 200) "https://robohash.org/haskell?size=200x200" + iex> Faker.Avatar.image_url("ocaml", 300, 300) + "https://robohash.org/ocaml?size=300x300" + iex> Faker.Avatar.image_url("idris", 400, 400) + "https://robohash.org/idris?size=400x400" """ @spec image_url(binary, integer, integer) :: String.t() def image_url(slug, width, height) From ba0636ddf360fab08d794ac1e9dd20490f711c56 Mon Sep 17 00:00:00 2001 From: Marcus Wood Date: Tue, 10 Sep 2024 13:57:26 +1000 Subject: [PATCH 34/92] Discard changes to lib/faker/aws/en.ex --- lib/faker/aws/en.ex | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/lib/faker/aws/en.ex b/lib/faker/aws/en.ex index 417e94cb2..96f030df3 100644 --- a/lib/faker/aws/en.ex +++ b/lib/faker/aws/en.ex @@ -12,6 +12,12 @@ defmodule Faker.Aws.En do iex> Faker.Aws.En.region_name() "Asia Pacific (Tokyo)" + iex> Faker.Aws.En.region_name() + "US East (Ohio)" + iex> Faker.Aws.En.region_name() + "Europe (Milan)" + iex> Faker.Aws.En.region_name() + "Africa (Cape Town)" """ @spec region_name() :: String.t() sampler(:region_name, [ @@ -44,6 +50,12 @@ defmodule Faker.Aws.En do iex> Faker.Aws.En.region_code() "ap-northeast-1" + iex> Faker.Aws.En.region_code() + "us-east-2" + iex> Faker.Aws.En.region_code() + "eu-south-1" + iex> Faker.Aws.En.region_code() + "af-south-1" """ @spec region_code() :: String.t() sampler(:region_code, [ @@ -76,6 +88,12 @@ defmodule Faker.Aws.En do iex> Faker.Aws.En.service() "AWS Compute Optimizer" + iex> Faker.Aws.En.service() + "Ground Station" + iex> Faker.Aws.En.service() + "Neptune" + iex> Faker.Aws.En.service() + "DataSync" """ @spec service() :: String.t() sampler(:service, [ @@ -231,6 +249,12 @@ defmodule Faker.Aws.En do iex> Faker.Aws.En.s3_action() "DeleteBucketTagging" + iex> Faker.Aws.En.s3_action() + "DeleteObjects" + iex> Faker.Aws.En.s3_action() + "PutPublicAccessBlock" + iex> Faker.Aws.En.s3_action() + "PutBucketReplication" """ @spec s3_action() :: String.t() sampler(:s3_action, [ @@ -331,6 +355,12 @@ defmodule Faker.Aws.En do iex> Faker.Aws.En.rds_action() "DeleteDBClusterEndpoint" + iex> Faker.Aws.En.rds_action() + "CopyDBSnapshot" + iex> Faker.Aws.En.rds_action() + "ModifyDBParameterGroup" + iex> Faker.Aws.En.rds_action() + "DescribeDBClusterSnapshots" """ @spec rds_action() :: String.t() sampler(:rds_action, [ @@ -473,6 +503,12 @@ defmodule Faker.Aws.En do iex> Faker.Aws.En.ec2_action() "CreateVpcEndpoint" + iex> Faker.Aws.En.ec2_action() + "RevokeSecurityGroupEgress" + iex> Faker.Aws.En.ec2_action() + "GetTransitGatewayRouteTableAssociations" + iex> Faker.Aws.En.ec2_action() + "RunScheduledInstances" """ @spec ec2_action() :: String.t() sampler(:ec2_action, [ From bd461e40e3f0c824e7779d78a9a7dc260d222e4b Mon Sep 17 00:00:00 2001 From: Marcus Wood Date: Tue, 10 Sep 2024 13:57:39 +1000 Subject: [PATCH 35/92] Discard changes to lib/faker/aws/fr.ex --- lib/faker/aws/fr.ex | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/faker/aws/fr.ex b/lib/faker/aws/fr.ex index 8192929da..90b4c7f37 100644 --- a/lib/faker/aws/fr.ex +++ b/lib/faker/aws/fr.ex @@ -11,6 +11,12 @@ defmodule Faker.Aws.Fr do ## Examples iex> Faker.Aws.Fr.region_name() "Asie Pacifique (Tokyo)" + iex> Faker.Aws.Fr.region_name() + "USA Est (Ohio)" + iex> Faker.Aws.Fr.region_name() + "Europe (Milan)" + iex> Faker.Aws.Fr.region_name() + "Afrique (Le Cap)" """ @spec region_name() :: String.t() sampler(:region_name, [ From ed7635a44f8eed6aa4e819b1606e249fe6753b5f Mon Sep 17 00:00:00 2001 From: Marcus Wood Date: Tue, 10 Sep 2024 13:57:44 +1000 Subject: [PATCH 36/92] Discard changes to lib/faker/aws/pt_br.ex --- lib/faker/aws/pt_br.ex | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/faker/aws/pt_br.ex b/lib/faker/aws/pt_br.ex index 92fe828db..75fa53be1 100644 --- a/lib/faker/aws/pt_br.ex +++ b/lib/faker/aws/pt_br.ex @@ -12,6 +12,12 @@ defmodule Faker.Aws.PtBr do iex> Faker.Aws.PtBr.region_name() "Ásia-Pacífico (Mumbai)" + iex> Faker.Aws.PtBr.region_name() + "Oeste dos EUA (Califórnia do Norte)" + iex> Faker.Aws.PtBr.region_name() + "Leste dos EUA (Virgínia do Norte)" + iex> Faker.Aws.PtBr.region_name() + "Ásia-Pacífico (Hong Kong)" """ @spec region_name() :: String.t() sampler(:region_name, [ From 3c40da70843cb2e3c4119afe5dafdb17a7fe0b31 Mon Sep 17 00:00:00 2001 From: Marcus Wood Date: Tue, 10 Sep 2024 13:57:49 +1000 Subject: [PATCH 37/92] Discard changes to lib/faker/aws/pt_pt.ex --- lib/faker/aws/pt_pt.ex | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/faker/aws/pt_pt.ex b/lib/faker/aws/pt_pt.ex index d205541c1..41f1bb999 100644 --- a/lib/faker/aws/pt_pt.ex +++ b/lib/faker/aws/pt_pt.ex @@ -12,6 +12,12 @@ defmodule Faker.Aws.PtPt do iex> Faker.Aws.PtPt.region_name() "Asia Pacifico (Tóquio)" + iex> Faker.Aws.PtPt.region_name() + "EUA Este (Ohio)" + iex> Faker.Aws.PtPt.region_name() + "Europa (Milão)" + iex> Faker.Aws.PtPt.region_name() + "Africa (Cape Town)" """ @spec region_name() :: String.t() sampler(:region_name, [ From 7638e5e368eeb7c33f3ebc79ac086e9f11dbb729 Mon Sep 17 00:00:00 2001 From: Marcus Wood Date: Tue, 10 Sep 2024 13:57:53 +1000 Subject: [PATCH 38/92] Discard changes to lib/faker/beer.ex --- lib/faker/beer.ex | 66 ++++++++++++++++++++++++++++++++++++++++++----- 1 file changed, 60 insertions(+), 6 deletions(-) diff --git a/lib/faker/beer.ex b/lib/faker/beer.ex index a00ce4f64..be9921e48 100644 --- a/lib/faker/beer.ex +++ b/lib/faker/beer.ex @@ -10,6 +10,12 @@ defmodule Faker.Beer do ## Examples + iex> Faker.Beer.brand() + "Paulaner" + iex> Faker.Beer.brand() + "Pabst Blue Ribbon" + iex> Faker.Beer.brand() + "Kirin Inchiban" iex> Faker.Beer.brand() "Birra Moretti" """ @@ -22,7 +28,13 @@ defmodule Faker.Beer do ## Examples iex> Faker.Beer.name() - "Oak Aged Yeti Imperial Stout" + "Duvel" + iex> Faker.Beer.name() + "Founders Kentucky Breakfast" + iex> Faker.Beer.name() + "Yeti Imperial Stout" + iex> Faker.Beer.name() + "Stone Imperial Russian Stout" """ @spec name() :: String.t() localize(:name) @@ -33,7 +45,13 @@ defmodule Faker.Beer do ## Examples iex> Faker.Beer.hop() - "Mosaic" + "Eroica" + iex> Faker.Beer.hop() + "Bullion" + iex> Faker.Beer.hop() + "Mt. Rainier" + iex> Faker.Beer.hop() + "Citra" """ @spec hop() :: String.t() localize(:hop) @@ -45,6 +63,12 @@ defmodule Faker.Beer do iex> Faker.Beer.yeast() "2206 - Bavarian Lager" + iex> Faker.Beer.yeast() + "3763 - Roeselare Ale Blend" + iex> Faker.Beer.yeast() + "3711 - French Saison" + iex> Faker.Beer.yeast() + "3944 - Belgian Witbier" """ @spec yeast() :: String.t() localize(:yeast) @@ -55,7 +79,13 @@ defmodule Faker.Beer do ## Examples iex> Faker.Beer.malt() - "Chocolate malt" + "Carapils" + iex> Faker.Beer.malt() + "Pale" + iex> Faker.Beer.malt() + "Rye malt" + iex> Faker.Beer.malt() + "Munich" """ @spec malt() :: String.t() localize(:malt) @@ -67,6 +97,12 @@ defmodule Faker.Beer do iex> Faker.Beer.style() "Stout" + iex> Faker.Beer.style() + "European Amber Lager" + iex> Faker.Beer.style() + "Strong Ale" + iex> Faker.Beer.style() + "German Wheat And Rye Beer" """ @spec style() :: String.t() localize(:style) @@ -77,7 +113,13 @@ defmodule Faker.Beer do ## Examples iex> Faker.Beer.ibu() - "65 IBU" + "59 IBU" + iex> Faker.Beer.ibu() + "10 IBU" + iex> Faker.Beer.ibu() + "56 IBU" + iex> Faker.Beer.ibu() + "85 IBU" """ @spec ibu :: String.t() def ibu do @@ -90,7 +132,13 @@ defmodule Faker.Beer do ## Examples iex> Faker.Beer.alcohol() - "60.3%" + "10.1%" + iex> Faker.Beer.alcohol() + "35.4%" + iex> Faker.Beer.alcohol() + "92.6%" + iex> Faker.Beer.alcohol() + "64.6%" """ @spec alcohol :: String.t() def alcohol do @@ -103,7 +151,13 @@ defmodule Faker.Beer do ## Examples iex> Faker.Beer.blg() - "60.3°Blg" + "10.1°Blg" + iex> Faker.Beer.blg() + "35.4°Blg" + iex> Faker.Beer.blg() + "92.6°Blg" + iex> Faker.Beer.blg() + "64.6°Blg" """ @spec blg :: String.t() def blg do From 427852873f93dddda83393a20648c66841c4e391 Mon Sep 17 00:00:00 2001 From: Marcus Wood Date: Tue, 10 Sep 2024 13:57:59 +1000 Subject: [PATCH 39/92] Discard changes to lib/faker/beer/en.ex --- lib/faker/beer/en.ex | 44 ++++++++++++++++++++++++++++++++++++++++---- 1 file changed, 40 insertions(+), 4 deletions(-) diff --git a/lib/faker/beer/en.ex b/lib/faker/beer/en.ex index 90f4cef44..e05100b6b 100644 --- a/lib/faker/beer/en.ex +++ b/lib/faker/beer/en.ex @@ -10,6 +10,12 @@ defmodule Faker.Beer.En do ## Examples + iex> Faker.Beer.En.brand() + "Paulaner" + iex> Faker.Beer.En.brand() + "Pabst Blue Ribbon" + iex> Faker.Beer.En.brand() + "Kirin Inchiban" iex> Faker.Beer.En.brand() "Birra Moretti" """ @@ -57,7 +63,13 @@ defmodule Faker.Beer.En do ## Examples iex> Faker.Beer.En.name() - "Oak Aged Yeti Imperial Stout" + "Duvel" + iex> Faker.Beer.En.name() + "Founders Kentucky Breakfast" + iex> Faker.Beer.En.name() + "Yeti Imperial Stout" + iex> Faker.Beer.En.name() + "Stone Imperial Russian Stout" """ @spec name() :: String.t() sampler(:name, [ @@ -119,7 +131,13 @@ defmodule Faker.Beer.En do ## Examples iex> Faker.Beer.En.hop() - "Mosaic" + "Eroica" + iex> Faker.Beer.En.hop() + "Bullion" + iex> Faker.Beer.En.hop() + "Mt. Rainier" + iex> Faker.Beer.En.hop() + "Citra" """ @spec hop() :: String.t() sampler(:hop, [ @@ -181,8 +199,14 @@ defmodule Faker.Beer.En do ## Examples + iex> Faker.Beer.En.yeast() + "2206 - Bavarian Lager" + iex> Faker.Beer.En.yeast() + "3763 - Roeselare Ale Blend" iex> Faker.Beer.En.yeast() "3711 - French Saison" + iex> Faker.Beer.En.yeast() + "3944 - Belgian Witbier" """ @spec yeast() :: String.t() sampler(:yeast, [ @@ -243,7 +267,13 @@ defmodule Faker.Beer.En do ## Examples iex> Faker.Beer.En.malt() - "Chocolate malt" + "Carapils" + iex> Faker.Beer.En.malt() + "Pale" + iex> Faker.Beer.En.malt() + "Rye malt" + iex> Faker.Beer.En.malt() + "Munich" """ @spec malt() :: String.t() sampler(:malt, [ @@ -271,7 +301,13 @@ defmodule Faker.Beer.En do ## Examples iex> Faker.Beer.En.style() - "English Pale Ale" + "Stout" + iex> Faker.Beer.En.style() + "European Amber Lager" + iex> Faker.Beer.En.style() + "Strong Ale" + iex> Faker.Beer.En.style() + "German Wheat And Rye Beer" """ @spec style() :: String.t() sampler(:style, [ From 5641675cffc741a00e58aa3b06d86048971fff70 Mon Sep 17 00:00:00 2001 From: Marcus Wood Date: Tue, 10 Sep 2024 13:58:05 +1000 Subject: [PATCH 40/92] Discard changes to lib/faker/blockchain/bitcoin.ex --- lib/faker/blockchain/bitcoin.ex | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/faker/blockchain/bitcoin.ex b/lib/faker/blockchain/bitcoin.ex index ecf9d06d5..98c3473f4 100644 --- a/lib/faker/blockchain/bitcoin.ex +++ b/lib/faker/blockchain/bitcoin.ex @@ -11,11 +11,13 @@ defmodule Faker.Blockchain.Bitcoin do ## Examples iex> Faker.Blockchain.Bitcoin.address() - "16UZtfPcBYxawLfL2PBG1CnGPWKBZSExTr" + "1Lb2DM8vNXubePBWV7xmRnqJp5YT3BatcQ" + iex> Faker.Blockchain.Bitcoin.address() + "1erV2PhPaR4ndbEvLWDD9KX8btdNJZXt5" iex> Faker.Blockchain.Bitcoin.address(:main) - "1F84ppNY7ggA9uNr3SwkeRsqRjjN7mQ5eG" + "1Pn5NbAbT5hZocVWKSBtmqygdVbeVoheWk" iex> Faker.Blockchain.Bitcoin.address(:testnet) - "muhc9kTak4P9KdThQyb7VPG4dYhP4v6bVj" + "mj1Vh7G8JZxg8gBtcQic2opTxtKUCQBBc5" """ @spec address(atom) :: binary def address(:testnet) do From 5d5cb8bdfcff5c8d554ddee21dfb5a6d131bba7a Mon Sep 17 00:00:00 2001 From: Marcus Wood Date: Tue, 10 Sep 2024 13:58:11 +1000 Subject: [PATCH 41/92] Discard changes to lib/faker/blockchain/ethereum.ex --- lib/faker/blockchain/ethereum.ex | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/lib/faker/blockchain/ethereum.ex b/lib/faker/blockchain/ethereum.ex index e3f14ed81..530e39ef6 100644 --- a/lib/faker/blockchain/ethereum.ex +++ b/lib/faker/blockchain/ethereum.ex @@ -12,7 +12,13 @@ defmodule Faker.Blockchain.Ethereum do ## Examples iex> Faker.Blockchain.Ethereum.address() - "0x3c0f50d05f218483dc1c6bb76224822be07dd502" + "0xd6d98b88c866f496dbd4de7ba48d0f5229fa7bf9" + iex> Faker.Blockchain.Ethereum.address() + "0x0728b27267bc5b7c964f332dc9edd02cc9f381de" + iex> Faker.Blockchain.Ethereum.address() + "0xf9d922a146bf85508a5f03ff18750bf363f4aef1" + iex> Faker.Blockchain.Ethereum.address() + "0x264e3bcc9b5c2accb99a3a4993ad56b778dc26ed" """ @spec address() :: address def address do @@ -27,8 +33,14 @@ defmodule Faker.Blockchain.Ethereum do ## Examples - iex> Faker.Blockchain.Ethereum.signature() - "0x3c0f50d05f218483dc1c6bb76224822be07dd502fdb6e6e98835badf7b5bfc3b96b2fd9c2117e85e9ae7dd7c2d08da0c25c868fc64fc1145278fd7f99b958599ef" + iex> Faker.Blockchain.Ethereum.signature() + "0xd6d98b88c866f496dbd4de7ba48d0f5229fa7bf90728b27267bc5b7c964f332dc9edd02cc9f381def9d922a146bf85508a5f03ff18750bf363f4aef1264e3bcc9b" + iex> Faker.Blockchain.Ethereum.signature() + "0x5c2accb99a3a4993ad56b778dc26eddb7e0c2e49c4e638e62de32933bc3525bb4594a1a378dc29f741dd703efd94dd3b6d08feaa53a9a6fb9eea6655545932347c" + iex> Faker.Blockchain.Ethereum.signature() + "0x7457f665824d0e4c8465665584b69644419b5dddff8974b228ed08a17a077d116aea7f26a4bf4aa5fc4841e85670392a32a0980264dc44f82f311ea7289f6b38fd" + iex> Faker.Blockchain.Ethereum.signature() + "0x0bce6fe7988f0f95a5e752150f018979129ef5d015ecf11dab74c42d0a51b8f7beb51374870811d45ca30920d02a913832764bac562323b4aafae9943a12de8d42" """ @spec signature() :: signature def signature do From 9f7ba0d8fca281f099f3c5f5b277135e9ebe9307 Mon Sep 17 00:00:00 2001 From: Marcus Wood Date: Tue, 10 Sep 2024 13:58:24 +1000 Subject: [PATCH 42/92] Discard changes to lib/faker/cannabis.ex --- lib/faker/cannabis.ex | 84 ++++++++++++++++++++++++++++++++++++++----- 1 file changed, 75 insertions(+), 9 deletions(-) diff --git a/lib/faker/cannabis.ex b/lib/faker/cannabis.ex index 6b9a27da0..17de60506 100644 --- a/lib/faker/cannabis.ex +++ b/lib/faker/cannabis.ex @@ -11,7 +11,13 @@ defmodule Faker.Cannabis do ## Examples iex> Faker.Cannabis.strain() - "Lemon Skunk" + "Critical Kush" + iex> Faker.Cannabis.strain() + "Blue Dream" + iex> Faker.Cannabis.strain() + "Mr. Nice Guy" + iex> Faker.Cannabis.strain() + "Gorilla Glue" """ @spec strain() :: String.t() localize(:strain) @@ -21,8 +27,14 @@ defmodule Faker.Cannabis do ## Examples + iex> Faker.Cannabis.cannabinoid() + "Cannabinol" + iex> Faker.Cannabis.cannabinoid() + "Cannabigerolic Acid" iex> Faker.Cannabis.cannabinoid() "Cannabinolic Acid" + iex> Faker.Cannabis.cannabinoid() + "Cannabicyclol" """ @spec cannabinoid() :: String.t() localize(:cannabinoid) @@ -33,7 +45,13 @@ defmodule Faker.Cannabis do ## Examples iex> Faker.Cannabis.cannabinoid_abbreviation() - "CBDa" + "THCa" + iex> Faker.Cannabis.cannabinoid_abbreviation() + "THCv" + iex> Faker.Cannabis.cannabinoid_abbreviation() + "CBC" + iex> Faker.Cannabis.cannabinoid_abbreviation() + "CBG" """ @spec cannabinoid_abbreviation() :: String.t() localize(:cannabinoid_abbreviation) @@ -44,7 +62,13 @@ defmodule Faker.Cannabis do ## Examples iex> Faker.Cannabis.terpene() - "(-)-Isopulegol" + "Camphor" + iex> Faker.Cannabis.terpene() + "Camphene" + iex> Faker.Cannabis.terpene() + "α Pinene" + iex> Faker.Cannabis.terpene() + "Sabinene" """ @spec terpene() :: String.t() localize(:terpene) @@ -55,7 +79,13 @@ defmodule Faker.Cannabis do ## Examples iex> Faker.Cannabis.medical_use() - "anti-histamine" + "analgesic" + iex> Faker.Cannabis.medical_use() + "anti-cancer" + iex> Faker.Cannabis.medical_use() + "anti-cancer" + iex> Faker.Cannabis.medical_use() + "anti-fungal" """ @spec medical_use() :: String.t() localize(:medical_use) @@ -66,7 +96,13 @@ defmodule Faker.Cannabis do ## Examples iex> Faker.Cannabis.health_benefit() - "treats allergy symptoms" + "relieves pain" + iex> Faker.Cannabis.health_benefit() + "inhibits cell growth in tumors/cancer cells" + iex> Faker.Cannabis.health_benefit() + "inhibits cell growth in tumors/cancer cells" + iex> Faker.Cannabis.health_benefit() + "treats fungal infection" """ @spec health_benefit() :: String.t() localize(:health_benefit) @@ -77,7 +113,13 @@ defmodule Faker.Cannabis do ## Examples iex> Faker.Cannabis.category() - "ice hash" + "flower" + iex> Faker.Cannabis.category() + "medical" + iex> Faker.Cannabis.category() + "seeds & clones" + iex> Faker.Cannabis.category() + "live resin" """ @spec category() :: String.t() localize(:category) @@ -89,6 +131,12 @@ defmodule Faker.Cannabis do iex> Faker.Cannabis.type() "hybrid" + iex> Faker.Cannabis.type() + "sativa" + iex> Faker.Cannabis.type() + "hybrid" + iex> Faker.Cannabis.type() + "sativa" """ @spec type() :: String.t() localize(:type) @@ -99,7 +147,13 @@ defmodule Faker.Cannabis do ## Examples iex> Faker.Cannabis.buzzword() - "weed" + "toke" + iex> Faker.Cannabis.buzzword() + "cbd" + iex> Faker.Cannabis.buzzword() + "stoned" + iex> Faker.Cannabis.buzzword() + "stoned" """ @spec buzzword() :: String.t() localize(:buzzword) @@ -110,7 +164,13 @@ defmodule Faker.Cannabis do ## Examples iex> Faker.Cannabis.En.brand() - "Lord Jones" + "Evolab" + iex> Faker.Cannabis.En.brand() + "CI Wholesale" + iex> Faker.Cannabis.En.brand() + "Muy" + iex> Faker.Cannabis.En.brand() + "Chong's Choice" """ @spec brand() :: String.t() localize(:brand) @@ -121,7 +181,13 @@ defmodule Faker.Cannabis do ## Examples iex> Faker.Cannabis.thc() - "28.9%" + "18.1%" + iex> Faker.Cannabis.thc() + "30.4%" + iex> Faker.Cannabis.thc() + "28.6%" + iex> Faker.Cannabis.thc() + "40.6%" """ @spec thc :: String.t() def thc do From fc062f5a787449f0fd614a6c2dad72c9b05f4815 Mon Sep 17 00:00:00 2001 From: Marcus Wood Date: Tue, 10 Sep 2024 14:00:50 +1000 Subject: [PATCH 43/92] Discard changes to lib/faker/cannabis/en.ex --- lib/faker/cannabis/en.ex | 76 +++++++++++++++++++++++++++++++++++----- 1 file changed, 68 insertions(+), 8 deletions(-) diff --git a/lib/faker/cannabis/en.ex b/lib/faker/cannabis/en.ex index 1fe34df09..6adeddd8c 100644 --- a/lib/faker/cannabis/en.ex +++ b/lib/faker/cannabis/en.ex @@ -11,7 +11,13 @@ defmodule Faker.Cannabis.En do ## Examples iex> Faker.Cannabis.En.strain() - "Lemon Skunk" + "Critical Kush" + iex> Faker.Cannabis.En.strain() + "Blue Dream" + iex> Faker.Cannabis.En.strain() + "Mr. Nice Guy" + iex> Faker.Cannabis.En.strain() + "Gorilla Glue" """ @spec strain() :: String.t() sampler(:strain, [ @@ -139,8 +145,14 @@ defmodule Faker.Cannabis.En do ## Examples + iex> Faker.Cannabis.En.cannabinoid() + "Cannabinol" + iex> Faker.Cannabis.En.cannabinoid() + "Cannabigerolic Acid" iex> Faker.Cannabis.En.cannabinoid() "Cannabinolic Acid" + iex> Faker.Cannabis.En.cannabinoid() + "Cannabicyclol" """ @spec cannabinoid() :: String.t() sampler(:cannabinoid, [ @@ -166,7 +178,13 @@ defmodule Faker.Cannabis.En do ## Examples iex> Faker.Cannabis.En.cannabinoid_abbreviation() - "CBDa" + "THCa" + iex> Faker.Cannabis.En.cannabinoid_abbreviation() + "THCv" + iex> Faker.Cannabis.En.cannabinoid_abbreviation() + "CBC" + iex> Faker.Cannabis.En.cannabinoid_abbreviation() + "CBG" """ @spec cannabinoid_abbreviation() :: String.t() sampler(:cannabinoid_abbreviation, [ @@ -195,7 +213,13 @@ defmodule Faker.Cannabis.En do ## Examples iex> Faker.Cannabis.En.terpene() - "(-)-Isopulegol" + "Camphor" + iex> Faker.Cannabis.En.terpene() + "Camphene" + iex> Faker.Cannabis.En.terpene() + "α Pinene" + iex> Faker.Cannabis.En.terpene() + "Sabinene" """ @spec terpene() :: String.t() sampler(:terpene, [ @@ -242,7 +266,13 @@ defmodule Faker.Cannabis.En do ## Examples iex> Faker.Cannabis.En.medical_use() - "anti-histamine" + "analgesic" + iex> Faker.Cannabis.En.medical_use() + "anti-cancer" + iex> Faker.Cannabis.En.medical_use() + "anti-cancer" + iex> Faker.Cannabis.En.medical_use() + "anti-fungal" """ @spec medical_use() :: String.t() sampler(:medical_use, [ @@ -285,7 +315,13 @@ defmodule Faker.Cannabis.En do ## Examples iex> Faker.Cannabis.En.health_benefit() - "treats allergy symptoms" + "relieves pain" + iex> Faker.Cannabis.En.health_benefit() + "inhibits cell growth in tumors/cancer cells" + iex> Faker.Cannabis.En.health_benefit() + "inhibits cell growth in tumors/cancer cells" + iex> Faker.Cannabis.En.health_benefit() + "treats fungal infection" """ @spec health_benefit() :: String.t() sampler(:health_benefit, [ @@ -328,7 +364,13 @@ defmodule Faker.Cannabis.En do ## Examples iex> Faker.Cannabis.En.category() - "ice hash" + "flower" + iex> Faker.Cannabis.En.category() + "medical" + iex> Faker.Cannabis.En.category() + "seeds & clones" + iex> Faker.Cannabis.En.category() + "live resin" """ @spec category() :: String.t() sampler(:category, [ @@ -357,6 +399,12 @@ defmodule Faker.Cannabis.En do iex> Faker.Cannabis.En.type() "hybrid" + iex> Faker.Cannabis.En.type() + "sativa" + iex> Faker.Cannabis.En.type() + "hybrid" + iex> Faker.Cannabis.En.type() + "sativa" """ @spec type() :: String.t() sampler(:type, ["hybrid", "indica", "sativa"]) @@ -367,7 +415,13 @@ defmodule Faker.Cannabis.En do ## Examples iex> Faker.Cannabis.En.buzzword() - "weed" + "toke" + iex> Faker.Cannabis.En.buzzword() + "cbd" + iex> Faker.Cannabis.En.buzzword() + "stoned" + iex> Faker.Cannabis.En.buzzword() + "stoned" """ @spec buzzword() :: String.t() sampler(:buzzword, [ @@ -408,7 +462,13 @@ defmodule Faker.Cannabis.En do ## Examples iex> Faker.Cannabis.En.brand() - "Lord Jones" + "Evolab" + iex> Faker.Cannabis.En.brand() + "CI Wholesale" + iex> Faker.Cannabis.En.brand() + "Muy" + iex> Faker.Cannabis.En.brand() + "Chong's Choice" """ @spec brand() :: String.t() sampler(:brand, [ From 2221d4f4344a67f6600a03272b9645cead2a63ea Mon Sep 17 00:00:00 2001 From: Marcus Wood Date: Tue, 10 Sep 2024 14:01:27 +1000 Subject: [PATCH 44/92] Discard changes to lib/faker/cat.ex --- lib/faker/cat.ex | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/lib/faker/cat.ex b/lib/faker/cat.ex index 32be942ac..77d8987e3 100644 --- a/lib/faker/cat.ex +++ b/lib/faker/cat.ex @@ -10,8 +10,14 @@ defmodule Faker.Cat do ## Examples + iex> Faker.Cat.name() + "Daisy" + iex> Faker.Cat.name() + "Lily" iex> Faker.Cat.name() "Felix" + iex> Faker.Cat.name() + "Max" """ @spec name() :: String.t() localize(:name) @@ -23,6 +29,12 @@ defmodule Faker.Cat do iex> Faker.Cat.breed() "Mekong Bobtail" + iex> Faker.Cat.breed() + "Suphalak" + iex> Faker.Cat.breed() + "Russian White, Black and Tabby" + iex> Faker.Cat.breed() + "Asian Semi-longhair" """ @spec breed() :: String.t() localize(:breed) @@ -33,7 +45,13 @@ defmodule Faker.Cat do ## Examples iex> Faker.Cat.registry() - "Felis Britannica" + "Cat Aficionado Association" + iex> Faker.Cat.registry() + "Fédération Internationale Féline" + iex> Faker.Cat.registry() + "Fédération Internationale Féline" + iex> Faker.Cat.registry() + "Fédération Internationale Féline" """ @spec registry() :: String.t() localize(:registry) From bc6674bf3e7f35e89889bb4ad3908ba04e99470f Mon Sep 17 00:00:00 2001 From: Marcus Wood Date: Tue, 10 Sep 2024 14:01:32 +1000 Subject: [PATCH 45/92] Discard changes to lib/faker/cat/en.ex --- lib/faker/cat/en.ex | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/lib/faker/cat/en.ex b/lib/faker/cat/en.ex index b30956fbd..534db7c87 100644 --- a/lib/faker/cat/en.ex +++ b/lib/faker/cat/en.ex @@ -12,6 +12,12 @@ defmodule Faker.Cat.En do iex> Faker.Cat.En.name() "Daisy" + iex> Faker.Cat.En.name() + "Lily" + iex> Faker.Cat.En.name() + "Felix" + iex> Faker.Cat.En.name() + "Max" """ @spec name() :: String.t() sampler(:name, [ @@ -52,6 +58,12 @@ defmodule Faker.Cat.En do iex> Faker.Cat.En.breed() "Mekong Bobtail" + iex> Faker.Cat.En.breed() + "Suphalak" + iex> Faker.Cat.En.breed() + "Russian White, Black and Tabby" + iex> Faker.Cat.En.breed() + "Asian Semi-longhair" """ @spec breed() :: String.t() sampler(:breed, [ @@ -160,6 +172,12 @@ defmodule Faker.Cat.En do iex> Faker.Cat.En.registry() "Cat Aficionado Association" + iex> Faker.Cat.En.registry() + "Fédération Internationale Féline" + iex> Faker.Cat.En.registry() + "Fédération Internationale Féline" + iex> Faker.Cat.En.registry() + "Fédération Internationale Féline" """ @spec registry() :: String.t() sampler(:registry, [ From cccdaa13c9d5bc6dccb42354d45dd720b7627238 Mon Sep 17 00:00:00 2001 From: Marcus Wood Date: Tue, 10 Sep 2024 14:01:38 +1000 Subject: [PATCH 46/92] Discard changes to lib/faker/cat/pt_br.ex --- lib/faker/cat/pt_br.ex | 24 +++++++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) diff --git a/lib/faker/cat/pt_br.ex b/lib/faker/cat/pt_br.ex index 7a3b33b60..4e7793dc4 100644 --- a/lib/faker/cat/pt_br.ex +++ b/lib/faker/cat/pt_br.ex @@ -11,7 +11,13 @@ defmodule Faker.Cat.PtBr do ## Examples iex> Faker.Cat.PtBr.female_name() - "Nala" + "Samy" + iex> Faker.Cat.PtBr.female_name() + "Linda" + iex> Faker.Cat.PtBr.female_name() + "Úrsula" + iex> Faker.Cat.PtBr.female_name() + "Florinda" """ @spec female_name() :: String.t() sampler(:female_name, [ @@ -103,7 +109,13 @@ defmodule Faker.Cat.PtBr do ## Examples iex> Faker.Cat.PtBr.male_name() - "Platão" + "Soneca" + iex> Faker.Cat.PtBr.male_name() + "Loui" + iex> Faker.Cat.PtBr.male_name() + "Ton" + iex> Faker.Cat.PtBr.male_name() + "Dante" """ @spec male_name() :: String.t() sampler( @@ -198,7 +210,13 @@ defmodule Faker.Cat.PtBr do ## Examples iex> Faker.Cat.PtBr.breed() - "Persa" + "Angorá Turco" + iex> Faker.Cat.PtBr.breed() + "Azul Russo" + iex> Faker.Cat.PtBr.breed() + "Pelo Curto Brasileiro" + iex> Faker.Cat.PtBr.breed() + "Pelo Curto Americano" """ @spec breed() :: String.t() sampler(:breed, [ From 2b64734a737ce0da6152dfba906e2b4f110c3818 Mon Sep 17 00:00:00 2001 From: Marcus Wood Date: Tue, 10 Sep 2024 14:01:52 +1000 Subject: [PATCH 47/92] Discard changes to lib/faker/code.ex --- lib/faker/code.ex | 34 ++++++++++++++++++++++++++++++---- 1 file changed, 30 insertions(+), 4 deletions(-) diff --git a/lib/faker/code.ex b/lib/faker/code.ex index 9e9289e00..bce1205eb 100644 --- a/lib/faker/code.ex +++ b/lib/faker/code.ex @@ -10,8 +10,14 @@ defmodule Faker.Code do ## Examples - iex> Faker.Code.isbn() + iex> Faker.Code.isbn "015426461X" + iex> Faker.Code.isbn + "0832970522" + iex> Faker.Code.isbn + "3570203034" + iex> Faker.Code.isbn + "2097337600" """ defdelegate isbn, to: Faker.Code, as: :isbn10 @@ -20,8 +26,14 @@ defmodule Faker.Code do ## Examples - iex> Faker.Code.isbn10() + iex> Faker.Code.isbn10 "015426461X" + iex> Faker.Code.isbn10 + "0832970522" + iex> Faker.Code.isbn10 + "3570203034" + iex> Faker.Code.isbn10 + "2097337600" """ def isbn10 do sequence = Faker.format("#########") @@ -33,8 +45,14 @@ defmodule Faker.Code do ## Examples - iex> Faker.Code.isbn13() + iex> Faker.Code.isbn13 "9781542646109" + iex> Faker.Code.isbn13 + "9783297052358" + iex> Faker.Code.isbn13 + "9790203032090" + iex> Faker.Code.isbn13 + "9793376033741" """ def isbn13 do sequence = Util.pick(["978", "979"]) <> Faker.format("#########") @@ -46,8 +64,14 @@ defmodule Faker.Code do ## Examples - iex> Faker.Code.issn() + iex> Faker.Code.issn "01542648" + iex> Faker.Code.issn + "61083291" + iex> Faker.Code.issn + "70523576" + iex> Faker.Code.issn + "02030322" """ def issn do sequence = Faker.format("#######") @@ -66,6 +90,8 @@ defmodule Faker.Code do "MC98FOOBAR83" iex> Faker.Code.iban("SM", ["A"]) "SM86A2970523570AY38NWIVZ5XT" + iex> Faker.Code.iban("MC", ["FOO", "BAR"]) + "MC40FOOBAR60" """ defdelegate iban(), to: Faker.Code.Iban defdelegate iban(country_code_or_codes), to: Faker.Code.Iban From dbbd7cf412c26c8ffbd50589f8cfb74f26b782bb Mon Sep 17 00:00:00 2001 From: Marcus Wood Date: Tue, 10 Sep 2024 14:02:05 +1000 Subject: [PATCH 48/92] Discard changes to lib/faker/code/iban.ex --- lib/faker/code/iban.ex | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/lib/faker/code/iban.ex b/lib/faker/code/iban.ex index eca4e2bcd..899e18f3a 100644 --- a/lib/faker/code/iban.ex +++ b/lib/faker/code/iban.ex @@ -10,10 +10,14 @@ defmodule Faker.Code.Iban do ## Examples - iex> Faker.Code.Iban.iban() + iex> Faker.Code.Iban.iban "GI88LRCE6SQ3CQJGP3UHAJD" iex> Faker.Code.Iban.iban("NL") "NL26VYOC3032097337" + iex> Faker.Code.Iban.iban(["NL", "BE"]) + "NL74YRFX4598109960" + iex> Faker.Code.Iban.iban(["NL", "BE"]) + "BE31198979502980" """ @alpha ~w(A B C D E F G H I J K L M N O P Q R S T U V W X Y Z) @@ -93,8 +97,14 @@ defmodule Faker.Code.Iban do ## Examples - iex> Faker.Code.Iban.iban() + iex> Faker.Code.Iban.iban "GI88LRCE6SQ3CQJGP3UHAJD" + iex> Faker.Code.Iban.iban + "BR0302030320973376033745981CB" + iex> Faker.Code.Iban.iban + "BE98607198979502" + iex> Faker.Code.Iban.iban + "PT72807856869061130164499" """ def iban, do: iban(Keyword.keys(@iso_iban_specs)) @@ -109,6 +119,10 @@ defmodule Faker.Code.Iban do "FR650154264610QJGP3UHAJDJ02" iex> Faker.Code.Iban.iban("BE") "BE95030320973376" + iex> Faker.Code.Iban.iban(["NL", "BE"]) + "NL31RFXY5981099607" + iex> Faker.Code.Iban.iban(["BE", "DE"]) + "DE57989795029807856869" """ def iban(country_code_or_codes), do: iban(country_code_or_codes, []) From 2dc7e830a9c92cd9a28304247529ff30b3f127c9 Mon Sep 17 00:00:00 2001 From: Marcus Wood Date: Tue, 10 Sep 2024 14:02:10 +1000 Subject: [PATCH 49/92] Discard changes to lib/faker/color.ex --- lib/faker/color.ex | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/lib/faker/color.ex b/lib/faker/color.ex index 57736bf7a..523409270 100644 --- a/lib/faker/color.ex +++ b/lib/faker/color.ex @@ -12,6 +12,12 @@ defmodule Faker.Color do iex> Faker.Color.rgb_hex() "D6D98B" + iex> Faker.Color.rgb_hex() + "88C866" + iex> Faker.Color.rgb_hex() + "F496DB" + iex> Faker.Color.rgb_hex() + "D4DE7B" """ @spec rgb_hex() :: binary def rgb_hex do @@ -27,6 +33,12 @@ defmodule Faker.Color do iex> Faker.Color.rgb_decimal() {214, 217, 139} + iex> Faker.Color.rgb_decimal() + {136, 200, 102} + iex> Faker.Color.rgb_decimal() + {244, 150, 219} + iex> Faker.Color.rgb_decimal() + {212, 222, 123} """ @spec rgb_decimal() :: {byte, byte, byte} def rgb_decimal do @@ -44,6 +56,12 @@ defmodule Faker.Color do iex> Faker.Color.name() "Red" + iex> Faker.Color.name() + "Green" + iex> Faker.Color.name() + "Brown" + iex> Faker.Color.name() + "Pink" """ @spec name() :: String.t() localize(:name) @@ -55,6 +73,12 @@ defmodule Faker.Color do iex> Faker.Color.fancy_name() "Tawny" + iex> Faker.Color.fancy_name() + "Citrine" + iex> Faker.Color.fancy_name() + "Greige" + iex> Faker.Color.fancy_name() + "Cesious" """ @spec fancy_name() :: String.t() localize(:fancy_name) From 1a830860b77b6e85487023e7b1ff543e78d93645 Mon Sep 17 00:00:00 2001 From: Marcus Wood Date: Tue, 10 Sep 2024 14:03:04 +1000 Subject: [PATCH 50/92] Discard changes to lib/faker/food.ex --- lib/faker/food.ex | 56 +++++++++++++++++++++++++++++++++++++++++++---- 1 file changed, 52 insertions(+), 4 deletions(-) diff --git a/lib/faker/food.ex b/lib/faker/food.ex index 099665a5d..e56030d10 100644 --- a/lib/faker/food.ex +++ b/lib/faker/food.ex @@ -11,7 +11,13 @@ defmodule Faker.Food do ## Examples iex> Faker.Food.dish() - "Ricotta stuffed Ravioli" + "Vegetable Soup" + iex> Faker.Food.dish() + "Fish and chips" + iex> Faker.Food.dish() + "Pork belly buns" + iex> Faker.Food.dish() + "Pasta Carbonara" """ @spec dish() :: String.t() localize(:dish) @@ -23,6 +29,12 @@ defmodule Faker.Food do iex> Faker.Food.description() "Two buttermilk waffles, topped with whipped cream and maple syrup, a side of two eggs served any style, and your choice of smoked bacon or smoked ham." + iex> Faker.Food.description() + "28-day aged 300g USDA Certified Prime Ribeye, rosemary-thyme garlic butter, with choice of two sides." + iex> Faker.Food.description() + "Breaded fried chicken with waffles, and a side of maple syrup." + iex> Faker.Food.description() + "Creamy mascarpone cheese and custard layered between espresso and rum soaked house-made ladyfingers, topped with Valrhona cocoa powder." """ @spec description() :: String.t() localize(:description) @@ -33,7 +45,13 @@ defmodule Faker.Food do ## Examples iex> Faker.Food.ingredient() - "Bocconcini" + "Tomatoes" + iex> Faker.Food.ingredient() + "Albacore Tuna" + iex> Faker.Food.ingredient() + "Potatoes" + iex> Faker.Food.ingredient() + "Tinned" """ @spec ingredient() :: String.t() localize(:ingredient) @@ -44,7 +62,13 @@ defmodule Faker.Food do ## Examples iex> Faker.Food.spice() - "Curry Mild" + "Garlic Salt" + iex> Faker.Food.spice() + "Ras-el-Hanout" + iex> Faker.Food.spice() + "Curry Hot" + iex> Faker.Food.spice() + "Peppercorns Mixed" """ @spec spice() :: String.t() localize(:spice) @@ -54,8 +78,14 @@ defmodule Faker.Food do ## Examples + iex> Faker.Food.measurement() + "teaspoon" + iex> Faker.Food.measurement() + "gallon" iex> Faker.Food.measurement() "pint" + iex> Faker.Food.measurement() + "cup" """ @spec measurement() :: String.t() localize(:measurement) @@ -67,6 +97,12 @@ defmodule Faker.Food do iex> Faker.Food.measurement_size() "1/4" + iex> Faker.Food.measurement_size() + "3" + iex> Faker.Food.measurement_size() + "1" + iex> Faker.Food.measurement_size() + "1/2" """ @spec measurement_size() :: String.t() localize(:measurement_size) @@ -76,8 +112,14 @@ defmodule Faker.Food do ## Examples + iex> Faker.Food.metric_measurement() + "centiliter" + iex> Faker.Food.metric_measurement() + "deciliter" iex> Faker.Food.metric_measurement() "liter" + iex> Faker.Food.metric_measurement() + "milliliter" """ @spec metric_measurement() :: String.t() localize(:metric_measurement) @@ -88,7 +130,13 @@ defmodule Faker.Food do ## Examples iex> Faker.Food.sushi() - "Sea bream" + "Whitespotted conger" + iex> Faker.Food.sushi() + "Japanese horse mackerel" + iex> Faker.Food.sushi() + "Salmon" + iex> Faker.Food.sushi() + "Octopus" """ @spec sushi() :: String.t() localize(:sushi) From f5eff24e918e6d90d8e3d2a50961980bad3b6aaa Mon Sep 17 00:00:00 2001 From: Marcus Wood Date: Tue, 10 Sep 2024 14:03:12 +1000 Subject: [PATCH 51/92] Discard changes to lib/faker/food/pt_br.ex --- lib/faker/food/pt_br.ex | 46 +++++++++++++++++++++++++++++++++++++++-- 1 file changed, 44 insertions(+), 2 deletions(-) diff --git a/lib/faker/food/pt_br.ex b/lib/faker/food/pt_br.ex index f188457d6..95f8d5a50 100644 --- a/lib/faker/food/pt_br.ex +++ b/lib/faker/food/pt_br.ex @@ -12,6 +12,12 @@ defmodule Faker.Food.PtBr do iex> Faker.Food.PtBr.dish() "Asinha de frango" + iex> Faker.Food.PtBr.dish() + "Pizza" + iex> Faker.Food.PtBr.dish() + "Salada Caprese" + iex> Faker.Food.PtBr.dish() + "Peixe frito e batata frita" """ @spec dish() :: String.t() sampler(:dish, [ @@ -48,6 +54,12 @@ defmodule Faker.Food.PtBr do iex> Faker.Food.PtBr.description() "Três ovos com coentro, tomate, cebola, abacate e queijo derretido. Acompanhado com torradas ou croissant." + iex> Faker.Food.PtBr.description() + "Três claras de ovos com espinafre, cogumelos, cebola caramelizada, tomate e queijo com baixo teor de gordura. Acompanhado de torradas integrais." + iex> Faker.Food.PtBr.description() + "Três ovos com coentro, tomate, cebola, abacate e queijo derretido. Acompanhado com torradas ou croissant." + iex> Faker.Food.PtBr.description() + "Três claras de ovos com espinafre, cogumelos, cebola caramelizada, tomate e queijo com baixo teor de gordura. Acompanhado de torradas integrais." """ @spec description() :: String.t() sampler(:description, [ @@ -63,6 +75,12 @@ defmodule Faker.Food.PtBr do iex> Faker.Food.PtBr.ingredient() "Avelã" + iex> Faker.Food.PtBr.ingredient() + "Pepino" + iex> Faker.Food.PtBr.ingredient() + "Polenta" + iex> Faker.Food.PtBr.ingredient() + "Vinagre Balsâmico" """ @spec ingredient() :: String.t() sampler(:ingredient, [ @@ -331,7 +349,13 @@ defmodule Faker.Food.PtBr do ## Examples iex> Faker.Food.PtBr.measurement() - "Xícara" + "Colher de Chá" + iex> Faker.Food.PtBr.measurement() + "Colher de Sopa" + iex> Faker.Food.PtBr.measurement() + "Colher de Chá" + iex> Faker.Food.PtBr.measurement() + "Litro" """ @spec measurement() :: String.t() sampler(:measurement, ["Colher de Chá", "Colher de Sopa", "Copo Americano", "Xícara", "Litro"]) @@ -342,7 +366,13 @@ defmodule Faker.Food.PtBr do ## Examples iex> Faker.Food.PtBr.measurement_size() - "1/2" + "3" + iex> Faker.Food.PtBr.measurement_size() + "1/3" + iex> Faker.Food.PtBr.measurement_size() + "Pitada" + iex> Faker.Food.PtBr.measurement_size() + "2" """ @spec measurement_size() :: String.t() sampler(:measurement_size, ["Pitada", "1/4", "1/3", "1/2", "1", "2", "3"]) @@ -354,6 +384,12 @@ defmodule Faker.Food.PtBr do iex> Faker.Food.PtBr.metric_measurement() "centilitro" + iex> Faker.Food.PtBr.metric_measurement() + "decilitro" + iex> Faker.Food.PtBr.metric_measurement() + "litro" + iex> Faker.Food.PtBr.metric_measurement() + "mililitro" """ @spec metric_measurement() :: String.t() sampler(:metric_measurement, ["mililitro", "decilitro", "centilitro", "litro"]) @@ -365,6 +401,12 @@ defmodule Faker.Food.PtBr do iex> Faker.Food.PtBr.spice() "Açafrão" + iex> Faker.Food.PtBr.spice() + "Chili" + iex> Faker.Food.PtBr.spice() + "Alecrim" + iex> Faker.Food.PtBr.spice() + "Sal do mar grosso" """ @spec spice() :: String.t() sampler(:spice, [ From d1785cceaf5a54092ccf63aa0e6ce3a71ee16412 Mon Sep 17 00:00:00 2001 From: Marcus Wood Date: Tue, 10 Sep 2024 14:03:28 +1000 Subject: [PATCH 52/92] Discard changes to lib/faker/food/hy.ex --- lib/faker/food/hy.ex | 48 +++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 45 insertions(+), 3 deletions(-) diff --git a/lib/faker/food/hy.ex b/lib/faker/food/hy.ex index b41268e19..943ca492d 100644 --- a/lib/faker/food/hy.ex +++ b/lib/faker/food/hy.ex @@ -12,6 +12,12 @@ defmodule Faker.Food.Hy do iex> Faker.Food.Hy.dish() "ձու շոտլանդական ձևով" + iex> Faker.Food.Hy.dish() + "պիցցա" + iex> Faker.Food.Hy.dish() + "խորոված կողիկներ" + iex> Faker.Food.Hy.dish() + "սաղմոն նիգիրի" """ @spec dish() :: String.t() sampler(:dish, [ @@ -58,7 +64,13 @@ defmodule Faker.Food.Hy do ## Examples iex> Faker.Food.Hy.description() - "Թարմ նորվեգական սաղմոն, թեթևորեն խառնված մանանեխի սոուսով: Մատուցվում է բրնձի և խաշած բանջարեղենի հետ:" + "Տապակած հավ վաֆլիների հետ: Մատուցվում է թխկիի օշարակով:" + iex> Faker.Food.Hy.description() + "Երեք ձվի օմլետ ռոքֆոր պանրով, մանր սոխ և խոզապուխտ: Կողքը ավելացրեք խորոված կարտոֆիլ և ֆրանսիական տոստ:" + iex> Faker.Food.Hy.description() + "Ապխտած սաղմոն, խոզապուխտով ձու, կարմիր սոխ և լոլիկի սոուս բուլկիի վրա: Կողքը ավելացրեք խորոված կարտոֆիլ:" + iex> Faker.Food.Hy.description() + "Երեք ձու, համեմ, լոլիկ, սոխ, ավոկադո և հալած պանիր: Կողքը ավելացրեք խորոված կարտոֆիլ և ֆրանսիական տոստ:" """ @spec description() :: String.t() sampler(:description, [ @@ -78,7 +90,13 @@ defmodule Faker.Food.Hy do ## Examples iex> Faker.Food.Hy.ingredient() - "եգիպտացորենի ձեթ" + "ոսպ" + iex> Faker.Food.Hy.ingredient() + "մշկընկույզ" + iex> Faker.Food.Hy.ingredient() + "ընկույզ" + iex> Faker.Food.Hy.ingredient() + "սամիթ" """ @spec ingredient() :: String.t() sampler(:ingredient, [ @@ -265,8 +283,14 @@ defmodule Faker.Food.Hy do ## Examples + iex> Faker.Food.Hy.measurement() + "թեյի գդալ" + iex> Faker.Food.Hy.measurement() + "գալոն" iex> Faker.Food.Hy.measurement() "պինտա" + iex> Faker.Food.Hy.measurement() + "բաժակ" """ @spec measurement() :: String.t() sampler(:measurement, ["թեյի գդալ", "ճաշի գդալ", "բաժակ", "պինտա", "կվարտա", "գալոն"]) @@ -276,8 +300,14 @@ defmodule Faker.Food.Hy do ## Examples + iex> Faker.Food.Hy.measurement_size() + "1/4" + iex> Faker.Food.Hy.measurement_size() + "3" iex> Faker.Food.Hy.measurement_size() "1" + iex> Faker.Food.Hy.measurement_size() + "1/2" """ @spec measurement_size() :: String.t() sampler(:measurement_size, ["1/4", "1/3", "1/2", "1", "2", "3"]) @@ -287,8 +317,14 @@ defmodule Faker.Food.Hy do ## Examples + iex> Faker.Food.Hy.metric_measurement() + "սանտիլիտր" + iex> Faker.Food.Hy.metric_measurement() + "դեցիլիտր" iex> Faker.Food.Hy.metric_measurement() "լիտր" + iex> Faker.Food.Hy.metric_measurement() + "միլիլիտր" """ @spec metric_measurement() :: String.t() sampler(:metric_measurement, ["միլիլիտր", "դեցիլիտր", "սանտիլիտր", "լիտր"]) @@ -299,7 +335,13 @@ defmodule Faker.Food.Hy do ## Examples iex> Faker.Food.Hy.spice() - "կոճապղպեղ" + "կայնեյան պղպեղ" + iex> Faker.Food.Hy.spice() + "պիրի պիրի համեմունք" + iex> Faker.Food.Hy.spice() + "կարամ մասալա" + iex> Faker.Food.Hy.spice() + "մանանեխ" """ @spec spice() :: String.t() sampler(:spice, [ From 966a59726daea9bfb4011545ed259326696846d9 Mon Sep 17 00:00:00 2001 From: Marcus Wood Date: Tue, 10 Sep 2024 14:03:45 +1000 Subject: [PATCH 53/92] Discard changes to lib/faker/color/de.ex --- lib/faker/color/de.ex | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/lib/faker/color/de.ex b/lib/faker/color/de.ex index f2e023925..d07d08294 100644 --- a/lib/faker/color/de.ex +++ b/lib/faker/color/de.ex @@ -12,6 +12,12 @@ defmodule Faker.Color.De do iex> Faker.Color.De.name() "Rot" + iex> Faker.Color.De.name() + "Grün" + iex> Faker.Color.De.name() + "Braun" + iex> Faker.Color.De.name() + "Rosa" """ @spec name() :: String.t() sampler(:name, [ @@ -34,6 +40,12 @@ defmodule Faker.Color.De do iex> Faker.Color.De.fancy_name() "Flieder" + iex> Faker.Color.De.fancy_name() + "Feldgrau" + iex> Faker.Color.De.fancy_name() + "Gelbgrün" + iex> Faker.Color.De.fancy_name() + "Rotbraun" """ @spec fancy_name() :: String.t() sampler(:fancy_name, [ From 3e2e7b6a34573ef3b62a076451fdf1a20c5532c8 Mon Sep 17 00:00:00 2001 From: Marcus Wood Date: Tue, 10 Sep 2024 22:27:12 +1000 Subject: [PATCH 54/92] Discard changes to lib/faker/color/en.ex --- lib/faker/color/en.ex | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/lib/faker/color/en.ex b/lib/faker/color/en.ex index 3134c64e1..5d786ee6d 100644 --- a/lib/faker/color/en.ex +++ b/lib/faker/color/en.ex @@ -12,6 +12,12 @@ defmodule Faker.Color.En do iex> Faker.Color.En.name() "Red" + iex> Faker.Color.En.name() + "Green" + iex> Faker.Color.En.name() + "Brown" + iex> Faker.Color.En.name() + "Pink" """ @spec name() :: String.t() sampler(:name, [ @@ -34,6 +40,12 @@ defmodule Faker.Color.En do iex> Faker.Color.En.fancy_name() "Tawny" + iex> Faker.Color.En.fancy_name() + "Citrine" + iex> Faker.Color.En.fancy_name() + "Greige" + iex> Faker.Color.En.fancy_name() + "Cesious" """ @spec fancy_name() :: String.t() sampler(:fancy_name, [ From c08bac11cc1ace9f6e6512ae9f7429811a6b681c Mon Sep 17 00:00:00 2001 From: Marcus Wood Date: Tue, 10 Sep 2024 22:27:18 +1000 Subject: [PATCH 55/92] Discard changes to lib/faker/color/es.ex --- lib/faker/color/es.ex | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/faker/color/es.ex b/lib/faker/color/es.ex index 821292a71..602c57874 100644 --- a/lib/faker/color/es.ex +++ b/lib/faker/color/es.ex @@ -12,6 +12,12 @@ defmodule Faker.Color.Es do iex> Faker.Color.Es.name() "Rojo" + iex> Faker.Color.Es.name() + "Verde" + iex> Faker.Color.Es.name() + "Marrón" + iex> Faker.Color.Es.name() + "Rosa" """ @spec name() :: String.t() sampler(:name, [ From b12ab8cd5fca3dd8873eab3e015feb0752b984ea Mon Sep 17 00:00:00 2001 From: Marcus Wood Date: Tue, 10 Sep 2024 22:27:28 +1000 Subject: [PATCH 56/92] Discard changes to lib/faker/color/hy.ex --- lib/faker/color/hy.ex | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/faker/color/hy.ex b/lib/faker/color/hy.ex index fe182c566..c290ca9a0 100644 --- a/lib/faker/color/hy.ex +++ b/lib/faker/color/hy.ex @@ -12,6 +12,12 @@ defmodule Faker.Color.Hy do iex> Faker.Color.Hy.name() "մոխրագույն" + iex> Faker.Color.Hy.name() + "կանաչ" + iex> Faker.Color.Hy.name() + "երկնագույն" + iex> Faker.Color.Hy.name() + "մանուշակագույն" """ @spec name() :: String.t() sampler(:name, [ From a056efec1f51fa739dc83a4a07e9cf81ec992ee6 Mon Sep 17 00:00:00 2001 From: Marcus Wood Date: Tue, 10 Sep 2024 22:27:38 +1000 Subject: [PATCH 57/92] Discard changes to lib/faker/color/fr.ex --- lib/faker/color/fr.ex | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/faker/color/fr.ex b/lib/faker/color/fr.ex index 4ed633ca3..e60bae42e 100644 --- a/lib/faker/color/fr.ex +++ b/lib/faker/color/fr.ex @@ -12,6 +12,12 @@ defmodule Faker.Color.Fr do iex> Faker.Color.Fr.name() "Rouge" + iex> Faker.Color.Fr.name() + "Vert" + iex> Faker.Color.Fr.name() + "Marron" + iex> Faker.Color.Fr.name() + "Rose" """ @spec name() :: String.t() sampler(:name, [ From 27ab11450431c04236a57f80aec159b5ecdaf862 Mon Sep 17 00:00:00 2001 From: Marcus Wood Date: Tue, 10 Sep 2024 22:27:43 +1000 Subject: [PATCH 58/92] Discard changes to lib/faker/color/it.ex --- lib/faker/color/it.ex | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/faker/color/it.ex b/lib/faker/color/it.ex index e9fa6d31a..64d7b0037 100644 --- a/lib/faker/color/it.ex +++ b/lib/faker/color/it.ex @@ -12,6 +12,12 @@ defmodule Faker.Color.It do iex> Faker.Color.It.name() "Rosso" + iex> Faker.Color.It.name() + "Verde" + iex> Faker.Color.It.name() + "Marrone" + iex> Faker.Color.It.name() + "Rosa" """ @spec name() :: String.t() sampler(:name, [ From c01611228d457729a01f1140fd58cc7c0e7ac9b2 Mon Sep 17 00:00:00 2001 From: Marcus Wood Date: Tue, 10 Sep 2024 22:27:48 +1000 Subject: [PATCH 59/92] Discard changes to lib/faker/color/pt_br.ex --- lib/faker/color/pt_br.ex | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/faker/color/pt_br.ex b/lib/faker/color/pt_br.ex index 3a0071807..dbbd721aa 100644 --- a/lib/faker/color/pt_br.ex +++ b/lib/faker/color/pt_br.ex @@ -12,6 +12,12 @@ defmodule Faker.Color.PtBr do iex> Faker.Color.PtBr.name() "Vermelho" + iex> Faker.Color.PtBr.name() + "Verde" + iex> Faker.Color.PtBr.name() + "Marrom" + iex> Faker.Color.PtBr.name() + "Rosa" """ @spec name() :: String.t() sampler(:name, [ From e146ca584066fc1839e6ac4dbcad6f44934a02f2 Mon Sep 17 00:00:00 2001 From: Marcus Wood Date: Tue, 10 Sep 2024 22:28:36 +1000 Subject: [PATCH 60/92] Discard changes to lib/faker/currency.ex --- lib/faker/currency.ex | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/lib/faker/currency.ex b/lib/faker/currency.ex index 70c30be43..f4d9d134b 100644 --- a/lib/faker/currency.ex +++ b/lib/faker/currency.ex @@ -11,7 +11,13 @@ defmodule Faker.Currency do ## Examples iex> Faker.Currency.code() - "INR" + "WST" + iex> Faker.Currency.code() + "UYU" + iex> Faker.Currency.code() + "CRC" + iex> Faker.Currency.code() + "DOP" """ @spec code() :: String.t() sampler(:code, [ @@ -189,7 +195,13 @@ defmodule Faker.Currency do ## Examples iex> Faker.Currency.symbol() - "PhP" + "£" + iex> Faker.Currency.symbol() + "฿" + iex> Faker.Currency.symbol() + "ƒ" + iex> Faker.Currency.symbol() + "Rp" """ @spec symbol() :: String.t() sampler(:symbol, [ From 4ef822bdccf165587242db5b53f4f8c43d003809 Mon Sep 17 00:00:00 2001 From: Marcus Wood Date: Tue, 10 Sep 2024 22:28:58 +1000 Subject: [PATCH 61/92] Discard changes to lib/faker/internet/status_code.ex --- lib/faker/internet/status_code.ex | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/faker/internet/status_code.ex b/lib/faker/internet/status_code.ex index 9ab21fcaa..acd9459e6 100644 --- a/lib/faker/internet/status_code.ex +++ b/lib/faker/internet/status_code.ex @@ -10,8 +10,14 @@ defmodule Faker.Internet.StatusCode do ## Examples + iex> Faker.Internet.StatusCode.information() + 102 + iex> Faker.Internet.StatusCode.information() + 101 iex> Faker.Internet.StatusCode.information() 103 + iex> Faker.Internet.StatusCode.information() + 100 """ @spec information :: 100..103 sampler(:information, [100, 101, 102, 103]) From 40da2bc1e8575efb802e8e20bdfa1217ff7614b9 Mon Sep 17 00:00:00 2001 From: Marcus Wood Date: Tue, 10 Sep 2024 22:29:03 +1000 Subject: [PATCH 62/92] Discard changes to lib/faker/internet/user_agent.ex --- lib/faker/internet/user_agent.ex | 32 +++++++++++++++++++++++++++++++- 1 file changed, 31 insertions(+), 1 deletion(-) diff --git a/lib/faker/internet/user_agent.ex b/lib/faker/internet/user_agent.ex index aa47ae4a9..32edeeea8 100644 --- a/lib/faker/internet/user_agent.ex +++ b/lib/faker/internet/user_agent.ex @@ -11,8 +11,14 @@ defmodule Faker.Internet.UserAgent do ## Examples + iex> Faker.Internet.UserAgent.bot_user_agent() + "Mozilla/5.0 (compatible; Yahoo! Slurp; http://help.yahoo.com/help/us/ysearch/slurp)" + iex> Faker.Internet.UserAgent.bot_user_agent() + "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)" iex> Faker.Internet.UserAgent.bot_user_agent() "Mozilla/5.0 (compatible; YandexBot/3.0; +http://yandex.com/bots)" + iex> Faker.Internet.UserAgent.bot_user_agent() + "Mozilla/5.0 (compatible; bingbot/2.0; +http://www.bing.com/bingbot.htm)" """ @spec bot_user_agent() :: String.t() sampler(:bot_user_agent, [ @@ -52,6 +58,12 @@ defmodule Faker.Internet.UserAgent do iex> Faker.Internet.UserAgent.ereader_user_agent() "Mozilla/5.0 (X11; U; Linux armv7l like Android; en-us) AppleWebKit/531.2+ (KHTML, like Gecko) Version/5.0 Safari/533.2+ Kindle/3.0+" + iex> Faker.Internet.UserAgent.ereader_user_agent() + "Mozilla/5.0 (Linux; U; en-US) AppleWebKit/528.5+ (KHTML, like Gecko, Safari/528.5+) Version/4.0 Kindle/3.0 (screen 600x800; rotate)" + iex> Faker.Internet.UserAgent.ereader_user_agent() + "Mozilla/5.0 (Linux; U; en-US) AppleWebKit/528.5+ (KHTML, like Gecko, Safari/528.5+) Version/4.0 Kindle/3.0 (screen 600x800; rotate)" + iex> Faker.Internet.UserAgent.ereader_user_agent() + "Mozilla/5.0 (X11; U; Linux armv7l like Android; en-us) AppleWebKit/531.2+ (KHTML, like Gecko) Version/5.0 Safari/533.2+ Kindle/3.0+" """ @spec ereader_user_agent() :: String.t() sampler(:ereader_user_agent, [ @@ -88,7 +100,13 @@ defmodule Faker.Internet.UserAgent do ## Examples iex> Faker.Internet.UserAgent.set_top_user_agent() - "Dalvik/2.1.0 (Linux; U; Android 6.0.1; Nexus Player Build/MMB29T)" + "Mozilla/5.0 (CrKey armv7l 1.5.16041) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/31.0.1650.0 Safari/537.36" + iex> Faker.Internet.UserAgent.set_top_user_agent() + "Mozilla/5.0 (Linux; U; Android 4.2.2; he-il; NEO-X5-116A Build/JDQ39) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 Safari/534.30" + iex> Faker.Internet.UserAgent.set_top_user_agent() + "Mozilla/5.0 (CrKey armv7l 1.5.16041) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/31.0.1650.0 Safari/537.36" + iex> Faker.Internet.UserAgent.set_top_user_agent() + "AppleTV5,3/9.1.1" """ @spec set_top_user_agent() :: String.t() sampler(:set_top_user_agent, [ @@ -104,8 +122,14 @@ defmodule Faker.Internet.UserAgent do ## Examples + iex> Faker.Internet.UserAgent.tablet_user_agent() + "Mozilla/5.0 (Linux; Android 7.0; Pixel C Build/NRD90M; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/52.0.2743.98 Safari/537.36" + iex> Faker.Internet.UserAgent.tablet_user_agent() + "Mozilla/5.0 (Linux; Android 5.0.2; LG-V410/V41020c Build/LRX22G) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/34.0.1847.118 Safari/537.36" iex> Faker.Internet.UserAgent.tablet_user_agent() "Mozilla/5.0 (Linux; Android 5.0.2; SAMSUNG SM-T550 Build/LRX22G) AppleWebKit/537.36 (KHTML, like Gecko) SamsungBrowser/3.3 Chrome/38.0.2125.102 Safari/537.36" + iex> Faker.Internet.UserAgent.tablet_user_agent() + "Mozilla/5.0 (Linux; Android 5.1.1; SHIELD Tablet Build/LMY48C) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.98 Safari/537.36" """ @spec tablet_user_agent() :: String.t() sampler(:tablet_user_agent, [ @@ -122,8 +146,14 @@ defmodule Faker.Internet.UserAgent do ## Examples + iex> Faker.Internet.UserAgent.mobile_user_agent() + "Mozilla/5.0 (Linux; Android 6.0.1; SM-G920V Build/MMB29K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.98 Mobile Safari/537.36" + iex> Faker.Internet.UserAgent.mobile_user_agent() + "Mozilla/5.0 (Linux; Android 6.0; HTC One M9 Build/MRA58K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.98 Mobile Safari/537.36" iex> Faker.Internet.UserAgent.mobile_user_agent() "Mozilla/5.0 (Linux; Android 6.0.1; Nexus 6P Build/MMB29P) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.83 Mobile Safari/537.36" + iex> Faker.Internet.UserAgent.mobile_user_agent() + "Mozilla/5.0 (Windows Phone 10.0; Android 4.2.1; Microsoft; Lumia 950) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2486.0 Mobile Safari/537.36 Edge/13.10586" """ @spec mobile_user_agent() :: String.t() sampler(:mobile_user_agent, [ From 04ec155be0f17543d0dfe454ed7b0e5360755201 Mon Sep 17 00:00:00 2001 From: Marcus Wood Date: Tue, 10 Sep 2024 22:29:18 +1000 Subject: [PATCH 63/92] Discard changes to lib/faker/internet/pt_br.ex --- lib/faker/internet/pt_br.ex | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/lib/faker/internet/pt_br.ex b/lib/faker/internet/pt_br.ex index 0e075440d..6f8b30496 100644 --- a/lib/faker/internet/pt_br.ex +++ b/lib/faker/internet/pt_br.ex @@ -12,6 +12,12 @@ defmodule Faker.Internet.PtBr do iex> Faker.Internet.PtBr.free_email_service() "gmail.com" + iex> Faker.Internet.PtBr.free_email_service() + "yahoo.com" + iex> Faker.Internet.PtBr.free_email_service() + "gmail.com" + iex> Faker.Internet.PtBr.free_email_service() + "bol.com.br" """ @spec free_email_service() :: String sampler(:free_email_service, ["gmail.com", "yahoo.com", "hotmail.com", "live.com", "bol.com.br"]) @@ -23,6 +29,12 @@ defmodule Faker.Internet.PtBr do iex> Faker.Internet.PtBr.domain_suffix() "br" + iex> Faker.Internet.PtBr.domain_suffix() + "org" + iex> Faker.Internet.PtBr.domain_suffix() + "name" + iex> Faker.Internet.PtBr.domain_suffix() + "info" """ @spec domain_suffix() :: String.t() sampler(:domain_suffix, ["br", "biz", "info", "name", "net", "org"]) From dd812a82e4e76bb87393d94fb2e02fc4ccaf41fb Mon Sep 17 00:00:00 2001 From: Marcus Wood Date: Tue, 10 Sep 2024 22:29:38 +1000 Subject: [PATCH 64/92] Discard changes to lib/faker/internet.ex --- lib/faker/internet.ex | 88 ++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 83 insertions(+), 5 deletions(-) diff --git a/lib/faker/internet.ex b/lib/faker/internet.ex index dfdd0d663..af08ee4de 100644 --- a/lib/faker/internet.ex +++ b/lib/faker/internet.ex @@ -17,6 +17,12 @@ defmodule Faker.Internet do iex> Faker.Internet.domain_name() "blick.org" + iex> Faker.Internet.domain_name() + "schumm.info" + iex> Faker.Internet.domain_name() + "sipes.com" + iex> Faker.Internet.domain_name() + "hane.info" """ @spec domain_name() :: String.t() def domain_name do @@ -30,6 +36,12 @@ defmodule Faker.Internet do iex> Faker.Internet.domain_suffix() "com" + iex> Faker.Internet.domain_suffix() + "org" + iex> Faker.Internet.domain_suffix() + "name" + iex> Faker.Internet.domain_suffix() + "info" """ @spec domain_suffix() :: String.t() localize(:domain_suffix) @@ -41,6 +53,12 @@ defmodule Faker.Internet do iex> Faker.Internet.user_name() "elizabeth2056" + iex> Faker.Internet.user_name() + "reese1921" + iex> Faker.Internet.user_name() + "aniya1972" + iex> Faker.Internet.user_name() + "bianka2054" """ @spec user_name() :: String.t() def user_name, do: user_name(Faker.random_between(0, 1)) @@ -63,6 +81,12 @@ defmodule Faker.Internet do iex> Faker.Internet.domain_word() "blick" + iex> Faker.Internet.domain_word() + "hayes" + iex> Faker.Internet.domain_word() + "schumm" + iex> Faker.Internet.domain_word() + "rolfson" """ @spec domain_word() :: String.t() def domain_word do @@ -76,6 +100,12 @@ defmodule Faker.Internet do iex> Faker.Internet.email() "elizabeth2056@rolfson.net" + iex> Faker.Internet.email() + "conor2058@schiller.com" + iex> Faker.Internet.email() + "frederique2063@metz.name" + iex> Faker.Internet.email() + "jana2042@price.biz" """ @spec email() :: String.t() def email do @@ -89,6 +119,12 @@ defmodule Faker.Internet do iex> Faker.Internet.free_email() "elizabeth2056@hotmail.com" + iex> Faker.Internet.free_email() + "trycia1982@hotmail.com" + iex> Faker.Internet.free_email() + "delphine_hartmann@yahoo.com" + iex> Faker.Internet.free_email() + "mitchel_rutherford@yahoo.com" """ @spec free_email() :: String.t() def free_email do @@ -102,6 +138,12 @@ defmodule Faker.Internet do iex> Faker.Internet.safe_email() "elizabeth2056@example.net" + iex> Faker.Internet.safe_email() + "trycia1982@example.net" + iex> Faker.Internet.safe_email() + "delphine_hartmann@example.com" + iex> Faker.Internet.safe_email() + "mitchel_rutherford@example.com" """ @spec safe_email() :: String.t() def safe_email do @@ -115,6 +157,12 @@ defmodule Faker.Internet do iex> Faker.Internet.free_email_service() "gmail.com" + iex> Faker.Internet.free_email_service() + "hotmail.com" + iex> Faker.Internet.free_email_service() + "gmail.com" + iex> Faker.Internet.free_email_service() + "hotmail.com" """ @spec free_email_service() :: String.t() localize(:free_email_service) @@ -126,6 +174,12 @@ defmodule Faker.Internet do iex> Faker.Internet.url() "http://hayes.name" + iex> Faker.Internet.url() + "http://sipes.com" + iex> Faker.Internet.url() + "http://padberg.name" + iex> Faker.Internet.url() + "http://hartmann.biz" """ @spec url() :: String.t() def url, do: url(Faker.random_between(0, 1)) @@ -140,6 +194,12 @@ defmodule Faker.Internet do iex> Faker.Internet.image_url() "https://placekitten.com/131/131" + iex> Faker.Internet.image_url() + "https://placekitten.com/554/554" + iex> Faker.Internet.image_url() + "https://picsum.photos/936" + iex> Faker.Internet.image_url() + "https://picsum.photos/541" """ @spec image_url() :: String.t() def image_url, do: image_url(Faker.random_between(0, 2)) @@ -166,6 +226,12 @@ defmodule Faker.Internet do iex> Faker.Internet.ip_v4_address() "214.217.139.136" + iex> Faker.Internet.ip_v4_address() + "200.102.244.150" + iex> Faker.Internet.ip_v4_address() + "219.212.222.123" + iex> Faker.Internet.ip_v4_address() + "164.141.15.82" """ @spec ip_v4_address() :: String.t() def ip_v4_address do @@ -181,6 +247,12 @@ defmodule Faker.Internet do iex> Faker.Internet.ip_v6_address() "A2D6:F5D9:BD8B:C588:0DC8:9566:43F4:B196" + iex> Faker.Internet.ip_v6_address() + "05DB:FAD4:88DE:397B:75A4:A98D:DF0F:1F52" + iex> Faker.Internet.ip_v6_address() + "6229:4EFA:2F7B:FEF9:EB07:0128:85B2:DC72" + iex> Faker.Internet.ip_v6_address() + "E867:34BC:715B:FB7C:7E96:AF4F:C733:A82D" """ @spec ip_v6_address() :: String.t() def ip_v6_address do @@ -198,6 +270,12 @@ defmodule Faker.Internet do iex> Faker.Internet.mac_address() "d6:d9:8b:88:c8:66" + iex> Faker.Internet.mac_address() + "f4:96:db:d4:de:7b" + iex> Faker.Internet.mac_address() + "a4:8d:0f:52:29:fa" + iex> Faker.Internet.mac_address() + "7b:f9:07:28:b2:72" """ @spec mac_address() :: String.t() def mac_address do @@ -214,13 +292,13 @@ defmodule Faker.Internet do ## Examples iex> Faker.Internet.slug() - "sint.deleniti.consequatur.ut" + "sint-deleniti-consequatur-ut" iex> Faker.Internet.slug() - "expedita_est_necessitatibus_cumque_aut" + "sit_et" iex> Faker.Internet.slug(["foo", "bar"]) - "foo.bar" + "foo-bar" iex> Faker.Internet.slug(["foo", "bar"], ["."]) - "bar.foo" + "foo.bar" """ @spec slug() :: String.t() def slug do @@ -235,7 +313,7 @@ defmodule Faker.Internet do @spec slug([String.t()], [String.t()]) :: String.t() def slug(words, glue) do words - |> Faker.shuffle() + |> Enum.take_random(length(words)) |> Enum.join(pick(glue)) |> String.downcase() end From 477a5d7ab5e4ac88f521dc12d720852fc1fdccdd Mon Sep 17 00:00:00 2001 From: Marcus Wood Date: Tue, 10 Sep 2024 22:30:02 +1000 Subject: [PATCH 65/92] Discard changes to lib/faker/commerce.ex --- lib/faker/commerce.ex | 48 ++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 45 insertions(+), 3 deletions(-) diff --git a/lib/faker/commerce.ex b/lib/faker/commerce.ex index c9adc9c56..48d617b02 100644 --- a/lib/faker/commerce.ex +++ b/lib/faker/commerce.ex @@ -11,7 +11,13 @@ defmodule Faker.Commerce do ## Examples iex> Faker.Commerce.color() - "turquoise" + "red" + iex> Faker.Commerce.color() + "sky blue" + iex> Faker.Commerce.color() + "lavender" + iex> Faker.Commerce.color() + "grey" """ @spec color() :: String.t() localize(:color) @@ -23,6 +29,12 @@ defmodule Faker.Commerce do iex> Faker.Commerce.department() "Home, Garden & Tools" + iex> Faker.Commerce.department() + "Electronics & Computers" + iex> Faker.Commerce.department() + "Clothing, Shoes & Jewelery" + iex> Faker.Commerce.department() + "Toys, Kids & Baby" """ @spec department() :: String.t() localize(:department) @@ -33,7 +45,13 @@ defmodule Faker.Commerce do ## Examples iex> Faker.Commerce.price() - 0.61 + 1.11 + iex> Faker.Commerce.price() + 4.02 + iex> Faker.Commerce.price() + 8.36 + iex> Faker.Commerce.price() + 3.05 """ @spec price() :: float def price do @@ -48,6 +66,12 @@ defmodule Faker.Commerce do iex> Faker.Commerce.product_name() "Ergonomic Steel Shirt" + iex> Faker.Commerce.product_name() + "Fantastic Car" + iex> Faker.Commerce.product_name() + "Granite Gloves" + iex> Faker.Commerce.product_name() + "Plastic Shoes" """ @spec product_name() :: String.t() localize(:product_name) @@ -59,6 +83,12 @@ defmodule Faker.Commerce do iex> Faker.Commerce.product_name_adjective() "Small" + iex> Faker.Commerce.product_name_adjective() + "Ergonomic" + iex> Faker.Commerce.product_name_adjective() + "Incredible" + iex> Faker.Commerce.product_name_adjective() + "Gorgeous" """ @spec product_name_adjective() :: String.t() localize(:product_name_adjective) @@ -70,6 +100,12 @@ defmodule Faker.Commerce do iex> Faker.Commerce.product_name_material() "Rubber" + iex> Faker.Commerce.product_name_material() + "Concrete" + iex> Faker.Commerce.product_name_material() + "Steel" + iex> Faker.Commerce.product_name_material() + "Granite" """ @spec product_name_material() :: String.t() localize(:product_name_material) @@ -80,7 +116,13 @@ defmodule Faker.Commerce do ## Examples iex> Faker.Commerce.product_name_product() - "Shoes" + "Gloves" + iex> Faker.Commerce.product_name_product() + "Computer" + iex> Faker.Commerce.product_name_product() + "Table" + iex> Faker.Commerce.product_name_product() + "Shirt" """ @spec product_name_product() :: String.t() localize(:product_name_product) From 2aa2cfaa5ac2e56ad1f200155f26164fca52c4f1 Mon Sep 17 00:00:00 2001 From: Marcus Wood Date: Tue, 10 Sep 2024 22:30:06 +1000 Subject: [PATCH 66/92] Discard changes to lib/faker/commerce/pt_br.ex --- lib/faker/commerce/pt_br.ex | 42 ++++++++++++++++++++++++++++++++++--- 1 file changed, 39 insertions(+), 3 deletions(-) diff --git a/lib/faker/commerce/pt_br.ex b/lib/faker/commerce/pt_br.ex index 41173c85b..71af28a4d 100644 --- a/lib/faker/commerce/pt_br.ex +++ b/lib/faker/commerce/pt_br.ex @@ -13,7 +13,13 @@ defmodule Faker.Commerce.PtBr do ## Examples iex> Faker.Commerce.PtBr.color() - "Amarelo(a)" + "Vermelho(a)" + iex> Faker.Commerce.PtBr.color() + "Verde" + iex> Faker.Commerce.PtBr.color() + "Marrom" + iex> Faker.Commerce.PtBr.color() + "Rosa" """ @spec color() :: String.t() def color do @@ -40,6 +46,12 @@ defmodule Faker.Commerce.PtBr do iex> Faker.Commerce.PtBr.department() "Eletrônicos, TV e Áudio" + iex> Faker.Commerce.PtBr.department() + "Alimentos e bebidas" + iex> Faker.Commerce.PtBr.department() + "Livros" + iex> Faker.Commerce.PtBr.department() + "Beleza e cuidados pessoais" """ @spec department() :: String.t() sampler(:department, [ @@ -72,7 +84,13 @@ defmodule Faker.Commerce.PtBr do ## Examples iex> Faker.Commerce.PtBr.product_name() - "Mochila Branco(a) Prático" + "Cadeira Gigante de Algodão" + iex> Faker.Commerce.PtBr.product_name() + "Computador de Granito" + iex> Faker.Commerce.PtBr.product_name() + "Bolsa Médio(a)" + iex> Faker.Commerce.PtBr.product_name() + "Escrivaninha Grande" """ @spec product_name() :: String.t() def product_name, do: product_name(Faker.random_between(0, 5)) @@ -97,6 +115,12 @@ defmodule Faker.Commerce.PtBr do iex> Faker.Commerce.PtBr.product_name_adjective() "Gigante" + iex> Faker.Commerce.PtBr.product_name_adjective() + "Rústico(a)" + iex> Faker.Commerce.PtBr.product_name_adjective() + "Gigante" + iex> Faker.Commerce.PtBr.product_name_adjective() + "Elegante" """ @spec product_name_adjective() :: String.t() sampler( @@ -124,7 +148,13 @@ defmodule Faker.Commerce.PtBr do ## Examples iex> Faker.Commerce.PtBr.product_name_material() - "Silicone" + "Plástico" + iex> Faker.Commerce.PtBr.product_name_material() + "Aço" + iex> Faker.Commerce.PtBr.product_name_material() + "Concreto" + iex> Faker.Commerce.PtBr.product_name_material() + "Algodão" """ @spec product_name_material() :: String.t() sampler(:product_name_material, [ @@ -143,6 +173,12 @@ defmodule Faker.Commerce.PtBr do ## Examples + iex> Faker.Commerce.PtBr.product_name_product() + "Guarda-roupa" + iex> Faker.Commerce.PtBr.product_name_product() + "Cadeira" + iex> Faker.Commerce.PtBr.product_name_product() + "Cobertor" iex> Faker.Commerce.PtBr.product_name_product() "Sandália" """ From 9e638c5fbf5cbffd4cead83c21f4025f33a1f5a7 Mon Sep 17 00:00:00 2001 From: Marcus Wood Date: Tue, 10 Sep 2024 22:30:11 +1000 Subject: [PATCH 67/92] Discard changes to lib/faker/commerce/en.ex --- lib/faker/commerce/en.ex | 40 ++++++++++++++++++++++++++++++++++++++-- 1 file changed, 38 insertions(+), 2 deletions(-) diff --git a/lib/faker/commerce/en.ex b/lib/faker/commerce/en.ex index 2c0e30121..c6f950b4a 100644 --- a/lib/faker/commerce/en.ex +++ b/lib/faker/commerce/en.ex @@ -12,6 +12,12 @@ defmodule Faker.Commerce.En do iex> Faker.Commerce.En.color() "red" + iex> Faker.Commerce.En.color() + "sky blue" + iex> Faker.Commerce.En.color() + "lavender" + iex> Faker.Commerce.En.color() + "grey" """ @spec color() :: String.t() sampler(:color, [ @@ -55,7 +61,13 @@ defmodule Faker.Commerce.En do ## Examples iex> Faker.Commerce.En.department() - "Sports & Outdoors" + "Home, Garden & Tools" + iex> Faker.Commerce.En.department() + "Electronics & Computers" + iex> Faker.Commerce.En.department() + "Clothing, Shoes & Jewelery" + iex> Faker.Commerce.En.department() + "Toys, Kids & Baby" """ @spec department() :: String.t() sampler(:department, [ @@ -78,6 +90,12 @@ defmodule Faker.Commerce.En do iex> Faker.Commerce.En.product_name() "Ergonomic Steel Shirt" + iex> Faker.Commerce.En.product_name() + "Fantastic Car" + iex> Faker.Commerce.En.product_name() + "Granite Gloves" + iex> Faker.Commerce.En.product_name() + "Plastic Shoes" """ @spec product_name() :: String.t() def product_name, do: product_name(Faker.random_between(0, 2)) @@ -96,6 +114,12 @@ defmodule Faker.Commerce.En do iex> Faker.Commerce.En.product_name_adjective() "Small" + iex> Faker.Commerce.En.product_name_adjective() + "Ergonomic" + iex> Faker.Commerce.En.product_name_adjective() + "Incredible" + iex> Faker.Commerce.En.product_name_adjective() + "Gorgeous" """ @spec product_name_adjective() :: String.t() sampler(:product_name_adjective, [ @@ -117,7 +141,13 @@ defmodule Faker.Commerce.En do ## Examples iex> Faker.Commerce.En.product_name_material() - "Plastic" + "Rubber" + iex> Faker.Commerce.En.product_name_material() + "Concrete" + iex> Faker.Commerce.En.product_name_material() + "Steel" + iex> Faker.Commerce.En.product_name_material() + "Granite" """ @spec product_name_material() :: String.t() sampler(:product_name_material, [ @@ -137,6 +167,12 @@ defmodule Faker.Commerce.En do iex> Faker.Commerce.En.product_name_product() "Gloves" + iex> Faker.Commerce.En.product_name_product() + "Computer" + iex> Faker.Commerce.En.product_name_product() + "Table" + iex> Faker.Commerce.En.product_name_product() + "Shirt" """ @spec product_name_product() :: String.t() sampler(:product_name_product, [ From 850f39795f46a8cec3d265b81bde034210f97276 Mon Sep 17 00:00:00 2001 From: Marcus Wood Date: Tue, 10 Sep 2024 22:30:28 +1000 Subject: [PATCH 68/92] Discard changes to lib/faker/company/en.ex --- lib/faker/company/en.ex | 68 ++++++++++++++++++++++++++++++++++++++--- 1 file changed, 64 insertions(+), 4 deletions(-) diff --git a/lib/faker/company/en.ex b/lib/faker/company/en.ex index 39ff22221..50847d665 100644 --- a/lib/faker/company/en.ex +++ b/lib/faker/company/en.ex @@ -13,7 +13,13 @@ defmodule Faker.Company.En do ## Examples iex> Faker.Company.En.bs() - "grow clicks-and-mortar content" + "syndicate e-business e-business" + iex> Faker.Company.En.bs() + "scale global metrics" + iex> Faker.Company.En.bs() + "optimize scalable markets" + iex> Faker.Company.En.bs() + "implement out-of-the-box content" """ @spec bs() :: String.t() def bs, do: "#{bullshit_prefix()} #{bullshit()} #{bullshit_suffix()}" @@ -25,6 +31,12 @@ defmodule Faker.Company.En do iex> Faker.Company.En.bullshit() "web-enabled" + iex> Faker.Company.En.bullshit() + "e-business" + iex> Faker.Company.En.bullshit() + "web-enabled" + iex> Faker.Company.En.bullshit() + "next-generation" """ @spec bullshit() :: String.t() sampler(:bullshit, [ @@ -102,6 +114,12 @@ defmodule Faker.Company.En do iex> Faker.Company.En.bullshit_prefix() "syndicate" + iex> Faker.Company.En.bullshit_prefix() + "visualize" + iex> Faker.Company.En.bullshit_prefix() + "incentivize" + iex> Faker.Company.En.bullshit_prefix() + "scale" """ @spec bullshit_prefix() :: String.t() sampler(:bullshit_prefix, [ @@ -172,6 +190,12 @@ defmodule Faker.Company.En do ## Examples + iex> Faker.Company.En.bullshit_suffix() + "e-services" + iex> Faker.Company.En.bullshit_suffix() + "niches" + iex> Faker.Company.En.bullshit_suffix() + "e-business" iex> Faker.Company.En.bullshit_suffix() "systems" """ @@ -230,6 +254,12 @@ defmodule Faker.Company.En do iex> Faker.Company.En.buzzword() "upward-trending" + iex> Faker.Company.En.buzzword() + "full-range" + iex> Faker.Company.En.buzzword() + "uniform" + iex> Faker.Company.En.buzzword() + "tertiary" """ @spec buzzword() :: String.t() sampler(:buzzword, [ @@ -343,6 +373,12 @@ defmodule Faker.Company.En do iex> Faker.Company.En.buzzword_prefix() "Configurable" + iex> Faker.Company.En.buzzword_prefix() + "Advanced" + iex> Faker.Company.En.buzzword_prefix() + "Grass-roots" + iex> Faker.Company.En.buzzword_prefix() + "Automated" """ @spec buzzword_prefix() :: String.t() sampler(:buzzword_prefix, [ @@ -454,7 +490,13 @@ defmodule Faker.Company.En do ## Examples iex> Faker.Company.En.buzzword_suffix() - "leverage" + "encoding" + iex> Faker.Company.En.buzzword_suffix() + "standardization" + iex> Faker.Company.En.buzzword_suffix() + "Graphical User Interface" + iex> Faker.Company.En.buzzword_suffix() + "product" """ @spec buzzword_suffix() :: String.t() sampler(:buzzword_suffix, [ @@ -571,6 +613,12 @@ defmodule Faker.Company.En do iex> Faker.Company.En.catch_phrase() "Configurable full-range Graphical User Interface" + iex> Faker.Company.En.catch_phrase() + "Automated mission-critical pricing structure" + iex> Faker.Company.En.catch_phrase() + "Profit-focused bottom-line algorithm" + iex> Faker.Company.En.catch_phrase() + "Self-enabling systematic initiative" """ @spec catch_phrase() :: String.t() def catch_phrase, do: "#{buzzword_prefix()} #{buzzword()} #{buzzword_suffix()}" @@ -581,7 +629,13 @@ defmodule Faker.Company.En do ## Examples iex> Faker.Company.En.name() - "Cartwright and Sons" + "Hayes Inc" + iex> Faker.Company.En.name() + "Sipes, Wehner and Hane" + iex> Faker.Company.En.name() + "Schiller, Rogahn and Hartmann" + iex> Faker.Company.En.name() + "Murphy-Metz" """ @spec name() :: String.t() def name, do: name(Faker.random_between(0, 2)) @@ -598,7 +652,13 @@ defmodule Faker.Company.En do ## Examples iex> Faker.Company.En.suffix() - "Group" + "Inc" + iex> Faker.Company.En.suffix() + "and Sons" + iex> Faker.Company.En.suffix() + "Inc" + iex> Faker.Company.En.suffix() + "Ltd" """ @spec suffix() :: String.t() sampler(:suffix, [ From 1f6652a16bb9bdc4a7266043b13c1f9afd4d3ff0 Mon Sep 17 00:00:00 2001 From: Marcus Wood Date: Tue, 10 Sep 2024 22:30:34 +1000 Subject: [PATCH 69/92] Discard changes to lib/faker/company/hy.ex --- lib/faker/company/hy.ex | 64 +++++++++++++++++++++++++++++++++++++++-- 1 file changed, 62 insertions(+), 2 deletions(-) diff --git a/lib/faker/company/hy.ex b/lib/faker/company/hy.ex index dd91c42c2..dcf182c03 100644 --- a/lib/faker/company/hy.ex +++ b/lib/faker/company/hy.ex @@ -14,6 +14,12 @@ defmodule Faker.Company.Hy do iex> Faker.Company.Hy.bs() "առավելագույնի հասցնել նորարարական հարաբերություններ" + iex> Faker.Company.Hy.bs() + "ակտիվացնել վիրտուալ օգտագործողներ" + iex> Faker.Company.Hy.bs() + "առաքել գլոբալ կառուցվածքներ" + iex> Faker.Company.Hy.bs() + "առաքել հարուստ փորձառություններ" """ @spec bs() :: String.t() def bs, do: "#{bullshit_prefix()} #{bullshit()} #{bullshit_suffix()}" @@ -25,6 +31,12 @@ defmodule Faker.Company.Hy do iex> Faker.Company.Hy.bullshit() "ազդեցիկ" + iex> Faker.Company.Hy.bullshit() + "նորարարական" + iex> Faker.Company.Hy.bullshit() + "ժամանակակից" + iex> Faker.Company.Hy.bullshit() + "ժամանակակից" """ @spec bullshit() :: String.t() sampler(:bullshit, [ @@ -66,6 +78,12 @@ defmodule Faker.Company.Hy do iex> Faker.Company.Hy.bullshit_prefix() "առավելագույնի հասցնել" + iex> Faker.Company.Hy.bullshit_prefix() + "պատկերացնել" + iex> Faker.Company.Hy.bullshit_prefix() + "ընդլայնել" + iex> Faker.Company.Hy.bullshit_prefix() + "ակտիվացնել" """ @spec bullshit_prefix() :: String.t() sampler(:bullshit_prefix, [ @@ -110,6 +128,12 @@ defmodule Faker.Company.Hy do iex> Faker.Company.Hy.bullshit_suffix() "հարաբերություններ" + iex> Faker.Company.Hy.bullshit_suffix() + "շուկաներ" + iex> Faker.Company.Hy.bullshit_suffix() + "հարաբերություններ" + iex> Faker.Company.Hy.bullshit_suffix() + "նախաձեռնություններ" """ @spec bullshit_suffix() :: String.t() sampler(:bullshit_suffix, [ @@ -147,6 +171,12 @@ defmodule Faker.Company.Hy do iex> Faker.Company.Hy.buzzword() "ուղղորդիչ" + iex> Faker.Company.Hy.buzzword() + "լոգիստիկ" + iex> Faker.Company.Hy.buzzword() + "երրորդական" + iex> Faker.Company.Hy.buzzword() + "բացահայտ" """ @spec buzzword() :: String.t() sampler(:buzzword, [ @@ -204,7 +234,13 @@ defmodule Faker.Company.Hy do ## Examples iex> Faker.Company.Hy.buzzword_prefix() - "Բաց կոդով" + "Բազմուղի" + iex> Faker.Company.Hy.buzzword_prefix() + "Կարգավորելի" + iex> Faker.Company.Hy.buzzword_prefix() + "Փոխարկելի" + iex> Faker.Company.Hy.buzzword_prefix() + "Ծրագրավորելի" """ @spec buzzword_prefix() :: String.t() sampler(:buzzword_prefix, [ @@ -272,6 +308,12 @@ defmodule Faker.Company.Hy do iex> Faker.Company.Hy.buzzword_suffix() "ինտերֆեյս" + iex> Faker.Company.Hy.buzzword_suffix() + "համախմբվածություն" + iex> Faker.Company.Hy.buzzword_suffix() + "տեղական ցանց" + iex> Faker.Company.Hy.buzzword_suffix() + "գնային կառուցվածք" """ @spec buzzword_suffix() :: String.t() sampler(:buzzword_suffix, [ @@ -350,6 +392,12 @@ defmodule Faker.Company.Hy do iex> Faker.Company.Hy.catch_phrase() "Բազմուղի լոգիստիկ տեղական ցանց" + iex> Faker.Company.Hy.catch_phrase() + "Ծրագրավորելի 3-րդ սերնդի արտադրողականություն" + iex> Faker.Company.Hy.catch_phrase() + "Հեշտացված ուղղորդիչ ալգորիթմ" + iex> Faker.Company.Hy.catch_phrase() + "Դիմացկուն չեզոք տվյալների պահեստ" """ @spec catch_phrase() :: String.t() def catch_phrase, do: "#{buzzword_prefix()} #{buzzword()} #{buzzword_suffix()}" @@ -360,7 +408,13 @@ defmodule Faker.Company.Hy do ## Examples iex> Faker.Company.Hy.name() - "Կարեն և Հայկուհի ՀՁ" + "Մարալիկ ԲԲԸ" + iex> Faker.Company.Hy.name() + "Վանյան, Կարագյան և Ամիրբեկյան ՓԲԸ" + iex> Faker.Company.Hy.name() + "Հովիվյան ՓԲԸ" + iex> Faker.Company.Hy.name() + "Միլենա և Աշոտ ԲԲԸ" """ @spec name() :: String.t() def name, do: name(Faker.random_between(0, 4)) @@ -380,6 +434,12 @@ defmodule Faker.Company.Hy do iex> Faker.Company.Hy.suffix() "ՍՊԸ" + iex> Faker.Company.Hy.suffix() + "Հոլդինգ" + iex> Faker.Company.Hy.suffix() + "ԲԲԸ" + iex> Faker.Company.Hy.suffix() + "ՓԲԸ" """ @spec suffix() :: String.t() sampler(:suffix, [ From 95b852e297995882bf596af537d99f2357e1adc6 Mon Sep 17 00:00:00 2001 From: Marcus Wood Date: Tue, 10 Sep 2024 22:30:57 +1000 Subject: [PATCH 70/92] Discard changes to lib/faker/food/en.ex --- lib/faker/food/en.ex | 54 +++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 51 insertions(+), 3 deletions(-) diff --git a/lib/faker/food/en.ex b/lib/faker/food/en.ex index 1ade7efb0..77f4c7795 100644 --- a/lib/faker/food/en.ex +++ b/lib/faker/food/en.ex @@ -11,7 +11,13 @@ defmodule Faker.Food.En do ## Examples iex> Faker.Food.En.dish() - "Ricotta stuffed Ravioli" + "Vegetable Soup" + iex> Faker.Food.En.dish() + "Fish and chips" + iex> Faker.Food.En.dish() + "Pork belly buns" + iex> Faker.Food.En.dish() + "Pasta Carbonara" """ @spec dish() :: String.t() sampler(:dish, [ @@ -61,6 +67,12 @@ defmodule Faker.Food.En do iex> Faker.Food.En.description() "Two buttermilk waffles, topped with whipped cream and maple syrup, a side of two eggs served any style, and your choice of smoked bacon or smoked ham." + iex> Faker.Food.En.description() + "28-day aged 300g USDA Certified Prime Ribeye, rosemary-thyme garlic butter, with choice of two sides." + iex> Faker.Food.En.description() + "Breaded fried chicken with waffles, and a side of maple syrup." + iex> Faker.Food.En.description() + "Creamy mascarpone cheese and custard layered between espresso and rum soaked house-made ladyfingers, topped with Valrhona cocoa powder." """ @spec description() :: String.t() sampler(:description, [ @@ -86,7 +98,13 @@ defmodule Faker.Food.En do ## Examples iex> Faker.Food.En.ingredient() - "Bocconcini" + "Tomatoes" + iex> Faker.Food.En.ingredient() + "Albacore Tuna" + iex> Faker.Food.En.ingredient() + "Potatoes" + iex> Faker.Food.En.ingredient() + "Tinned" """ @spec ingredient() :: String.t() sampler(:ingredient, [ @@ -590,8 +608,14 @@ defmodule Faker.Food.En do ## Examples + iex> Faker.Food.En.measurement() + "teaspoon" + iex> Faker.Food.En.measurement() + "gallon" iex> Faker.Food.En.measurement() "pint" + iex> Faker.Food.En.measurement() + "cup" """ @spec measurement() :: String.t() sampler(:measurement, ["teaspoon", "tablespoon", "cup", "pint", "quart", "gallon"]) @@ -601,8 +625,14 @@ defmodule Faker.Food.En do ## Examples + iex> Faker.Food.En.measurement_size() + "1/4" + iex> Faker.Food.En.measurement_size() + "3" iex> Faker.Food.En.measurement_size() "1" + iex> Faker.Food.En.measurement_size() + "1/2" """ @spec measurement_size() :: String.t() sampler(:measurement_size, ["1/4", "1/3", "1/2", "1", "2", "3"]) @@ -614,6 +644,12 @@ defmodule Faker.Food.En do iex> Faker.Food.En.metric_measurement() "centiliter" + iex> Faker.Food.En.metric_measurement() + "deciliter" + iex> Faker.Food.En.metric_measurement() + "liter" + iex> Faker.Food.En.metric_measurement() + "milliliter" """ @spec metric_measurement() :: String.t() sampler(:metric_measurement, ["milliliter", "deciliter", "centiliter", "liter"]) @@ -624,7 +660,13 @@ defmodule Faker.Food.En do ## Examples iex> Faker.Food.En.spice() - "Curry Mild" + "Garlic Salt" + iex> Faker.Food.En.spice() + "Ras-el-Hanout" + iex> Faker.Food.En.spice() + "Curry Hot" + iex> Faker.Food.En.spice() + "Peppercorns Mixed" """ @spec spice() :: String.t() sampler(:spice, [ @@ -820,6 +862,12 @@ defmodule Faker.Food.En do iex> Faker.Food.En.sushi() "Whitespotted conger" + iex> Faker.Food.En.sushi() + "Japanese horse mackerel" + iex> Faker.Food.En.sushi() + "Salmon" + iex> Faker.Food.En.sushi() + "Octopus" """ @spec sushi() :: String.t() sampler(:sushi, [ From 4a27ea5280eb03d349e4b56b7d22e01cc0e03295 Mon Sep 17 00:00:00 2001 From: Marcus Wood Date: Tue, 10 Sep 2024 22:31:17 +1000 Subject: [PATCH 71/92] Discard changes to lib/faker/company.ex --- lib/faker/company.ex | 66 ++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 63 insertions(+), 3 deletions(-) diff --git a/lib/faker/company.ex b/lib/faker/company.ex index e4cddf281..bed3ce6cb 100644 --- a/lib/faker/company.ex +++ b/lib/faker/company.ex @@ -12,6 +12,12 @@ defmodule Faker.Company do iex> Faker.Company.bs() "syndicate e-business e-business" + iex> Faker.Company.bs() + "scale global metrics" + iex> Faker.Company.bs() + "optimize scalable markets" + iex> Faker.Company.bs() + "implement out-of-the-box content" """ @spec bs() :: String.t() localize(:bs) @@ -22,7 +28,13 @@ defmodule Faker.Company do ## Examples iex> Faker.Company.bullshit() - "plug-and-play" + "web-enabled" + iex> Faker.Company.bullshit() + "e-business" + iex> Faker.Company.bullshit() + "web-enabled" + iex> Faker.Company.bullshit() + "next-generation" """ @spec bullshit() :: String.t() localize(:bullshit) @@ -33,7 +45,13 @@ defmodule Faker.Company do ## Examples iex> Faker.Company.bullshit_prefix() - "grow" + "syndicate" + iex> Faker.Company.bullshit_prefix() + "visualize" + iex> Faker.Company.bullshit_prefix() + "incentivize" + iex> Faker.Company.bullshit_prefix() + "scale" """ @spec bullshit_prefix() :: String.t() localize(:bullshit_prefix) @@ -45,6 +63,12 @@ defmodule Faker.Company do iex> Faker.Company.bullshit_suffix() "e-services" + iex> Faker.Company.bullshit_suffix() + "niches" + iex> Faker.Company.bullshit_suffix() + "e-business" + iex> Faker.Company.bullshit_suffix() + "systems" """ @spec bullshit_suffix() :: String.t() localize(:bullshit_suffix) @@ -56,6 +80,12 @@ defmodule Faker.Company do iex> Faker.Company.buzzword() "upward-trending" + iex> Faker.Company.buzzword() + "full-range" + iex> Faker.Company.buzzword() + "uniform" + iex> Faker.Company.buzzword() + "tertiary" """ @spec buzzword() :: String.t() localize(:buzzword) @@ -67,6 +97,12 @@ defmodule Faker.Company do iex> Faker.Company.buzzword_prefix() "Configurable" + iex> Faker.Company.buzzword_prefix() + "Advanced" + iex> Faker.Company.buzzword_prefix() + "Grass-roots" + iex> Faker.Company.buzzword_prefix() + "Automated" """ @spec buzzword_prefix() :: String.t() localize(:buzzword_prefix) @@ -78,6 +114,12 @@ defmodule Faker.Company do iex> Faker.Company.buzzword_suffix() "encoding" + iex> Faker.Company.buzzword_suffix() + "standardization" + iex> Faker.Company.buzzword_suffix() + "Graphical User Interface" + iex> Faker.Company.buzzword_suffix() + "product" """ @spec buzzword_suffix() :: String.t() localize(:buzzword_suffix) @@ -89,6 +131,12 @@ defmodule Faker.Company do iex> Faker.Company.catch_phrase() "Configurable full-range Graphical User Interface" + iex> Faker.Company.buzzword_suffix() + "product" + iex> Faker.Company.buzzword_suffix() + "intranet" + iex> Faker.Company.buzzword_suffix() + "pricing structure" """ @spec catch_phrase() :: String.t() localize(:catch_phrase) @@ -99,7 +147,13 @@ defmodule Faker.Company do ## Examples iex> Faker.Company.name() - "Cartwright and Sons" + "Hayes Inc" + iex> Faker.Company.name() + "Sipes, Wehner and Hane" + iex> Faker.Company.name() + "Schiller, Rogahn and Hartmann" + iex> Faker.Company.name() + "Murphy-Metz" """ @spec name() :: String.t() localize(:name) @@ -111,6 +165,12 @@ defmodule Faker.Company do iex> Faker.Company.suffix() "Inc" + iex> Faker.Company.suffix() + "and Sons" + iex> Faker.Company.suffix() + "Inc" + iex> Faker.Company.suffix() + "Ltd" """ @spec suffix() :: String.t() localize(:suffix) From c96c0fc5cf0e639c698b0ec59a7b90b23d712714 Mon Sep 17 00:00:00 2001 From: Marcus Wood Date: Tue, 10 Sep 2024 22:31:23 +1000 Subject: [PATCH 72/92] Discard changes to lib/faker/dog/pt_br.ex --- lib/faker/dog/pt_br.ex | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/lib/faker/dog/pt_br.ex b/lib/faker/dog/pt_br.ex index 56638d8f6..f984b4cc0 100644 --- a/lib/faker/dog/pt_br.ex +++ b/lib/faker/dog/pt_br.ex @@ -10,8 +10,14 @@ defmodule Faker.Dog.PtBr do ## Examples + iex> Faker.Dog.PtBr.name() + "Simba" + iex> Faker.Dog.PtBr.name() + "Max" iex> Faker.Dog.PtBr.name() "Malu" + iex> Faker.Dog.PtBr.name() + "Mike" """ @spec name() :: String.t() sampler(:name, [ @@ -72,7 +78,13 @@ defmodule Faker.Dog.PtBr do ## Examples iex> Faker.Dog.PtBr.breed() - "Maltês" + "Boxer" + iex> Faker.Dog.PtBr.breed() + "Schnauzer" + iex> Faker.Dog.PtBr.breed() + "Lhasa apso" + iex> Faker.Dog.PtBr.breed() + "Fila brasileiro" """ @spec breed() :: String.t() sampler(:breed, [ @@ -131,7 +143,13 @@ defmodule Faker.Dog.PtBr do ## Examples iex> Faker.Dog.PtBr.characteristic() - "Brincalhão, energético e esperto" + "Atlético, protetor e amável" + iex> Faker.Dog.PtBr.characteristic() + "Independente, reservado e inteligente" + iex> Faker.Dog.PtBr.characteristic() + "Amigável, trabalhador e extrovertido" + iex> Faker.Dog.PtBr.characteristic() + "Calmo, leal e orgulhoso" """ @spec characteristic() :: String.t() sampler(:characteristic, [ From 9e0fa7b3486cb50840da9934669711b27e2a5133 Mon Sep 17 00:00:00 2001 From: Igor Kapkov Date: Tue, 10 Sep 2024 22:39:25 +1000 Subject: [PATCH 73/92] oh man --- lib/faker/commerce/hy.ex | 6 +++--- lib/faker/file.ex | 22 ++++++---------------- lib/faker/finance/stock.ex | 6 +++--- lib/faker/gov/us.ex | 6 ++++++ lib/faker/industry.ex | 18 ++++++++++++++++++ lib/faker/lorem.ex | 22 ++++++++-------------- lib/faker/pizza.ex | 16 ++++++++-------- lib/faker/vehicle.ex | 2 +- 8 files changed, 53 insertions(+), 45 deletions(-) diff --git a/lib/faker/commerce/hy.ex b/lib/faker/commerce/hy.ex index 865129dce..74cc62f9f 100644 --- a/lib/faker/commerce/hy.ex +++ b/lib/faker/commerce/hy.ex @@ -25,7 +25,7 @@ defmodule Faker.Commerce.Hy do ## Examples iex> Faker.Commerce.Hy.department() - "Ապրանքներ Տան Համար" + "Համակարգիչներ" """ @spec department() :: String.t() sampler(:department, [ @@ -59,7 +59,7 @@ defmodule Faker.Commerce.Hy do ## Examples iex> Faker.Commerce.Hy.product_name() - "շքեղ բրդյա ավտոմեքենա" + "հիանալի բրոնզե գլխարկ" """ @spec product_name() :: String.t() def product_name, do: product_name(Faker.random_between(0, 2)) @@ -134,7 +134,7 @@ defmodule Faker.Commerce.Hy do ## Examples iex> Faker.Commerce.Hy.product_name_product() - "կոշիկ" + "վերնաշապիկ" """ @spec product_name_product() :: String.t() sampler(:product_name_product, [ diff --git a/lib/faker/file.ex b/lib/faker/file.ex index 9e810cd3a..996728134 100644 --- a/lib/faker/file.ex +++ b/lib/faker/file.ex @@ -39,7 +39,7 @@ defmodule Faker.File do ## Examples iex> Faker.File.file_extension() - "html" + "wav" """ @spec file_extension() :: String.t() def file_extension do @@ -55,10 +55,10 @@ defmodule Faker.File do ## Examples iex> Faker.File.file_extension(:video) - "webm" + "mov" iex> Faker.File.file_extension(:image) - "jpg" + "bmp" """ @spec file_extension(atom) :: String.t() def file_extension(category) do @@ -73,7 +73,7 @@ defmodule Faker.File do ## Examples iex> Faker.File.file_name() - "et.bmp" + "aliquam.jpg" """ @spec file_name() :: String.t() def file_name do @@ -89,11 +89,7 @@ defmodule Faker.File do iex> Faker.File.file_name(:text) "aliquam.txt" iex> Faker.File.file_name(:video) - "et.avi" - iex> Faker.File.file_name(:image) - "et.tiff" - iex> Faker.File.file_name(:audio) - "et.mp3" + "sint.mp4" """ @spec file_name(atom) :: String.t() def file_name(category) do @@ -123,13 +119,7 @@ defmodule Faker.File do ## Examples iex> Faker.File.mime_type(:image) - "image/png" - iex> Faker.File.mime_type(:audio) - "audio/vnd.wave" - iex> Faker.File.mime_type(:application) - "application/font-woff" - iex> Faker.File.mime_type(:video) - "video/x-flv" + "image/vnd.microsoft.icon" """ @spec mime_type(atom) :: String.t() def mime_type(category) do diff --git a/lib/faker/finance/stock.ex b/lib/faker/finance/stock.ex index 0866b54e5..95ead71bc 100644 --- a/lib/faker/finance/stock.ex +++ b/lib/faker/finance/stock.ex @@ -11,7 +11,7 @@ defmodule Faker.Finance.Stock do ## Examples iex> Faker.Finance.Stock.ticker() - "7278.N225" + "7401.N225" """ @spec ticker() :: String.t() def ticker do @@ -27,10 +27,10 @@ defmodule Faker.Finance.Stock do ## Examples iex> Faker.Finance.Stock.ticker(:reuters, :nikkei225) - "7280.N225" + "2110.N225" iex> Faker.Finance.Stock.ticker(:reuters, :sehk) - "6281.HK" + "8517.HK" """ def ticker(:reuters, :nikkei225) do "#{Faker.random_between(1000, 9999)}.N225" diff --git a/lib/faker/gov/us.ex b/lib/faker/gov/us.ex index 44ea0715a..530720043 100644 --- a/lib/faker/gov/us.ex +++ b/lib/faker/gov/us.ex @@ -39,6 +39,12 @@ defmodule Faker.Gov.Us do iex> Faker.Gov.Us.ein() "04-0389586" + iex> Faker.Gov.Us.ein() + "07-8027034" + iex> Faker.Gov.Us.ein() + "41-6859447" + iex> Faker.Gov.Us.ein() + "83-6106581" """ @spec ein() :: String.t() def ein do diff --git a/lib/faker/industry.ex b/lib/faker/industry.ex index da5973eba..784dd1547 100644 --- a/lib/faker/industry.ex +++ b/lib/faker/industry.ex @@ -30,6 +30,12 @@ defmodule Faker.Industry do iex> Faker.Industry.super_sector() "Automobiles & Parts" + iex> Faker.Industry.super_sector() + "Banks" + iex> Faker.Industry.super_sector() + "Automobiles & Parts" + iex> Faker.Industry.super_sector() + "Health Care" """ @spec super_sector() :: String.t() localize(:super_sector) @@ -41,6 +47,12 @@ defmodule Faker.Industry do iex> Faker.Industry.sector() "Food & Drug Retailers" + iex> Faker.Industry.sector() + "Banks" + iex> Faker.Industry.sector() + "Software & Computer Services" + iex> Faker.Industry.sector() + "Media" """ @spec sector() :: String.t() localize(:sector) @@ -52,6 +64,12 @@ defmodule Faker.Industry do iex> Faker.Industry.sub_sector() "Electrical Components & Equipment" + iex> Faker.Industry.sub_sector() + "Publishing" + iex> Faker.Industry.sub_sector() + "Alternative Electricity" + iex> Faker.Industry.sub_sector() + "Forestry" """ @spec sub_sector() :: String.t() localize(:sub_sector) diff --git a/lib/faker/lorem.ex b/lib/faker/lorem.ex index 3947bef9c..1c919c6ac 100644 --- a/lib/faker/lorem.ex +++ b/lib/faker/lorem.ex @@ -288,13 +288,13 @@ defmodule Faker.Lorem do ~c'ppkQqaIfGqxsjFoNITNnu6eXyJicLJNth88PrhGDhwp4LNQMt5pCFh7XGEZUiBOjqwcnSUTH94vu8a9XKUwNAs48lHzPITbFXSfTS0pHfBSmHkbj9kOsd7qRuGeXKTgCgI1idI3uwENwTqc' iex> Faker.Lorem.characters(3..5) - ~c'5LR' + ~c'ppk' iex> Faker.Lorem.characters(2) - ~c'8O' + ~c'Ap' iex> Faker.Lorem.characters(7) - ~c'8OUdXz7' + ~c'AppkQqa' """ @spec characters(integer | Range.t()) :: [char] def characters(range_or_length \\ 15..255) @@ -324,10 +324,10 @@ defmodule Faker.Lorem do ## Examples iex> Faker.Lorem.paragraph() - "Dolor accusantium ipsam vero et non quidem. Laborum repellat aliquam animi recusandae dolorum in aut atque quas. Qui hic eum deserunt quam neque distinctio officiis veritatis? Aut enim rerum architecto quia ut velit. Dolore iure ut ex debitis odio?" + "Deleniti consequatur et qui vitae et. Sit aut expedita cumque est necessitatibus beatae ex sunt! Soluta asperiores qui vitae animi et id et vitae. Quisquam corporis quisquam ab harum!" iex> Faker.Lorem.paragraph(1..2) - "Amet aperiam quia et odio eius facilis libero eveniet." + "Deleniti consequatur et qui vitae et." iex> Faker.Lorem.paragraph(1) "Adipisci ipsa sit officiis ducimus tempora et." @@ -422,13 +422,7 @@ defmodule Faker.Lorem do ## Examples iex> Faker.Lorem.sentence(7, "...") - "Et sunt vel et dolores ad cumque..." - iex> Faker.Lorem.sentence(1, "?") - "Est?" - iex> Faker.Lorem.sentence(5, ".") - "Tenetur consequatur illo ut quae." - iex> Faker.Lorem.sentence(3, ";") - "Excepturi sint mollitia;" + "Aliquam ut sint deleniti consequatur et qui..." """ @spec sentence(integer, binary) :: String.t() def sentence(num, mark) when is_integer(num) and is_binary(mark) do @@ -493,9 +487,9 @@ defmodule Faker.Lorem do ## Examples iex> Faker.Lorem.words() - ["tempora", "architecto", "commodi", "et", "deleniti", "quaerat"] + ["ut", "sint", "deleniti", "consequatur", "et"] iex> Faker.Lorem.words(1..2) - ["cum"] + ["vitae"] iex> Faker.Lorem.words(2) ["cumque", "non"] iex> Faker.Lorem.words(6) diff --git a/lib/faker/pizza.ex b/lib/faker/pizza.ex index a1932b2a6..2f2d6e72d 100644 --- a/lib/faker/pizza.ex +++ b/lib/faker/pizza.ex @@ -18,10 +18,10 @@ defmodule Faker.Pizza do iex> Faker.Pizza.pizzas() [ - "14\\" Greek Maltija", + "14\\" Greek Fajita", "Large with Reindeer, Buffalo Chicken, Egg, Chorizo, and Clam", - "9\\" Capricciosa", - "9\\" Sicilian Style Frutti di mare" + "9\\" Kebab", + "9\\" Sicilian Style Buffalo Chicken" ] iex> Faker.Pizza.pizzas(2..3) [ @@ -68,9 +68,9 @@ defmodule Faker.Pizza do iex> Faker.Pizza.pizza() "Medium New York Style with Clam and Reindeer" iex> Faker.Pizza.pizza() - "9\\" Supreme" + "9\\" Africana" iex> Faker.Pizza.pizza() - "16\\" Shrimp Club" + "16\\" Meat Lovers" """ @spec pizza() :: String.t() def pizza, do: pizza(Faker.random_between(1, 30)) @@ -450,11 +450,11 @@ defmodule Faker.Pizza do ## Examples iex> Faker.Pizza.combo() - "Breakfast" + "Hot & Spicy" iex> Faker.Pizza.combo() - "Caprese" + "Breakfast" iex> Faker.Pizza.combo() - "Mockba" + "Thai Chicken" iex> Faker.Pizza.combo() "Poutine" """ diff --git a/lib/faker/vehicle.ex b/lib/faker/vehicle.ex index 60b4ed3c0..9c0b00d6d 100644 --- a/lib/faker/vehicle.ex +++ b/lib/faker/vehicle.ex @@ -241,7 +241,7 @@ defmodule Faker.Vehicle do ## Examples iex> Faker.Vehicle.transmission() - "Manual" + "CVT" """ @spec transmission() :: String.t() localize(:transmission) From aa41dbc840369ff3ec05be23b83806e1960d2ed3 Mon Sep 17 00:00:00 2001 From: Igor Kapkov Date: Wed, 11 Sep 2024 10:55:40 +1000 Subject: [PATCH 74/92] fix: rest --- lib/faker/lorem.ex | 64 ++++++++++++++++++++++++++++++---------------- lib/faker/pizza.ex | 10 ++++---- 2 files changed, 47 insertions(+), 27 deletions(-) diff --git a/lib/faker/lorem.ex b/lib/faker/lorem.ex index 1c919c6ac..0928dc933 100644 --- a/lib/faker/lorem.ex +++ b/lib/faker/lorem.ex @@ -325,15 +325,12 @@ defmodule Faker.Lorem do iex> Faker.Lorem.paragraph() "Deleniti consequatur et qui vitae et. Sit aut expedita cumque est necessitatibus beatae ex sunt! Soluta asperiores qui vitae animi et id et vitae. Quisquam corporis quisquam ab harum!" - iex> Faker.Lorem.paragraph(1..2) - "Deleniti consequatur et qui vitae et." - + "Numquam maxime ut aut inventore eius rerum beatae. Qui officia vel quaerat expedita." iex> Faker.Lorem.paragraph(1) - "Adipisci ipsa sit officiis ducimus tempora et." - + "Perspiciatis rerum nam repellendus inventore nihil." iex> Faker.Lorem.paragraph(2) - "Adipisci ipsa sit officiis ducimus tempora et. Et vero enim et hic quidem!" + "Sequi ducimus qui voluptates magni quisquam sed odio. Vel error non impedit tempora minus." """ @spec paragraph(integer | Range.t()) :: String.t() def paragraph(range \\ 2..5) @@ -359,15 +356,24 @@ defmodule Faker.Lorem do ## Examples iex> Faker.Lorem.paragraphs() - ["Neque aut ullam voluptas esse adipisci? Sunt mollitia voluptatibus labore qui sint id eum? Quod quam odio aut recusandae consequatur in ea. Aspernatur mollitia repellat eligendi temporibus aliquam accusamus inventore? Aut quo ut incidunt quis tenetur laboriosam eos.", "Ea nam eos voluptate maxime minus. Quia aperiam debitis maiores expedita fugit quibusdam odio saepe. Et et quasi reprehenderit.", "Ipsa soluta repellat ut neque illum dolor. Voluptas sint numquam occaecati. Quidem architecto quisquam quia ad possimus reprehenderit. Debitis reiciendis numquam aut eos dolores porro!", "Tempore quas eveniet nostrum explicabo aliquam sit ut iste ipsum! Perferendis consequatur velit natus distinctio! Qui et esse modi architecto quaerat tempora suscipit explicabo facere.", "Iste aut ipsum dolor qui fugit illo. Eius consequatur nulla natus molestias tempore quidem dolor autem. Id aspernatur vel quia sit consequuntur."] + [ + "Consequatur et qui vitae? Et sit aut expedita cumque est necessitatibus beatae ex. Possimus soluta asperiores qui vitae.", + "Et vitae vitae ut quisquam corporis quisquam ab harum ipsa. Numquam maxime ut aut inventore eius rerum beatae. Qui officia vel quaerat expedita. Perspiciatis rerum nam repellendus inventore nihil. Sequi ducimus qui voluptates magni quisquam sed odio.", + "Error non impedit tempora minus voluptatem qui fugit. Ab consectetur harum earum possimus. Provident quisquam modi accusantium eligendi numquam illo voluptas. Est non id quibusdam qui omnis?", + "Dicta dolores at ut delectus magni atque eos beatae nulla. Laudantium qui dolorem pariatur voluptatibus sed et enim?" + ] iex> Faker.Lorem.paragraphs(2..3) - ["Qui explicabo optio ut amet doloremque? Et tenetur voluptatem ullam cupiditate aliquam optio unde et.", "Accusantium cumque consequatur aliquid rerum ut dicta explicabo. Itaque illum autem distinctio dolor. Voluptate asperiores amet adipisci quis qui soluta similique. Soluta eum fugiat voluptas quo voluptates?", "Quas velit numquam ducimus quam quidem ut cupiditate placeat. Earum corporis voluptate nisi veritatis vel cum eaque? Eaque inventore ut ut reiciendis? Culpa numquam veritatis qui reiciendis alias repudiandae debitis et? Voluptatem quis reprehenderit aperiam fugit."] + [ + "Voluptate reiciendis repellat et praesentium quia sed nemo. Vero repellat cumque nihil similique repudiandae corrupti rerum? Accusamus suscipit perspiciatis cum et sint dolore et ut. Eos reprehenderit cupiditate omnis et doloremque omnis.", + "Quo et est culpa eum ex et veniam aut aut! Labore fuga tenetur alias est provident?", + "Illo consequatur maiores illum et quia culpa sunt! Cumque porro ut eum porro est id maxime dolorum animi. Deserunt ipsa consequuntur eveniet asperiores. Quia numquam voluptas vitae repellat tempore." + ] iex> Faker.Lorem.paragraphs(1) - ["Eos et necessitatibus et rerum sit voluptatem quae! Totam a in voluptas ducimus consequuntur. Consequatur neque dolore sunt provident a tenetur id corrupti. Atque rerum illum ut et. Dolorum quia sunt atque quo corporis."] + ["Voluptas harum modi omnis quam dolor a aliquam officiis. Neque voluptas consequatur sed cupiditate dolorum pariatur et."] iex> Faker.Lorem.paragraphs(2) [ - "Facilis natus sint sapiente? Omnis porro quas totam dolore. Nihil ut sed ut voluptas dolor sint vel eaque quibusdam!", - "Dolorem nemo et sed et. Praesentium debitis voluptatum aspernatur cum voluptatem optio? Voluptatibus sint eaque quia suscipit voluptas in? Ullam ex qui libero eum rerum quae maxime aut!" + "Voluptatem natus amet eius eos non dolorum quaerat dolores pariatur. Aliquam rerum ab voluptatem exercitationem nobis enim delectus tempore eos. Ex enim dolore ut consequuntur eaque expedita dicta eius totam. A eveniet ab magni rerum enim consequatur.", + "Nihil laudantium ea veniam necessitatibus qui. Minus ad omnis quaerat quidem impedit sint. Id ut repellat qui repudiandae!" ] """ @spec paragraphs(integer | Range.t()) :: list(String.t()) @@ -398,9 +404,9 @@ defmodule Faker.Lorem do ## Examples iex> Faker.Lorem.sentence() - "Adipisci ipsa sit officiis ducimus tempora et." + "Sint deleniti consequatur et qui vitae et quibusdam et sit." iex> Faker.Lorem.sentence(2..3) - "Est debitis nostrum." + "Cumque est?" """ @spec sentence(integer | Range.t()) :: String.t() def sentence(range \\ 4..10) @@ -446,18 +452,32 @@ defmodule Faker.Lorem do ## Examples iex> Faker.Lorem.sentences() - ["Dolor accusantium ipsam vero et non quidem.", "Laborum repellat aliquam animi recusandae dolorum in aut atque quas.", "Qui hic eum deserunt quam neque distinctio officiis veritatis?", "Aut enim rerum architecto quia ut velit.", "Dolore iure ut ex debitis odio?"] + [ + "Deleniti consequatur et qui vitae et.", + "Sit aut expedita cumque est necessitatibus beatae ex sunt!", + "Soluta asperiores qui vitae animi et id et vitae.", + "Quisquam corporis quisquam ab harum!" + ] iex> Faker.Lorem.sentences(3..4) - ["Est neque et assumenda possimus qui odit?", "Ut consequatur aut eos qui laudantium sint quas officiis qui.", "Esse magni assumenda temporibus dicta magnam et accusamus reiciendis et."] + [ + "Numquam maxime ut aut inventore eius rerum beatae.", + "Qui officia vel quaerat expedita.", + "Perspiciatis rerum nam repellendus inventore nihil.", + "Sequi ducimus qui voluptates magni quisquam sed odio." + ] iex> Faker.Lorem.sentences(4) [ - "Corporis est est non vero nisi velit saepe.", - "Deleniti dolor perferendis aliquid dolore repellat harum at officiis?", - "Expedita nostrum dignissimos dolore voluptate atque et impedit quia.", - "Dolorem nesciunt aliquid quo aut id cumque et." + "Vel error non impedit tempora minus.", + "Fugit cupiditate fuga ab consectetur harum earum possimus totam.", + "Quisquam modi accusantium eligendi numquam.", + "Quod blanditiis est non id quibusdam qui omnis alias!" ] iex> Faker.Lorem.sentences(3) - ["Autem tempora velit vel corrupti?", "Velit vero est modi laboriosam ut.", "Voluptatem ut quia iure reiciendis nihil perferendis cum?"] + [ + "Dicta dolores at ut delectus magni atque eos beatae nulla.", + "Laudantium qui dolorem pariatur voluptatibus sed et enim?", + "Minima laudantium voluptate reiciendis repellat." + ] """ @spec sentences(integer | Range.t()) :: [String.t()] def sentences(range \\ 2..5) @@ -491,9 +511,9 @@ defmodule Faker.Lorem do iex> Faker.Lorem.words(1..2) ["vitae"] iex> Faker.Lorem.words(2) - ["cumque", "non"] + ["et", "quibusdam"] iex> Faker.Lorem.words(6) - ["nisi", "doloremque", "debitis", "voluptatem", "corrupti", "saepe"] + ["et", "sit", "aut", "expedita", "cumque", "est"] """ @spec words(integer | Range.t()) :: [String.t()] def words(range \\ 3..6) diff --git a/lib/faker/pizza.ex b/lib/faker/pizza.ex index 2f2d6e72d..402c4238a 100644 --- a/lib/faker/pizza.ex +++ b/lib/faker/pizza.ex @@ -25,19 +25,19 @@ defmodule Faker.Pizza do ] iex> Faker.Pizza.pizzas(2..3) [ - "12\\" Fajita", - "Medium Fajita" + "12\\" Quattro Formaggio", + "Medium Pesto Chicken" ] iex> Faker.Pizza.pizzas(3..4) [ "Large Gluten-Free Corn with Oysters, Bacon, and Steak", - "10\\" Flatbread Grilled Vegetarian", - "30\\" Thai Chicken", + "10\\" Flatbread Pesto Chicken", + "30\\" Funghi", "Small with Sauerkraut" ] iex> Faker.Pizza.pizzas(5) [ - "Large Quattro Formaggio", + "Large Cheese", "Small Sweet Potato Crust with Mackerel, Jalapeños, Smoked Mozzarella, and Smoked Salmon", "30\\" with Pickled Ginger, Meatballs, Goat Cheese, Prosciutto, and Pineapple", "9\\" Detroit-style with Steak", From b777a79a8b3cfe3940b9df70140adf97cf4e9cab Mon Sep 17 00:00:00 2001 From: Marcus Wood Date: Thu, 30 Jan 2025 21:20:13 +1100 Subject: [PATCH 75/92] fix(ci): credo --- .github/workflows/ci.yaml | 44 ++++++++++++--------------------------- mix.exs | 2 +- mix.lock | 6 +++--- 3 files changed, 17 insertions(+), 35 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 11f0c695a..4b5008f5d 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -6,7 +6,7 @@ on: jobs: credo: - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 steps: - uses: actions/checkout@v4.1.7 - uses: actions/cache@v4.0.2 @@ -15,10 +15,15 @@ jobs: path: _build - uses: erlef/setup-beam@v1.18.0 with: - elixir-version: 1.15.x - otp-version: 26.x + otp-version: 26.2 + elixir-version: 1.17.3 - run: mix deps.get - - run: mix credo --strict --format=sarif + - run: mix credo --format=sarif --mute-exit-status > credo_output.sarif + - name: Upload SARIF + uses: github/codeql-action/upload-sarif@v3.28.8 + with: + # Path to SARIF file relative to the root of the repository + sarif_file: credo_output.sarif # dialyzer: # runs-on: ${{ matrix.os || 'ubuntu-22.04' }} @@ -53,17 +58,17 @@ jobs: # - run: mix dialyzer --format github test: - runs-on: ${{ matrix.os || 'ubuntu-22.04' }} + runs-on: ubuntu-24.04 steps: - uses: actions/checkout@v4.1.7 - uses: actions/cache@v4.0.2 with: - key: ${{ github.job }}-${{ matrix.elixir }}-${{ matrix.otp }}-${{ hashFiles('mix.lock') }}-1 + key: ${{ github.job }}-${{ matrix.elixir }}-${{ hashFiles('mix.lock') }}-1 path: _build - uses: erlef/setup-beam@v1.18.0 with: elixir-version: ${{ matrix.elixir }} - otp-version: ${{ matrix.otp }} + otp-version: 26.x - run: mix deps.get - run: mix test strategy: @@ -71,29 +76,6 @@ jobs: matrix: include: - elixir: 1.15.x - otp: 24.x - os: ubuntu-24.04 - - elixir: 1.15.x - otp: 25.x - os: ubuntu-24.04 - - elixir: 1.15.x - otp: 26.x - os: ubuntu-24.04 - elixir: 1.16.x - otp: 24.x - os: ubuntu-24.04 - - elixir: 1.16.x - otp: 25.x - os: ubuntu-24.04 - - elixir: 1.16.x - otp: 26.x - os: ubuntu-24.04 - - elixir: 1.17.x - otp: 25.x - os: ubuntu-24.04 - - elixir: 1.17.x - otp: 26.x - os: ubuntu-24.04 - elixir: 1.17.x - otp: 27.x - os: ubuntu-24.04 + - elixir: 1.18.x diff --git a/mix.exs b/mix.exs index 4d9053e67..1df12f2a1 100644 --- a/mix.exs +++ b/mix.exs @@ -46,7 +46,7 @@ defmodule Faker.Mixfile do [ {:ex_doc, "== 0.33.0", only: :dev, runtime: false}, {:earmark, "1.4.46", only: :dev, runtime: false}, - {:credo, "== 1.7.5", only: [:dev, :test], runtime: false}, + {:credo, "== 1.7.11", only: [:dev, :test], runtime: false}, {:dialyxir, "== 1.4.3", only: [:dev], runtime: false}, {:mix_test_watch, "~> 1.0", only: [:dev, :test], runtime: false} ] diff --git a/mix.lock b/mix.lock index 0d63c84ed..436f47bb5 100644 --- a/mix.lock +++ b/mix.lock @@ -1,13 +1,13 @@ %{ "bunt": {:hex, :bunt, "1.0.0", "081c2c665f086849e6d57900292b3a161727ab40431219529f13c4ddcf3e7a44", [:mix], [], "hexpm", "dc5f86aa08a5f6fa6b8096f0735c4e76d54ae5c9fa2c143e5a1fc7c1cd9bb6b5"}, - "credo": {:hex, :credo, "1.7.5", "643213503b1c766ec0496d828c90c424471ea54da77c8a168c725686377b9545", [:mix], [{:bunt, "~> 0.2.1 or ~> 1.0", [hex: :bunt, repo: "hexpm", optional: false]}, {:file_system, "~> 0.2 or ~> 1.0", [hex: :file_system, repo: "hexpm", optional: false]}, {:jason, "~> 1.0", [hex: :jason, repo: "hexpm", optional: false]}], "hexpm", "f799e9b5cd1891577d8c773d245668aa74a2fcd15eb277f51a0131690ebfb3fd"}, + "credo": {:hex, :credo, "1.7.11", "d3e805f7ddf6c9c854fd36f089649d7cf6ba74c42bc3795d587814e3c9847102", [:mix], [{:bunt, "~> 0.2.1 or ~> 1.0", [hex: :bunt, repo: "hexpm", optional: false]}, {:file_system, "~> 0.2 or ~> 1.0", [hex: :file_system, repo: "hexpm", optional: false]}, {:jason, "~> 1.0", [hex: :jason, repo: "hexpm", optional: false]}], "hexpm", "56826b4306843253a66e47ae45e98e7d284ee1f95d53d1612bb483f88a8cf219"}, "dialyxir": {:hex, :dialyxir, "1.4.3", "edd0124f358f0b9e95bfe53a9fcf806d615d8f838e2202a9f430d59566b6b53b", [:mix], [{:erlex, ">= 0.2.6", [hex: :erlex, repo: "hexpm", optional: false]}], "hexpm", "bf2cfb75cd5c5006bec30141b131663299c661a864ec7fbbc72dfa557487a986"}, "earmark": {:hex, :earmark, "1.4.46", "8c7287bd3137e99d26ae4643e5b7ef2129a260e3dcf41f251750cb4563c8fb81", [:mix], [], "hexpm", "798d86db3d79964e759ddc0c077d5eb254968ed426399fbf5a62de2b5ff8910a"}, "earmark_parser": {:hex, :earmark_parser, "1.4.39", "424642f8335b05bb9eb611aa1564c148a8ee35c9c8a8bba6e129d51a3e3c6769", [:mix], [], "hexpm", "06553a88d1f1846da9ef066b87b57c6f605552cfbe40d20bd8d59cc6bde41944"}, "erlex": {:hex, :erlex, "0.2.6", "c7987d15e899c7a2f34f5420d2a2ea0d659682c06ac607572df55a43753aa12e", [:mix], [], "hexpm", "2ed2e25711feb44d52b17d2780eabf998452f6efda104877a3881c2f8c0c0c75"}, "ex_doc": {:hex, :ex_doc, "0.33.0", "690562b153153c7e4d455dc21dab86e445f66ceba718defe64b0ef6f0bd83ba0", [:mix], [{:earmark_parser, "~> 1.4.39", [hex: :earmark_parser, repo: "hexpm", optional: false]}, {:makeup_c, ">= 0.1.0", [hex: :makeup_c, repo: "hexpm", optional: true]}, {:makeup_elixir, "~> 0.14 or ~> 1.0", [hex: :makeup_elixir, repo: "hexpm", optional: false]}, {:makeup_erlang, "~> 0.1 or ~> 1.0", [hex: :makeup_erlang, repo: "hexpm", optional: false]}, {:makeup_html, ">= 0.1.0", [hex: :makeup_html, repo: "hexpm", optional: true]}], "hexpm", "3f69adc28274cb51be37d09b03e4565232862a4b10288a3894587b0131412124"}, - "file_system": {:hex, :file_system, "1.0.0", "b689cc7dcee665f774de94b5a832e578bd7963c8e637ef940cd44327db7de2cd", [:mix], [], "hexpm", "6752092d66aec5a10e662aefeed8ddb9531d79db0bc145bb8c40325ca1d8536d"}, - "jason": {:hex, :jason, "1.4.1", "af1504e35f629ddcdd6addb3513c3853991f694921b1b9368b0bd32beb9f1b63", [:mix], [{:decimal, "~> 1.0 or ~> 2.0", [hex: :decimal, repo: "hexpm", optional: true]}], "hexpm", "fbb01ecdfd565b56261302f7e1fcc27c4fb8f32d56eab74db621fc154604a7a1"}, + "file_system": {:hex, :file_system, "1.1.0", "08d232062284546c6c34426997dd7ef6ec9f8bbd090eb91780283c9016840e8f", [:mix], [], "hexpm", "bfcf81244f416871f2a2e15c1b515287faa5db9c6bcf290222206d120b3d43f6"}, + "jason": {:hex, :jason, "1.4.4", "b9226785a9aa77b6857ca22832cffa5d5011a667207eb2a0ad56adb5db443b8a", [:mix], [{:decimal, "~> 1.0 or ~> 2.0", [hex: :decimal, repo: "hexpm", optional: true]}], "hexpm", "c5eb0cab91f094599f94d55bc63409236a8ec69a21a67814529e8d5f6cc90b3b"}, "makeup": {:hex, :makeup, "1.1.2", "9ba8837913bdf757787e71c1581c21f9d2455f4dd04cfca785c70bbfff1a76a3", [:mix], [{:nimble_parsec, "~> 1.2.2 or ~> 1.3", [hex: :nimble_parsec, repo: "hexpm", optional: false]}], "hexpm", "cce1566b81fbcbd21eca8ffe808f33b221f9eee2cbc7a1706fc3da9ff18e6cac"}, "makeup_elixir": {:hex, :makeup_elixir, "0.16.2", "627e84b8e8bf22e60a2579dad15067c755531fea049ae26ef1020cad58fe9578", [:mix], [{:makeup, "~> 1.0", [hex: :makeup, repo: "hexpm", optional: false]}, {:nimble_parsec, "~> 1.2.3 or ~> 1.3", [hex: :nimble_parsec, repo: "hexpm", optional: false]}], "hexpm", "41193978704763f6bbe6cc2758b84909e62984c7752b3784bd3c218bb341706b"}, "makeup_erlang": {:hex, :makeup_erlang, "1.0.0", "6f0eff9c9c489f26b69b61440bf1b238d95badae49adac77973cbacae87e3c2e", [:mix], [{:makeup, "~> 1.0", [hex: :makeup, repo: "hexpm", optional: false]}], "hexpm", "ea7a9307de9d1548d2a72d299058d1fd2339e3d398560a0e46c27dab4891e4d2"}, From 6225a4c00c1ca18b8258b8708fb9d3eddd23a8d8 Mon Sep 17 00:00:00 2001 From: Marcus Wood Date: Thu, 30 Jan 2025 21:58:50 +1100 Subject: [PATCH 76/92] fix: deps --- mix.lock | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mix.lock b/mix.lock index d083bdb71..436f47bb5 100644 --- a/mix.lock +++ b/mix.lock @@ -2,7 +2,7 @@ "bunt": {:hex, :bunt, "1.0.0", "081c2c665f086849e6d57900292b3a161727ab40431219529f13c4ddcf3e7a44", [:mix], [], "hexpm", "dc5f86aa08a5f6fa6b8096f0735c4e76d54ae5c9fa2c143e5a1fc7c1cd9bb6b5"}, "credo": {:hex, :credo, "1.7.11", "d3e805f7ddf6c9c854fd36f089649d7cf6ba74c42bc3795d587814e3c9847102", [:mix], [{:bunt, "~> 0.2.1 or ~> 1.0", [hex: :bunt, repo: "hexpm", optional: false]}, {:file_system, "~> 0.2 or ~> 1.0", [hex: :file_system, repo: "hexpm", optional: false]}, {:jason, "~> 1.0", [hex: :jason, repo: "hexpm", optional: false]}], "hexpm", "56826b4306843253a66e47ae45e98e7d284ee1f95d53d1612bb483f88a8cf219"}, "dialyxir": {:hex, :dialyxir, "1.4.3", "edd0124f358f0b9e95bfe53a9fcf806d615d8f838e2202a9f430d59566b6b53b", [:mix], [{:erlex, ">= 0.2.6", [hex: :erlex, repo: "hexpm", optional: false]}], "hexpm", "bf2cfb75cd5c5006bec30141b131663299c661a864ec7fbbc72dfa557487a986"}, - "earmark": {:hex, :earmark, "1.4.47", "7e7596b84fe4ebeb8751e14cbaeaf4d7a0237708f2ce43630cfd9065551f94ca", [:mix], [], "hexpm", "3e96bebea2c2d95f3b346a7ff22285bc68a99fbabdad9b655aa9c6be06c698f8"}, + "earmark": {:hex, :earmark, "1.4.46", "8c7287bd3137e99d26ae4643e5b7ef2129a260e3dcf41f251750cb4563c8fb81", [:mix], [], "hexpm", "798d86db3d79964e759ddc0c077d5eb254968ed426399fbf5a62de2b5ff8910a"}, "earmark_parser": {:hex, :earmark_parser, "1.4.39", "424642f8335b05bb9eb611aa1564c148a8ee35c9c8a8bba6e129d51a3e3c6769", [:mix], [], "hexpm", "06553a88d1f1846da9ef066b87b57c6f605552cfbe40d20bd8d59cc6bde41944"}, "erlex": {:hex, :erlex, "0.2.6", "c7987d15e899c7a2f34f5420d2a2ea0d659682c06ac607572df55a43753aa12e", [:mix], [], "hexpm", "2ed2e25711feb44d52b17d2780eabf998452f6efda104877a3881c2f8c0c0c75"}, "ex_doc": {:hex, :ex_doc, "0.33.0", "690562b153153c7e4d455dc21dab86e445f66ceba718defe64b0ef6f0bd83ba0", [:mix], [{:earmark_parser, "~> 1.4.39", [hex: :earmark_parser, repo: "hexpm", optional: false]}, {:makeup_c, ">= 0.1.0", [hex: :makeup_c, repo: "hexpm", optional: true]}, {:makeup_elixir, "~> 0.14 or ~> 1.0", [hex: :makeup_elixir, repo: "hexpm", optional: false]}, {:makeup_erlang, "~> 0.1 or ~> 1.0", [hex: :makeup_erlang, repo: "hexpm", optional: false]}, {:makeup_html, ">= 0.1.0", [hex: :makeup_html, repo: "hexpm", optional: true]}], "hexpm", "3f69adc28274cb51be37d09b03e4565232862a4b10288a3894587b0131412124"}, From 87c8420045bd6aea9db75c2bd716bad7d7591675 Mon Sep 17 00:00:00 2001 From: Marcus Wood Date: Thu, 30 Jan 2025 22:04:12 +1100 Subject: [PATCH 77/92] fix: cache? --- .github/workflows/ci.yaml | 20 ++++++++++---------- lib/faker/internet.ex | 8 ++++---- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 22d089462..3ce4a5d24 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -15,18 +15,18 @@ jobs: path: _build - uses: erlef/setup-beam@v1.18.2 with: - otp-version: 26.2 elixir-version: 1.17.3 + otp-version: 26.x - run: mix deps.get - - run: mix credo --format=sarif --mute-exit-status > credo_output.sarif + - run: mix compile + - run: mix credo suggest --format=sarif --mute-exit-status > credo.sarif - name: Upload SARIF uses: github/codeql-action/upload-sarif@v3.28.8 with: - # Path to SARIF file relative to the root of the repository - sarif_file: credo_output.sarif + sarif_file: credo.sarif # dialyzer: - # runs-on: ${{ matrix.os || 'ubuntu-22.04' }} + # runs-on: ${{ matrix.os || 'ubuntu-24.04' }} # steps: # - uses: actions/checkout@v4.1.0 @@ -58,24 +58,24 @@ jobs: # - run: mix dialyzer --format github test: - runs-on: ubuntu-24.04 + runs-on: ${{ matrix.os || 'ubuntu-24.04' }} steps: - uses: actions/checkout@v4.2.2 - uses: actions/cache@v4.2.0 with: - key: ${{ github.job }}-${{ matrix.elixir }}-${{ hashFiles('mix.lock') }}-1 + key: ${{ github.job }}-${{ matrix.elixir }}-${{ matrix.otp }}-${{ hashFiles('mix.lock') }}-1 path: _build - uses: erlef/setup-beam@v1.18.2 with: elixir-version: ${{ matrix.elixir }} - otp-version: 26.x + otp-version: ${{ matrix.otp }} - run: mix deps.get - run: mix test strategy: fail-fast: false matrix: include: - - elixir: 1.15.x - - elixir: 1.16.x - elixir: 1.17.x + otp: 27.x - elixir: 1.18.x + otp: 27.x diff --git a/lib/faker/internet.ex b/lib/faker/internet.ex index af08ee4de..81fea2368 100644 --- a/lib/faker/internet.ex +++ b/lib/faker/internet.ex @@ -292,13 +292,13 @@ defmodule Faker.Internet do ## Examples iex> Faker.Internet.slug() - "sint-deleniti-consequatur-ut" + "sint.deleniti.consequatur.ut" iex> Faker.Internet.slug() - "sit_et" + "expedita_est_necessitatibus_cumque_aut" iex> Faker.Internet.slug(["foo", "bar"]) - "foo-bar" - iex> Faker.Internet.slug(["foo", "bar"], ["."]) "foo.bar" + iex> Faker.Internet.slug(["foo", "bar"], ["."]) + "bar.foo" """ @spec slug() :: String.t() def slug do From 35c0ce2a64bea486e4c12fbd347ff5e43ff4e5f2 Mon Sep 17 00:00:00 2001 From: Marcus Wood Date: Thu, 30 Jan 2025 22:27:41 +1100 Subject: [PATCH 78/92] Discard changes to lib/faker/commerce/hy.ex --- lib/faker/commerce/hy.ex | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/lib/faker/commerce/hy.ex b/lib/faker/commerce/hy.ex index 74cc62f9f..3a99aaf7b 100644 --- a/lib/faker/commerce/hy.ex +++ b/lib/faker/commerce/hy.ex @@ -13,6 +13,12 @@ defmodule Faker.Commerce.Hy do iex> Faker.Commerce.Hy.color() "մոխրագույն" + iex> Faker.Commerce.Hy.color() + "կանաչ" + iex> Faker.Commerce.Hy.color() + "երկնագույն" + iex> Faker.Commerce.Hy.color() + "մանուշակագույն" """ @spec color() :: String.t() def color do @@ -26,6 +32,12 @@ defmodule Faker.Commerce.Hy do iex> Faker.Commerce.Hy.department() "Համակարգիչներ" + iex> Faker.Commerce.Hy.department() + "Երաժշտություն" + iex> Faker.Commerce.Hy.department() + "Գրքեր" + iex> Faker.Commerce.Hy.department() + "Էլեկտրոնիկա" """ @spec department() :: String.t() sampler(:department, [ @@ -60,6 +72,12 @@ defmodule Faker.Commerce.Hy do iex> Faker.Commerce.Hy.product_name() "հիանալի բրոնզե գլխարկ" + iex> Faker.Commerce.Hy.product_name() + "ֆանտաստիկ դանակ" + iex> Faker.Commerce.Hy.product_name() + "պլաստիկից աթոռ" + iex> Faker.Commerce.Hy.product_name() + "ալյումինե վերնաշապիկ" """ @spec product_name() :: String.t() def product_name, do: product_name(Faker.random_between(0, 2)) @@ -78,6 +96,12 @@ defmodule Faker.Commerce.Hy do iex> Faker.Commerce.Hy.product_name_adjective() "ֆանտաստիկ" + iex> Faker.Commerce.Hy.product_name_adjective() + "հիանալի" + iex> Faker.Commerce.Hy.product_name_adjective() + "միջակ" + iex> Faker.Commerce.Hy.product_name_adjective() + "նրբագեղ" """ @spec product_name_adjective() :: String.t() sampler(:product_name_adjective, [ @@ -106,6 +130,12 @@ defmodule Faker.Commerce.Hy do iex> Faker.Commerce.Hy.product_name_material() "փայտե" + iex> Faker.Commerce.Hy.product_name_material() + "գրանիտե" + iex> Faker.Commerce.Hy.product_name_material() + "բրոնզե" + iex> Faker.Commerce.Hy.product_name_material() + "մարմարե" """ @spec product_name_material() :: String.t() sampler(:product_name_material, [ @@ -135,6 +165,12 @@ defmodule Faker.Commerce.Hy do iex> Faker.Commerce.Hy.product_name_product() "վերնաշապիկ" + iex> Faker.Commerce.Hy.product_name_product() + "ստեղնաշար" + iex> Faker.Commerce.Hy.product_name_product() + "վերնաշապիկ" + iex> Faker.Commerce.Hy.product_name_product() + "գլխարկ" """ @spec product_name_product() :: String.t() sampler(:product_name_product, [ From 937fcf78d4243a69c65f5c80dc5ad126bad839cb Mon Sep 17 00:00:00 2001 From: Marcus Wood Date: Thu, 30 Jan 2025 22:29:24 +1100 Subject: [PATCH 79/92] Discard changes to lib/faker/file.ex --- lib/faker/file.ex | 39 +++++++++++++++++++++++++++++++++++---- 1 file changed, 35 insertions(+), 4 deletions(-) diff --git a/lib/faker/file.ex b/lib/faker/file.ex index 996728134..bfc99194a 100644 --- a/lib/faker/file.ex +++ b/lib/faker/file.ex @@ -30,8 +30,8 @@ defmodule Faker.File do ~w(video/mpeg video/mp4 video/ogg video/quicktime video/webm video/x-matroska video/x-ms-wmv video/x-flv) } - @categories_extensions @extensions |> Map.keys() |> Enum.sort() - @categories_mimes @mimes |> Map.keys() |> Enum.sort() + @categories_extensions Map.keys(@extensions) + @categories_mimes Map.keys(@mimes) @doc """ Returns a random file extension @@ -40,6 +40,12 @@ defmodule Faker.File do iex> Faker.File.file_extension() "wav" + iex> Faker.File.file_extension() + "wav" + iex> Faker.File.file_extension() + "doc" + iex> Faker.File.file_extension() + "mov" """ @spec file_extension() :: String.t() def file_extension do @@ -56,9 +62,12 @@ defmodule Faker.File do iex> Faker.File.file_extension(:video) "mov" - iex> Faker.File.file_extension(:image) - "bmp" + "tiff" + iex> Faker.File.file_extension(:audio) + "flac" + iex> Faker.File.file_extension(:office) + "xls" """ @spec file_extension(atom) :: String.t() def file_extension(category) do @@ -74,6 +83,12 @@ defmodule Faker.File do iex> Faker.File.file_name() "aliquam.jpg" + iex> Faker.File.file_name() + "deleniti.doc" + iex> Faker.File.file_name() + "qui.jpg" + iex> Faker.File.file_name() + "quibusdam.csv" """ @spec file_name() :: String.t() def file_name do @@ -90,6 +105,10 @@ defmodule Faker.File do "aliquam.txt" iex> Faker.File.file_name(:video) "sint.mp4" + iex> Faker.File.file_name(:image) + "consequatur.bmp" + iex> Faker.File.file_name(:audio) + "qui.wav" """ @spec file_name(atom) :: String.t() def file_name(category) do @@ -103,6 +122,12 @@ defmodule Faker.File do iex> Faker.File.mime_type() "text/css" + iex> Faker.File.mime_type() + "message/http" + iex> Faker.File.mime_type() + "application/ogg" + iex> Faker.File.mime_type() + "model/x3d+xml" """ @spec mime_type :: String.t() def mime_type do @@ -120,6 +145,12 @@ defmodule Faker.File do iex> Faker.File.mime_type(:image) "image/vnd.microsoft.icon" + iex> Faker.File.mime_type(:audio) + "audio/mp4" + iex> Faker.File.mime_type(:application) + "application/xop+xml" + iex> Faker.File.mime_type(:video) + "video/mpeg" """ @spec mime_type(atom) :: String.t() def mime_type(category) do From dd97cab356268b1a87abd01e58e45bc7aeb97ad8 Mon Sep 17 00:00:00 2001 From: Marcus Wood Date: Thu, 30 Jan 2025 22:30:10 +1100 Subject: [PATCH 80/92] fix: order --- lib/faker/file.ex | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/faker/file.ex b/lib/faker/file.ex index bfc99194a..dced939da 100644 --- a/lib/faker/file.ex +++ b/lib/faker/file.ex @@ -30,8 +30,8 @@ defmodule Faker.File do ~w(video/mpeg video/mp4 video/ogg video/quicktime video/webm video/x-matroska video/x-ms-wmv video/x-flv) } - @categories_extensions Map.keys(@extensions) - @categories_mimes Map.keys(@mimes) + @categories_extensions @extensions |> Map.keys() |> Enum.sort() + @categories_mimes @mimes |> Map.keys() |> Enum.sort() @doc """ Returns a random file extension From 2425443ff3bc7d57cfbe93fdd2df15a2d0424f41 Mon Sep 17 00:00:00 2001 From: Marcus Wood Date: Thu, 30 Jan 2025 22:31:54 +1100 Subject: [PATCH 81/92] Discard changes to lib/faker/finance/stock.ex --- lib/faker/finance/stock.ex | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/lib/faker/finance/stock.ex b/lib/faker/finance/stock.ex index 95ead71bc..1a252ba09 100644 --- a/lib/faker/finance/stock.ex +++ b/lib/faker/finance/stock.ex @@ -12,6 +12,12 @@ defmodule Faker.Finance.Stock do iex> Faker.Finance.Stock.ticker() "7401.N225" + iex> Faker.Finance.Stock.ticker() + "4786.HK" + iex> Faker.Finance.Stock.ticker() + "6766.N225" + iex> Faker.Finance.Stock.ticker() + "5166.N225" """ @spec ticker() :: String.t() def ticker do @@ -28,9 +34,20 @@ defmodule Faker.Finance.Stock do iex> Faker.Finance.Stock.ticker(:reuters, :nikkei225) "2110.N225" - + iex> Faker.Finance.Stock.ticker(:reuters, :nikkei225) + "7401.N225" + iex> Faker.Finance.Stock.ticker(:reuters, :nikkei225) + "9835.N225" + iex> Faker.Finance.Stock.ticker(:reuters, :nikkei225) + "8304.N225" + iex> Faker.Finance.Stock.ticker(:reuters, :sehk) + "7564.HK" + iex> Faker.Finance.Stock.ticker(:reuters, :sehk) + "3609.HK" + iex> Faker.Finance.Stock.ticker(:reuters, :sehk) + "1085.HK" iex> Faker.Finance.Stock.ticker(:reuters, :sehk) - "8517.HK" + "5849.HK" """ def ticker(:reuters, :nikkei225) do "#{Faker.random_between(1000, 9999)}.N225" From 65cc60ae0f6fbb6472556e0c394da01d2f0cc830 Mon Sep 17 00:00:00 2001 From: Marcus Wood Date: Thu, 30 Jan 2025 22:37:32 +1100 Subject: [PATCH 82/92] Discard changes to lib/faker/internet/en.ex --- lib/faker/internet/en.ex | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/lib/faker/internet/en.ex b/lib/faker/internet/en.ex index 80c58ed8a..673245e54 100644 --- a/lib/faker/internet/en.ex +++ b/lib/faker/internet/en.ex @@ -12,6 +12,12 @@ defmodule Faker.Internet.En do iex> Faker.Internet.En.free_email_service() "gmail.com" + iex> Faker.Internet.En.free_email_service() + "hotmail.com" + iex> Faker.Internet.En.free_email_service() + "gmail.com" + iex> Faker.Internet.En.free_email_service() + "hotmail.com" """ @spec free_email_service() :: String sampler(:free_email_service, ["gmail.com", "yahoo.com", "hotmail.com"]) @@ -23,6 +29,12 @@ defmodule Faker.Internet.En do iex> Faker.Internet.En.domain_suffix() "com" + iex> Faker.Internet.En.domain_suffix() + "org" + iex> Faker.Internet.En.domain_suffix() + "name" + iex> Faker.Internet.En.domain_suffix() + "info" """ @spec domain_suffix() :: String.t() sampler(:domain_suffix, ["com", "biz", "info", "name", "net", "org"]) From f0dcf010b0c29d2674a4f3957048ce816edb145e Mon Sep 17 00:00:00 2001 From: Marcus Wood Date: Thu, 30 Jan 2025 22:38:29 +1100 Subject: [PATCH 83/92] Discard changes to lib/faker/internet/es.ex --- lib/faker/internet/es.ex | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/lib/faker/internet/es.ex b/lib/faker/internet/es.ex index 77759f1ac..3d95ef6ee 100644 --- a/lib/faker/internet/es.ex +++ b/lib/faker/internet/es.ex @@ -12,6 +12,12 @@ defmodule Faker.Internet.Es do iex> Faker.Internet.Es.free_email_service() "gmail.com" + iex> Faker.Internet.Es.free_email_service() + "hotmail.com" + iex> Faker.Internet.Es.free_email_service() + "gmail.com" + iex> Faker.Internet.Es.free_email_service() + "hotmail.com" """ @spec free_email_service() :: String sampler(:free_email_service, ["gmail.com", "yahoo.com", "hotmail.com"]) @@ -23,6 +29,12 @@ defmodule Faker.Internet.Es do iex> Faker.Internet.Es.domain_suffix() "com" + iex> Faker.Internet.Es.domain_suffix() + "es" + iex> Faker.Internet.Es.domain_suffix() + "com" + iex> Faker.Internet.Es.domain_suffix() + "org" """ @spec domain_suffix() :: String.t() sampler(:domain_suffix, ["com", "es", "info", "com.es", "org"]) From 62722222e12dbf4a3c937fd09a9254ca1f77ff63 Mon Sep 17 00:00:00 2001 From: Marcus Wood Date: Thu, 30 Jan 2025 22:39:12 +1100 Subject: [PATCH 84/92] Discard changes to lib/faker/name.ex --- lib/faker/name.ex | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/lib/faker/name.ex b/lib/faker/name.ex index 4ee61ad1b..b8a2206b9 100644 --- a/lib/faker/name.ex +++ b/lib/faker/name.ex @@ -12,6 +12,12 @@ defmodule Faker.Name do iex> Faker.Name.name() "Mrs. Abe Rolfson MD" + iex> Faker.Name.name() + "Conor Padberg" + iex> Faker.Name.name() + "Mr. Bianka Ryan" + iex> Faker.Name.name() + "Ally Rau MD" """ @deprecated "Use Faker.Person.name/0 instead." @spec name() :: String.t() @@ -24,6 +30,12 @@ defmodule Faker.Name do iex> Faker.Name.first_name() "Joany" + iex> Faker.Name.first_name() + "Elizabeth" + iex> Faker.Name.first_name() + "Abe" + iex> Faker.Name.first_name() + "Ozella" """ @deprecated "Use Faker.Person.first_name/0 instead." @spec first_name() :: String.t() @@ -36,6 +48,12 @@ defmodule Faker.Name do iex> Faker.Name.last_name() "Blick" + iex> Faker.Name.last_name() + "Hayes" + iex> Faker.Name.last_name() + "Schumm" + iex> Faker.Name.last_name() + "Rolfson" """ @deprecated "Use Faker.Person.last_name/0 instead." @spec last_name() :: String.t() @@ -48,6 +66,12 @@ defmodule Faker.Name do iex> Faker.Name.title() "Dynamic Identity Administrator" + iex> Faker.Name.title() + "Product Communications Technician" + iex> Faker.Name.title() + "Legacy Accountability Architect" + iex> Faker.Name.title() + "Customer Data Representative" """ @deprecated "Use Faker.Person.title/0 instead." @spec title() :: String.t() @@ -60,6 +84,12 @@ defmodule Faker.Name do iex> Faker.Name.suffix() "II" + iex> Faker.Name.suffix() + "V" + iex> Faker.Name.suffix() + "V" + iex> Faker.Name.suffix() + "V" """ @deprecated "Use Faker.Person.suffix/0 instead." @spec suffix() :: String.t() @@ -72,6 +102,12 @@ defmodule Faker.Name do iex> Faker.Name.prefix() "Mr." + iex> Faker.Name.prefix() + "Mrs." + iex> Faker.Name.prefix() + "Mr." + iex> Faker.Name.prefix() + "Dr." """ @deprecated "Use Faker.Person.prefix/0 instead." @spec prefix() :: String.t() From b06b753660d9c941b479641c3686573efc51d4dd Mon Sep 17 00:00:00 2001 From: Marcus Wood Date: Thu, 30 Jan 2025 22:40:05 +1100 Subject: [PATCH 85/92] Discard changes to lib/faker/internet/hy.ex --- lib/faker/internet/hy.ex | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/lib/faker/internet/hy.ex b/lib/faker/internet/hy.ex index 96fbf438f..4d4f4cf63 100644 --- a/lib/faker/internet/hy.ex +++ b/lib/faker/internet/hy.ex @@ -12,6 +12,12 @@ defmodule Faker.Internet.Hy do iex> Faker.Internet.Hy.free_email_service() "hotmail.com" + iex> Faker.Internet.Hy.free_email_service() + "yandex.ru" + iex> Faker.Internet.Hy.free_email_service() + "freenet.am" + iex> Faker.Internet.Hy.free_email_service() + "yahoo.com" """ @spec free_email_service() :: String sampler(:free_email_service, [ @@ -31,6 +37,12 @@ defmodule Faker.Internet.Hy do iex> Faker.Internet.Hy.domain_suffix() "am" + iex> Faker.Internet.Hy.domain_suffix() + "com" + iex> Faker.Internet.Hy.domain_suffix() + "am" + iex> Faker.Internet.Hy.domain_suffix() + "org" """ @spec domain_suffix() :: String.t() sampler(:domain_suffix, ["am", "com", "info", "net", "org"]) From ed734fd604b995fa7a2fa9440b9b7bd90bd2f6e0 Mon Sep 17 00:00:00 2001 From: Marcus Wood Date: Thu, 30 Jan 2025 22:41:43 +1100 Subject: [PATCH 86/92] Discard changes to lib/faker/internet/it.ex --- lib/faker/internet/it.ex | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/lib/faker/internet/it.ex b/lib/faker/internet/it.ex index 67627ed92..ce114f43b 100644 --- a/lib/faker/internet/it.ex +++ b/lib/faker/internet/it.ex @@ -12,6 +12,12 @@ defmodule Faker.Internet.It do iex> Faker.Internet.It.free_email_service() "virgilio.it" + iex> Faker.Internet.It.free_email_service() + "yahoo.it" + iex> Faker.Internet.It.free_email_service() + "aruba.it" + iex> Faker.Internet.It.free_email_service() + "gmail.com" """ @spec free_email_service() :: String.t() sampler(:free_email_service, [ @@ -32,6 +38,12 @@ defmodule Faker.Internet.It do iex> Faker.Internet.It.domain_suffix() "com" + iex> Faker.Internet.It.domain_suffix() + "it" + iex> Faker.Internet.It.domain_suffix() + "com" + iex> Faker.Internet.It.domain_suffix() + "biz" """ @spec domain_suffix() :: String.t() sampler(:domain_suffix, ["com", "it", "info", "org", "biz"]) From 591e9107b82a61ffd8cc8ddd9581d22099169e1d Mon Sep 17 00:00:00 2001 From: Marcus Wood Date: Thu, 30 Jan 2025 22:41:52 +1100 Subject: [PATCH 87/92] Discard changes to lib/faker/lorem/shakespeare/en.ex --- lib/faker/lorem/shakespeare/en.ex | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/lib/faker/lorem/shakespeare/en.ex b/lib/faker/lorem/shakespeare/en.ex index 6bee94d2a..9abf937e9 100644 --- a/lib/faker/lorem/shakespeare/en.ex +++ b/lib/faker/lorem/shakespeare/en.ex @@ -74,6 +74,12 @@ defmodule Faker.Lorem.Shakespeare.En do iex> Faker.Lorem.Shakespeare.En.king_richard_iii() "The king's name is a tower of strength." + iex> Faker.Lorem.Shakespeare.En.king_richard_iii() + "A horse! a horse! my kingdom for a horse!" + iex> Faker.Lorem.Shakespeare.En.king_richard_iii() + "So wise so young, they say, do never live long." + iex> Faker.Lorem.Shakespeare.En.king_richard_iii() + "Now is the winter of our discontent." """ @spec king_richard_iii() :: String.t() sampler(:king_richard_iii, [ @@ -94,6 +100,12 @@ defmodule Faker.Lorem.Shakespeare.En do iex> Faker.Lorem.Shakespeare.En.romeo_and_juliet() "What's in a name? That which we call a rose by any other name would smell as sweet." + iex> Faker.Lorem.Shakespeare.En.romeo_and_juliet() + "For you and I are past our dancing days." + iex> Faker.Lorem.Shakespeare.En.romeo_and_juliet() + "For you and I are past our dancing days." + iex> Faker.Lorem.Shakespeare.En.romeo_and_juliet() + "For you and I are past our dancing days." """ @spec romeo_and_juliet() :: String.t() sampler(:romeo_and_juliet, [ From 66c3c6aa1ae654a9e2e4fd2a5c57d00b8c6d998f Mon Sep 17 00:00:00 2001 From: Marcus Wood Date: Thu, 30 Jan 2025 22:42:13 +1100 Subject: [PATCH 88/92] Discard changes to lib/faker/lorem/shakespeare/ru.ex --- lib/faker/lorem/shakespeare/ru.ex | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/lib/faker/lorem/shakespeare/ru.ex b/lib/faker/lorem/shakespeare/ru.ex index e7242b0c3..22405462e 100644 --- a/lib/faker/lorem/shakespeare/ru.ex +++ b/lib/faker/lorem/shakespeare/ru.ex @@ -12,6 +12,12 @@ defmodule Faker.Lorem.Shakespeare.Ru do iex> Faker.Lorem.Shakespeare.Ru.hamlet() "И дальше тишина." + iex> Faker.Lorem.Shakespeare.Ru.hamlet() + "Быть иль не быть, вот в чём вопрос." + iex> Faker.Lorem.Shakespeare.Ru.hamlet() + "Быть иль не быть, вот в чём вопрос." + iex> Faker.Lorem.Shakespeare.Ru.hamlet() + "Быть иль не быть, вот в чём вопрос." """ @spec hamlet() :: String.t() sampler(:hamlet, [ @@ -35,6 +41,12 @@ defmodule Faker.Lorem.Shakespeare.Ru do iex> Faker.Lorem.Shakespeare.Ru.as_you_like_it() "Дурак думает, что он умен; умный же знает, что глуп он." + iex> Faker.Lorem.Shakespeare.Ru.as_you_like_it() + "Весь мир — театр. В нем женщины, мужчины — все актеры. У них свои есть выходы, уходы, и каждый не одну играет роль." + iex> Faker.Lorem.Shakespeare.Ru.as_you_like_it() + "Весь мир — театр. В нем женщины, мужчины — все актеры. У них свои есть выходы, уходы, и каждый не одну играет роль." + iex> Faker.Lorem.Shakespeare.Ru.as_you_like_it() + "Дурак думает, что он умен; умный же знает, что глуп он." """ @spec as_you_like_it() :: String.t() sampler(:as_you_like_it, [ @@ -49,6 +61,12 @@ defmodule Faker.Lorem.Shakespeare.Ru do iex> Faker.Lorem.Shakespeare.Ru.king_richard_iii() "Коня, коня! Престол мой за коня!" + iex> Faker.Lorem.Shakespeare.Ru.king_richard_iii() + "Нет, не купить любви ценой злодейств!" + iex> Faker.Lorem.Shakespeare.Ru.king_richard_iii() + "Нет, не купить любви ценой злодейств!" + iex> Faker.Lorem.Shakespeare.Ru.king_richard_iii() + "Коня, коня! Престол мой за коня!" """ @spec king_richard_iii() :: String.t() sampler(:king_richard_iii, [ @@ -63,6 +81,12 @@ defmodule Faker.Lorem.Shakespeare.Ru do iex> Faker.Lorem.Shakespeare.Ru.romeo_and_juliet() "Нет повести печальнее на свете, чем повесть о Ромео и Джульетте." + iex> Faker.Lorem.Shakespeare.Ru.romeo_and_juliet() + "Картина требует красивой рамы, и золотое содержанье книг, нуждается в обложках золотых." + iex> Faker.Lorem.Shakespeare.Ru.romeo_and_juliet() + "Чем лучше цель, тем целимся мы метче." + iex> Faker.Lorem.Shakespeare.Ru.romeo_and_juliet() + "В минуты отчаянья сойдёт за вечность час..." """ @spec romeo_and_juliet() :: String.t() sampler(:romeo_and_juliet, [ From ed0813e6cfa49e17eccec1f5bda8ea09ef47ea57 Mon Sep 17 00:00:00 2001 From: Marcus Wood Date: Thu, 30 Jan 2025 22:44:58 +1100 Subject: [PATCH 89/92] fix: diff --- .github/workflows/ci.yaml | 2 ++ config/config.exs | 6 ++++++ lib/faker/industry/en.ex | 6 ++++++ lib/faker/lorem.ex | 10 ++++++++++ lib/faker/util.ex | 26 ++++++++++++++++++++++++++ lib/faker/vehicle.ex | 6 ++++++ 6 files changed, 56 insertions(+) create mode 100644 config/config.exs diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 3ce4a5d24..a567a9609 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -75,6 +75,8 @@ jobs: fail-fast: false matrix: include: + - elixir: 1.16.x + otp: 26.x - elixir: 1.17.x otp: 27.x - elixir: 1.18.x diff --git a/config/config.exs b/config/config.exs new file mode 100644 index 000000000..42893415a --- /dev/null +++ b/config/config.exs @@ -0,0 +1,6 @@ +import Config + +if Mix.env() == :dev do + config :mix_test_watch, + clear: true +end diff --git a/lib/faker/industry/en.ex b/lib/faker/industry/en.ex index 293cc5c1f..982afd32a 100644 --- a/lib/faker/industry/en.ex +++ b/lib/faker/industry/en.ex @@ -136,6 +136,12 @@ defmodule Faker.Industry.En do iex> Faker.Industry.En.sub_sector() "Electrical Components & Equipment" + iex> Faker.Industry.En.sub_sector() + "Publishing" + iex> Faker.Industry.En.sub_sector() + "Alternative Electricity" + iex> Faker.Industry.En.sub_sector() + "Forestry" """ @spec sub_sector() :: String.t() sampler(:sub_sector, [ diff --git a/lib/faker/lorem.ex b/lib/faker/lorem.ex index 0928dc933..540314d6b 100644 --- a/lib/faker/lorem.ex +++ b/lib/faker/lorem.ex @@ -407,6 +407,10 @@ defmodule Faker.Lorem do "Sint deleniti consequatur et qui vitae et quibusdam et sit." iex> Faker.Lorem.sentence(2..3) "Cumque est?" + iex> Faker.Lorem.sentence(3) + "Beatae ex sunt." + iex> Faker.Lorem.sentence(5) + "Possimus soluta asperiores qui vitae." """ @spec sentence(integer | Range.t()) :: String.t() def sentence(range \\ 4..10) @@ -429,6 +433,12 @@ defmodule Faker.Lorem do iex> Faker.Lorem.sentence(7, "...") "Aliquam ut sint deleniti consequatur et qui..." + iex> Faker.Lorem.sentence(1, "?") + "Vitae?" + iex> Faker.Lorem.sentence(5, ".") + "Et quibusdam et sit aut." + iex> Faker.Lorem.sentence(3, ";") + "Expedita cumque est;" """ @spec sentence(integer, binary) :: String.t() def sentence(num, mark) when is_integer(num) and is_binary(mark) do diff --git a/lib/faker/util.ex b/lib/faker/util.ex index 20b88d034..d54d1d15b 100644 --- a/lib/faker/util.ex +++ b/lib/faker/util.ex @@ -123,6 +123,12 @@ defmodule Faker.Util do iex> Faker.Util.digit() "0" + iex> Faker.Util.digit() + "1" + iex> Faker.Util.digit() + "5" + iex> Faker.Util.digit() + "4" """ @spec digit() :: binary localize(:digit) @@ -153,6 +159,14 @@ defmodule Faker.Util do iex> Faker.Util.letter() "E" + iex> Faker.Util.letter() + "L" + iex> Faker.Util.letter() + "R" + iex> Faker.Util.letter() + "C" + iex> Faker.Util.letter() + "e" """ @spec letter() :: binary localize(:letter) @@ -164,6 +178,12 @@ defmodule Faker.Util do iex> Faker.Util.lower_letter() "e" + iex> Faker.Util.lower_letter() + "l" + iex> Faker.Util.lower_letter() + "r" + iex> Faker.Util.lower_letter() + "c" """ @spec lower_letter() :: binary localize(:lower_letter) @@ -175,6 +195,12 @@ defmodule Faker.Util do iex> Faker.Util.upper_letter() "E" + iex> Faker.Util.upper_letter() + "L" + iex> Faker.Util.upper_letter() + "R" + iex> Faker.Util.upper_letter() + "C" """ @spec upper_letter() :: binary localize(:upper_letter) diff --git a/lib/faker/vehicle.ex b/lib/faker/vehicle.ex index 9c0b00d6d..b49750de8 100644 --- a/lib/faker/vehicle.ex +++ b/lib/faker/vehicle.ex @@ -242,6 +242,12 @@ defmodule Faker.Vehicle do iex> Faker.Vehicle.transmission() "CVT" + iex> Faker.Vehicle.transmission() + "Automatic" + iex> Faker.Vehicle.transmission() + "Manual" + iex> Faker.Vehicle.transmission() + "Automanual" """ @spec transmission() :: String.t() localize(:transmission) From 83210728054e290dbf49fb29ae9c16547f03fcfd Mon Sep 17 00:00:00 2001 From: Marcus Wood Date: Thu, 30 Jan 2025 23:14:22 +1100 Subject: [PATCH 90/92] fix: 1.16? --- lib/faker/internet.ex | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/faker/internet.ex b/lib/faker/internet.ex index 81fea2368..1da31f663 100644 --- a/lib/faker/internet.ex +++ b/lib/faker/internet.ex @@ -292,13 +292,13 @@ defmodule Faker.Internet do ## Examples iex> Faker.Internet.slug() - "sint.deleniti.consequatur.ut" + "deleniti-sint-consequatur-ut" iex> Faker.Internet.slug() - "expedita_est_necessitatibus_cumque_aut" + "cumque_sit_aut_expedita" iex> Faker.Internet.slug(["foo", "bar"]) - "foo.bar" + "foo_bar" iex> Faker.Internet.slug(["foo", "bar"], ["."]) - "bar.foo" + "foo.bar" """ @spec slug() :: String.t() def slug do @@ -313,7 +313,7 @@ defmodule Faker.Internet do @spec slug([String.t()], [String.t()]) :: String.t() def slug(words, glue) do words - |> Enum.take_random(length(words)) + |> Faker.shuffle() |> Enum.join(pick(glue)) |> String.downcase() end From eeae8ea48632e9b757de6f00aeaba607ff66fe3c Mon Sep 17 00:00:00 2001 From: Marcus Wood Date: Thu, 30 Jan 2025 23:16:06 +1100 Subject: [PATCH 91/92] fix: 1.15 --- .github/workflows/ci.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index a567a9609..637c509a0 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -75,6 +75,8 @@ jobs: fail-fast: false matrix: include: + - elixir: 1.15.x + otp: 26.x - elixir: 1.16.x otp: 26.x - elixir: 1.17.x From 0bfdeac04bc3bebf0ab2766da11b99513fbccc4f Mon Sep 17 00:00:00 2001 From: Marcus Wood Date: Fri, 31 Jan 2025 00:54:26 +1100 Subject: [PATCH 92/92] Revert "fix: 1.15" This reverts commit eeae8ea48632e9b757de6f00aeaba607ff66fe3c. --- .github/workflows/ci.yaml | 2 -- lib/faker/vehicle.ex | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 637c509a0..a567a9609 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -75,8 +75,6 @@ jobs: fail-fast: false matrix: include: - - elixir: 1.15.x - otp: 26.x - elixir: 1.16.x otp: 26.x - elixir: 1.17.x diff --git a/lib/faker/vehicle.ex b/lib/faker/vehicle.ex index b49750de8..6b724e986 100644 --- a/lib/faker/vehicle.ex +++ b/lib/faker/vehicle.ex @@ -269,13 +269,13 @@ defmodule Faker.Vehicle do def vin do Util.format("%10x%y%x%5d", x: fn -> - Util.pick([Util.upper_letter(), "#{Util.digit()}"], ["I", "O", "Q"]) + Util.pick([Util.upper_letter(), Util.digit()], ["I", "O", "Q"]) end, y: fn -> Util.pick([Util.upper_letter(), "0"], ["I", "O", "Q"]) end, d: fn -> - "#{Util.digit()}" + Util.digit() end ) end