diff --git a/README.md b/README.md index 34ea2ad..45a8235 100644 --- a/README.md +++ b/README.md @@ -30,7 +30,7 @@ application list to start: ```elixir def deps do [ - {:pumba, "~> 0.0.1"} + {:pumba, "~> 0.0.2"} ] end ``` @@ -55,6 +55,23 @@ iex> Pumba.random() Mozilla/5.0 (X11; Linux ppc64le; rv:75.0) Gecko/20100101 Firefox/75.0 ``` +### Check if user agents loaded + +```ex +iex> Pumba.ready?("Firefox") +true +``` + +### Get user agents for browser + +```ex +iex> Pumba.get("Firefox") +[ + "Mozilla/5.0 (X11; Linux ppc64le; rv:75.0) Gecko/20100101 Firefox/75.0", + ... +] +``` + ### Set custom client Default client fetches user agents from http://www.useragentstring.com. diff --git a/mix.exs b/mix.exs index b43c6cb..3cda44f 100644 --- a/mix.exs +++ b/mix.exs @@ -14,7 +14,7 @@ defmodule Pumba.MixProject do def project do [ app: :pumba, - version: "0.0.1", + version: "0.0.2", elixir: "~> 1.11", start_permanent: Mix.env() == :prod, deps: deps(),