Commit 23535fe4766d730b4d42b8b17c43a86482b58d29

Stephen Moloney 2017-04-18T15:30:01

mix task bug fix

diff --git a/CHANGELOG.md b/CHANGELOG.md
index aa0aa39..9bd55b6 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,6 +1,13 @@
 # Changelog
 
 
+## v0.3.3
+
+[bug fix]
+- Fix error `function :hackney.execute_request/5 is undefined or private` when
+running `mix ovh` task by setting the adapter correctly
+
+
 ## v0.3.2
 
 [security fix]
diff --git a/lib/mix/tasks/ovh.ex b/lib/mix/tasks/ovh.ex
index f65e090..ec1a6a3 100644
--- a/lib/mix/tasks/ovh.ex
+++ b/lib/mix/tasks/ovh.ex
@@ -34,7 +34,7 @@ defmodule Mix.Tasks.Ovh do
   use Mix.Task
   alias ExOvh.Defaults
   @default_headers [{"Content-Type", "application/json; charset=utf-8"}]
-  @default_adapter :hackney
+  @default_adapter HTTPipe.Adapters.Hackney
   @default_hackney_options [ timeout: 30000, recv_timeout: (60000 * 1) ]
   @default_name "ex_ovh"
   @default_description "ex_ovh application"
diff --git a/mix.exs b/mix.exs
index 4c4821c..2cad421 100644
--- a/mix.exs
+++ b/mix.exs
@@ -1,6 +1,6 @@
 defmodule ExOvh.Mixfile do
   use Mix.Project
-  @version "0.3.2"
+  @version "0.3.3"
   @elixir "~> 1.3 or ~> 1.4 or ~> 1.5"
 
   def project do