Skip to content

Commit 1f79a09

Browse files
committed
Refactor two calls to Map.new() into a variable assignment, add Hex badges to README, version bump to 2.3.3.
1 parent 12e5281 commit 1f79a09

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
# ExAws.Dynamo
1+
ExAws.Dynamo
2+
============
3+
[![Hex.pm](https://img.shields.io/hexpm/v/ex_aws_dynamo.svg)](https://hex.pm/packages/ex_aws_dynamo)
4+
[![Build Docs](https://img.shields.io/badge/hexdocs-release-blue.svg)](https://hexdocs.pm/ex_aws_dynamo/ExAws.Dynamo.html)
25

36
Service module for https://github.com/ex-aws/ex_aws
47

lib/ex_aws/dynamo.ex

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -518,12 +518,15 @@ defmodule ExAws.Dynamo do
518518
table_query[:keys]
519519
|> Enum.map(&encode_values/1)
520520

521-
dynamized_table_query =
521+
mapped_table_query =
522522
table_query
523523
|> Map.new()
524+
525+
dynamized_table_query =
526+
mapped_table_query
524527
|> Map.drop(@special_opts ++ [:keys])
525528
|> camelize_keys
526-
|> build_expression_attribute_names(Map.new(table_query))
529+
|> build_expression_attribute_names(mapped_table_query)
527530
|> Map.put("Keys", keys)
528531

529532
Map.put(query, table_name, dynamized_table_query)

mix.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
defmodule ExAws.Dynamo.Mixfile do
22
use Mix.Project
33

4-
@version "2.3.2"
4+
@version "2.3.3"
55
@service "dynamo"
66
@url "https://github.com/ex-aws/ex_aws_#{@service}"
77
@name __MODULE__ |> Module.split() |> Enum.take(2) |> Enum.join(".")

0 commit comments

Comments
 (0)