diff --git a/CHANGELOG.md b/CHANGELOG.md index 58a21d6b7..9cfae7969 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ Change log itself follows [Keep a CHANGELOG](http://keepachangelog.com) format. ### Added +* Add `Faker.Blockchain` namespace [[@vbrazo][]] * `Faker.Address.It`, `Faker.Color.It`, `Faker.Internet.It` and `Faker.Name.It` [[@pmontrasio][]] ### Changed diff --git a/USAGE.md b/USAGE.md index a1ac84732..7f67d579f 100644 --- a/USAGE.md +++ b/USAGE.md @@ -8,7 +8,7 @@ - [Faker.Beer](lib/faker/beer.ex) - [Faker.Beer.En](lib/faker/beer/en.ex) -- [Faker.Bitcoin](lib/faker/bitcoin.ex) +- [Faker.Blockchain.Bitcoin](lib/faker/bitcoin.ex) - [Faker.Cat](lib/faker/cat.ex) - [Faker.Cat.En](lib/faker/cat/en.ex) diff --git a/lib/faker/bitcoin.ex b/lib/faker/bitcoin.ex index ddff9eddd..98c3473f4 100644 --- a/lib/faker/bitcoin.ex +++ b/lib/faker/bitcoin.ex @@ -1,4 +1,4 @@ -defmodule Faker.Bitcoin do +defmodule Faker.Blockchain.Bitcoin do @moduledoc """ Functions for generate random bitcoin addresses. """ @@ -10,13 +10,13 @@ defmodule Faker.Bitcoin do ## Examples - iex> Faker.Bitcoin.address() + iex> Faker.Blockchain.Bitcoin.address() "1Lb2DM8vNXubePBWV7xmRnqJp5YT3BatcQ" - iex> Faker.Bitcoin.address() + iex> Faker.Blockchain.Bitcoin.address() "1erV2PhPaR4ndbEvLWDD9KX8btdNJZXt5" - iex> Faker.Bitcoin.address(:main) + iex> Faker.Blockchain.Bitcoin.address(:main) "1Pn5NbAbT5hZocVWKSBtmqygdVbeVoheWk" - iex> Faker.Bitcoin.address(:testnet) + iex> Faker.Blockchain.Bitcoin.address(:testnet) "mj1Vh7G8JZxg8gBtcQic2opTxtKUCQBBc5" """ @spec address(atom) :: binary diff --git a/star_wars_test.exs b/star_wars_test.exs new file mode 100644 index 000000000..e69de29bb diff --git a/test/faker/bitcoin_test.exs b/test/faker/bitcoin_test.exs index 61cf4780d..442c5f8fe 100644 --- a/test/faker/bitcoin_test.exs +++ b/test/faker/bitcoin_test.exs @@ -1,5 +1,5 @@ -defmodule Faker.BitcoinTest do +defmodule Faker.Blockchain.BitcoinTest do use ExUnit.Case, async: true - doctest Faker.Bitcoin + doctest Faker.Blockchain.Bitcoin end