From 1fe46362e8c6eed5d16704cb206aefaa14cbbe58 Mon Sep 17 00:00:00 2001 From: Igor Kapkov Date: Tue, 5 Feb 2019 11:04:51 +1100 Subject: [PATCH] Bump 0.12.0 --- .travis.yml | 33 +++++++++++++++++++++++++++++++-- CHANGELOG.md | 2 ++ README.md | 15 +++++++++++++-- lib/faker/lorem.ex | 2 +- mix.exs | 9 ++------- test/faker/internet_test.exs | 5 +++++ 6 files changed, 54 insertions(+), 12 deletions(-) diff --git a/.travis.yml b/.travis.yml index ddeaf8279..6564d2bea 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 diff --git a/CHANGELOG.md b/CHANGELOG.md index 559a6449f..f7a284b92 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -25,6 +25,7 @@ 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][]] @@ -32,6 +33,7 @@ Change log itself follows [Keep a CHANGELOG](http://keepachangelog.com) format. * 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 diff --git a/README.md b/README.md index c75ac4531..ed153a365 100644 --- a/README.md +++ b/README.md @@ -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 ``` @@ -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/) diff --git a/lib/faker/lorem.ex b/lib/faker/lorem.ex index fb3135b6d..1dd90af1c 100644 --- a/lib/faker/lorem.ex +++ b/lib/faker/lorem.ex @@ -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 diff --git a/mix.exs b/mix.exs index cb5343863..73beb5de5 100644 --- a/mix.exs +++ b/mix.exs @@ -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", @@ -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"} } diff --git a/test/faker/internet_test.exs b/test/faker/internet_test.exs index f8bc54fa7..f7305128a 100644 --- a/test/faker/internet_test.exs +++ b/test/faker/internet_test.exs @@ -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 -> @@ -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 -> @@ -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 -> @@ -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 -> @@ -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 ->