Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Faker.Blockchain namespace #209

Merged
merged 4 commits into from
Dec 31, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion USAGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<!-- B -->
- [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)
<!-- C -->
- [Faker.Cat](lib/faker/cat.ex)
- [Faker.Cat.En](lib/faker/cat/en.ex)
Expand Down
10 changes: 5 additions & 5 deletions lib/faker/bitcoin.ex
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
defmodule Faker.Bitcoin do
defmodule Faker.Blockchain.Bitcoin do
@moduledoc """
Functions for generate random bitcoin addresses.
"""
Expand All @@ -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
Expand Down
Empty file added star_wars_test.exs
Empty file.
4 changes: 2 additions & 2 deletions test/faker/bitcoin_test.exs
Original file line number Diff line number Diff line change
@@ -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