Skip to content

Commit

Permalink
Bump 0.11.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Igor Kapkov committed Nov 21, 2018
1 parent 85a6ce4 commit 6de58a0
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
10 changes: 8 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,14 @@ Change log itself follows [Keep a CHANGELOG](http://keepachangelog.com) format.

### Fixed

* `Faker.Util.pick/1` performance regression [[@aptinio][]]

### Security

## 0.11.2

### Fixed

* `Faker.Util.pick/1` performance regression [[@aptinio][]] & [[@elbow-jason][]]

## 0.11.1

### Changed
Expand Down Expand Up @@ -236,12 +240,14 @@ Change log itself follows [Keep a CHANGELOG](http://keepachangelog.com) format.

[@adam-wanninger]: https://github.com/adam-wanninger
[@anthonator]: https://github.com/anthonator
[@aptinio]: https://github.com/aptinio
[@bcat-eu]: https://github.com/bcat-eu
[@belaustegui]: https://github.com/belaustegui
[@cdesch]: https://github.com/cdesch
[@ConnorRigby]: https://github.com/ConnorRigby
[@devshane]: https://github.com/devshane
[@efexen]: https://github.com/efexen
[@elbow-jason]: https://github.com/elbow-jason
[@fenollp]: https://github.com/fenollp
[@feyl]: https://github.com/feyl
[@GesJeremie]: https://github.com/GesJeremie
Expand Down
4 changes: 0 additions & 4 deletions lib/faker/util.ex
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,6 @@ defmodule Faker.Util do
"2"
"""
@spec pick(Enum.t()) :: any
def pick(low..high) do
Faker.random_between(low, high)
end

def pick(enum) do
Enum.at(enum, Faker.random_between(0, Enum.count(enum) - 1))
end
Expand Down
2 changes: 1 addition & 1 deletion mix.exs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
defmodule Faker.Mixfile do
use Mix.Project

@version "0.11.1"
@version "0.11.2"

def project do
[
Expand Down

0 comments on commit 6de58a0

Please sign in to comment.