Skip to content

Commit 0a455d1

Browse files
committed
version 0.2.0
1 parent 0b3defa commit 0a455d1

2 files changed

Lines changed: 7 additions & 3 deletions

File tree

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,13 @@ iex(9)> RandomString.take_without_characters(20, 'abcdefg')
2828
"3hqW8qKXi9pJY8yxDTjU"
2929
iex(10)> RandomString.take_without_characters(20, 'abcdefg')
3030
"7w2q5S9G21yYsiOTGmyH"
31+
32+
# new in 0.2.0
33+
iex(11)> RandomString.take(20, :printable_chars)
34+
"yXrF?!GC*y,%tXd9rxjU"
3135
```
3236

33-
- Available character classes are: `:alphabetical`, `:alphanumeric`, `:numeric`, `:lowercase`, `:uppercase`.
37+
- Available character classes are: `:alphabetical`, `:alphanumeric`, `:numeric`, `:lowercase`, `:uppercase`, `printable_chars`.
3438
- If character class is omitted (`RandomString.take/1`), it is defaulted to `:alphanumeric`.
3539
- By default, `take_without_misleading_characters` filter out characters that has a similar look to another character: `01258ijlouvBIOSUVZ`.
3640

@@ -41,7 +45,7 @@ random_string is [available in Hex](https://hex.pm/packages/random_string)!
4145
1. Add random_string to your list of dependencies in `mix.exs`:
4246

4347
def deps do
44-
[{:random_string, "~> 0.1.0"}]
48+
[{:random_string, "~> 0.2.0"}]
4549
end
4650

4751
2. Ensure random_string is started before your application:

mix.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ defmodule RandomString.Mixfile do
33

44
def project do
55
[app: :random_string,
6-
version: "0.1.0",
6+
version: "0.2.0",
77
elixir: "~> 1.2",
88
description: description(),
99
package: package(),

0 commit comments

Comments
 (0)