Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ notifications:
- [email protected]
elixir:
- 1.0.2
- 1.1.1
- 1.2.0
otp_release:
- 17.4
- 18.1
- 18.2
sudo: false
6 changes: 3 additions & 3 deletions lib/bson_decoder.ex
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ defmodule Bson.Decoder do

```
"""
def elist_to_hashdict(elist), do: elist |> Enum.reduce %HashDict{}, fn({k, v}, h) -> HashDict.put(h, k, v) end
def elist_to_hashdict(elist), do: elist |> Enum.reduce(%HashDict{}, fn({k, v}, h) -> HashDict.put(h, k, v) end)

@doc """
Transform an elist to a Keyword
Expand All @@ -62,7 +62,7 @@ defmodule Bson.Decoder do

```
"""
def elist_to_keyword(elist), do: elist |> Enum.map fn({k, v}) -> {String.to_atom(k), v} end
def elist_to_keyword(elist), do: elist |> Enum.map(fn({k, v}) -> {String.to_atom(k), v} end)

@doc """
Identity function
Expand Down Expand Up @@ -91,7 +91,7 @@ defmodule Bson.Decoder do
...> %{a: "r"},
...> %{a: ""},
...> %{a: 1, b: 5}
...> ] |> Enum.all? fn(term) -> assert term == term |> Bson.encode |> Bson.decode end
...> ] |> Enum.all?(fn(term) -> assert term == term |> Bson.encode |> Bson.decode end)
true

iex> term = %{
Expand Down
2 changes: 1 addition & 1 deletion mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ defmodule Bson.Mixfile do
[ app: :bson,
name: "bson",
version: "0.4.4",
elixir: "~> 1.0 or ~> 1.1",
elixir: "~> 1.0 or ~> 1.1 or ~> 1.2",
description: "BSON implementation for Elixir",
source_url: "https://github.com/checkiz/elixir-bson",
deps: deps(Mix.env),
Expand Down