From 105379a102ce0f4a5f4bda67e1d34ce74f88507f Mon Sep 17 00:00:00 2001 From: sobolevn Date: Wed, 10 Jul 2019 12:35:19 +0300 Subject: [PATCH] Version 0.6.0 release, closes #62 --- CHANGELOG.md | 7 +++++++ README.md | 14 ++++++++++---- mix.exs | 2 +- 3 files changed, 18 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 60b77a8..f394ac5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,13 @@ # Changelog +## Version 0.6.0 + +### Features + +- Adds `Recase.Enumerable` + + ## Version 0.5.0 ### Features diff --git a/README.md b/README.md index 21d729d..0489b34 100644 --- a/README.md +++ b/README.md @@ -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). diff --git a/mix.exs b/mix.exs index c981600..70df60d 100644 --- a/mix.exs +++ b/mix.exs @@ -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