Skip to content

Commit

Permalink
Bump 0.12.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Igor Kapkov authored Feb 5, 2019
1 parent c7925b8 commit 1fe4636
Show file tree
Hide file tree
Showing 6 changed files with 54 additions and 12 deletions.
33 changes: 31 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,38 @@
language: elixir
stages:
- lint
- typecheck
- test
elixir:
- 1.4
- 1.5
- 1.6
- 1.7
script:
- mix test && mix credo --strict && mix dialyzer --halt-exit-status
- 1.8
env:
global:
- MIX_ENV=test
jobs:
include:
- script: mix credo --strict
name: "Credo"
stage: lint
elixir:
- 1.8
- script: mix format --check-formatted
name: "Formatter"
stage: lint
elixir:
- 1.8
- script: mix dialyzer --halt-exit-status
name: "Dialyzer"
stage: typecheck
env:
- MIX_ENV=dev
elixir:
- 1.8
- script: mix test
stage: test
notifications:
recipients:
- igasgeek@me.com
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,15 @@ Change log itself follows [Keep a CHANGELOG](http://keepachangelog.com) format.
### Added

* New maintainer [Vitor Oliveira (@vbrazo)](https://github.com/vbrazo)
* New maintainer [Anthony Smith (@anthonator)](https://github.com/anthonator)
* `Faker.Blockchain` namespace [[@vbrazo][]]
* `Faker.Address.It`, `Faker.Color.It`, `Faker.Internet.It` and `Faker.Name.It` [[@pmontrasio][]]

### Changed

* Bump `ex_doc` from **0.19.1** to **0.19.3**
* Bump `earmark` from **1.3.0** to **1.3.1**
* Bump `credo` from **1.0.1** to **1.0.2**

### Deprecated

Expand Down
15 changes: 13 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ fake data.

## Quickstart

* add `{:faker, "~> 0.11"}` to your deps in `mix.exs`:
* add `{:faker, "~> 0.12"}` to your deps in `mix.exs`:

```elixir
defp deps do
[{:faker, "~> 0.11", only: :test}]
[{:faker, "~> 0.12", only: :test}]
end
```

Expand Down Expand Up @@ -61,6 +61,17 @@ You can build templates for testing purposes with the
[Blacksmith](https://github.com/batate/blacksmith) project. See the Blacksmith
[readme](https://github.com/batate/blacksmith#readme) for details.

## Team

Faker was originally written by [Igor Kapkov](https://igas.me).

Current list of maintainers:

* [Anthony Smith](https://github.com/anthonator)
* [Igor Kapkov](https://igas.me)
* [Toby Hinloopen](https://github.com/tobyhinloopen)
* [Vitor Oliveira](https://github.com/vbrazo)

## Thanks

[![Sponsored by Evil Martians](https://evilmartians.com/badges/sponsored-by-evil-martians.svg)](https://evilmartians.com/)
Expand Down
2 changes: 1 addition & 1 deletion lib/faker/lorem.ex
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ defmodule Faker.Lorem do
iex> Faker.Lorem.characters(7)
'jycADSd'
"""
@spec characters(integer | Range.t) :: [char]
@spec characters(integer | Range.t()) :: [char]
def characters(range_or_length \\ 15..255)

def characters(first..last) do
Expand Down
9 changes: 2 additions & 7 deletions mix.exs
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
defmodule Faker.Mixfile do
use Mix.Project

@version "0.11.2"
@version "0.12.0"

def project do
[
app: :faker,
version: @version,
elixir: "~> 1.3",
elixir: "~> 1.4",
description: "Faker is a pure Elixir library for generating fake data.",
package: package(),
name: "Faker",
Expand Down Expand Up @@ -50,11 +50,6 @@ defmodule Faker.Mixfile do
defp package do
%{
files: ["lib", "mix.exs", "mix.lock"],
maintainers: [
"Igor Kapkov",
"Toby Hinloopen",
"Vitor Oliveira"
],
licenses: ["MIT"],
links: %{"GitHub" => "https://github.com/igas/faker"}
}
Expand Down
5 changes: 5 additions & 0 deletions test/faker/internet_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ defmodule Faker.InternetTest do

test "user_name/0" do
special_characters_pattern = :binary.compile_pattern(["'", "\""])

Stream.repeatedly(&user_name/0)
|> Enum.take(@iterations)
|> Enum.each(fn generated_value ->
Expand All @@ -54,6 +55,7 @@ defmodule Faker.InternetTest do

test "email/0" do
special_characters_pattern = :binary.compile_pattern(["'", "\""])

Stream.repeatedly(&email/0)
|> Enum.take(@iterations)
|> Enum.each(fn generated_value ->
Expand All @@ -63,6 +65,7 @@ defmodule Faker.InternetTest do

test "safe_email/0" do
special_characters_pattern = :binary.compile_pattern(["'", "\""])

Stream.repeatedly(&safe_email/0)
|> Enum.take(@iterations)
|> Enum.each(fn generated_value ->
Expand All @@ -72,6 +75,7 @@ defmodule Faker.InternetTest do

test "free_email/0" do
special_characters_pattern = :binary.compile_pattern(["'", "\""])

Stream.repeatedly(&free_email/0)
|> Enum.take(@iterations)
|> Enum.each(fn generated_value ->
Expand All @@ -81,6 +85,7 @@ defmodule Faker.InternetTest do

test "domain_word/0" do
special_characters_pattern = :binary.compile_pattern(["'", "\""])

Stream.repeatedly(&domain_word/0)
|> Enum.take(@iterations)
|> Enum.each(fn generated_value ->
Expand Down

0 comments on commit 1fe4636

Please sign in to comment.