Skip to content

Commit

Permalink
Updated to 1.0.0-rc2: fixed deprecated Record.record?
Browse files Browse the repository at this point in the history
  • Loading branch information
pma committed Sep 7, 2014
1 parent 45bcb38 commit 2e581b2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Add AMQP as a dependency in your `mix.exs` file.

```elixir
def deps do
[{:amqp, "0.0.3"}]
[{:amqp, "0.0.4"}]
end
```

Expand Down
6 changes: 3 additions & 3 deletions lib/amqp/connection.ex
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ defmodule AMQP.Connection do
Functions to operate on Connections.
"""

require Record
import Record
import AMQP.Core
alias __MODULE__

Expand Down Expand Up @@ -53,7 +53,7 @@ defmodule AMQP.Connection do
"""
def close(conn), do: :amqp_connection.close(conn.pid)

defp do_open(amqp_params) when Record.record?(amqp_params) do
defp do_open(amqp_params) when is_record(amqp_params) do
case :amqp_connection.start(amqp_params) do
{:ok, pid} -> {:ok, %Connection{pid: pid}}
error -> error
Expand All @@ -67,4 +67,4 @@ defmodule AMQP.Connection do
end
end

end
end
4 changes: 2 additions & 2 deletions mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ defmodule Amqp.Mixfile do

def project do
[app: :amqp,
version: "0.0.3",
elixir: "~> 0.14.3 or ~> 0.15.0",
version: "0.0.4",
elixir: "~> 1.0.0-rc2",
description: description,
package: package,
deps: deps,
Expand Down

0 comments on commit 2e581b2

Please sign in to comment.