Skip to content

Commit

Permalink
Update exactor to 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
parroty committed Feb 1, 2015
1 parent 9a09294 commit bc15897
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 deletions.
4 changes: 4 additions & 0 deletions lib/exvcr/actor.ex
Expand Up @@ -10,6 +10,8 @@ defmodule ExVCR.Actor do

use ExActor.GenServer

defstart start(arg), do: initial_state(arg)

defcast append(x), state: state, do: new_state([x|state])
defcast set(x), do: new_state(x)
defcall get, state: state, do: reply(state)
Expand All @@ -31,6 +33,8 @@ defmodule ExVCR.Actor do

use ExActor.GenServer

defstart start(arg), do: initial_state(arg)

defcast set(x), do: new_state(x)
defcall get, state: state, do: reply(state)
end
Expand Down
2 changes: 2 additions & 0 deletions lib/exvcr/checker.ex
Expand Up @@ -6,6 +6,8 @@ defmodule ExVCR.Checker do

use ExActor.GenServer, export: :singleton

defstart start(arg), do: initial_state(arg)

defcall get, state: state, do: reply(state)
defcast set(x), do: new_state(x)
defcast append(x), state: state, do: new_state(%{state | files: [x|state.files]})
Expand Down
2 changes: 1 addition & 1 deletion mix.exs
Expand Up @@ -22,7 +22,7 @@ defmodule ExVCR.Mixfile do
def deps do
[
{:meck, "~> 0.8.2"},
{:exactor, "~> 0.7"},
{:exactor, "~> 2.0"},
{:exjsx, "~> 3.0"},
{:ibrowse, github: "cmullaparthi/ibrowse", optional: true},
{:httpotion, "~> 1.0", optional: true},
Expand Down
2 changes: 1 addition & 1 deletion mix.lock
@@ -1,6 +1,6 @@
%{"cowboy": {:git, "git://github.com/extend/cowboy.git", "db52494371ea249f38d51108c7d79cf487ff6374", [tag: "0.9.0"]},
"cowlib": {:git, "git://github.com/extend/cowlib.git", "63298e8e160031a70efff86a1acde7e7db1fcda6", [ref: "0.4.0"]},
"exactor": {:hex, :exactor, "0.7.0"},
"exactor": {:hex, :exactor, "2.0.1"},
"excoveralls": {:hex, :excoveralls, "0.3.6"},
"exjsx": {:hex, :exjsx, "3.0.0"},
"hackney": {:hex, :hackney, "0.14.3"},
Expand Down

0 comments on commit bc15897

Please sign in to comment.