Skip to content

Commit

Permalink
Version 0.6.0 release, closes #62
Browse files Browse the repository at this point in the history
  • Loading branch information
sobolevn committed Jul 10, 2019
1 parent e161a1a commit 105379a
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 5 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
# Changelog


## Version 0.6.0

### Features

- Adds `Recase.Enumerable`


## Version 0.5.0

### Features
Expand Down
14 changes: 10 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,12 +113,18 @@ Recase.to_title("some value") # => "Some Value"
You can convert all keys in an enumerable with:

```elixir
Recase.Enumerable.convert_keys(%{"yourKey" => "value"}, &Recase.to_snake/1) # => %{"your_key" => "value"}
Recase.Enumerable.convert_keys(%{"your_key" => "value"}, &Recase.to_camel/1) # => %{"yourKey" => "value"}
Recase.Enumerable.convert_keys(%{"your_key" => %{"yourKey" => "value"}}, &Recase.to_pascal/1) # => %{"YourKey" => %{"YourKey" => "value"}}
Recase.Enumerable.convert_keys([%{"yourKey" => "value"}], &Recase.to_snake/1) # => [%{"your_key" => "value"}]
Recase.Enumerable.convert_keys(
%{"yourKey" => "value"},
&Recase.to_snake/1
) # => %{"your_key" => "value"}

Recase.Enumerable.convert_keys(
%{"your_key" => "value"},
&Recase.to_camel/1
) # => %{"yourKey" => "value"}
```


## Changelog

Full changelog is available [here](https://github.com/sobolevn/recase/blob/master/CHANGELOG.md).
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 Recase.Mixfile do
use Mix.Project

@version "0.5.0"
@version "0.6.0"
@url "https://github.com/sobolevn/recase"

def project do
Expand Down

0 comments on commit 105379a

Please sign in to comment.