defmodule Tesla.Mixfile do
  use Mix.Project

  def project do
    [app: :tesla,
     version: "0.1.3",
     description: description,
     package: package,
     source_url: "https://github.com/monterail/tesla",
     elixir: "~> 1.0",
     deps: deps,
     test_coverage: [tool: ExCoveralls]]
  end

  # Configuration for the OTP application
  #
  # Type `mix help compile.app` for more information
  def application do
    [applications: [:logger]]
  end

  defp description do
    "HTTP client library, with support for middleware and multiple adapters."
  end

  defp package do
    [contributors: ["Tymon Tobolski"],
     licenses: ["MIT"],
     links: %{"GitHub" => "https://github.com/monterail/tesla",
              "Documentation" => "http://hexdocs.pm/tesla/0.1.0/"}]
  end

  defp deps do
    [{:ibrowse, github: "cmullaparthi/ibrowse", tag: "v4.1.1", optional: true},
     {:exjsx, "~> 3.1.0"},
     {:excoveralls, "~> 0.3", only: :test},
     {:ex_doc, "~> 0.7", only: :docs}]
  end
end

defmodule Tesla.Mixfile do
  use Mix.Project

  def project do
    [app: :tesla,
     version: "0.1.4",
     description: description,
     package: package,
     source_url: "https://github.com/monterail/tesla",
     elixir: "~> 1.0",
     deps: deps,
     test_coverage: [tool: ExCoveralls]]
  end

  # Configuration for the OTP application
  #
  # Type `mix help compile.app` for more information
  def application do
    [applications: [:logger]]
  end

  defp description do
    "HTTP client library, with support for middleware and multiple adapters."
  end

  defp package do
    [contributors: ["Tymon Tobolski"],
     licenses: ["MIT"],
     links: %{"GitHub" => "https://github.com/monterail/tesla",
              "Documentation" => "http://hexdocs.pm/tesla/0.1.0/"}]
  end

  defp deps do
    [{:ibrowse, github: "cmullaparthi/ibrowse", tag: "v4.1.1", optional: true},
     {:exjsx, "~> 3.1.0", optional: true},
     {:excoveralls, "~> 0.3", only: :test},
     {:ex_doc, "~> 0.7", only: :docs}]
  end
end

Make exjsx an optional dependency
[fix] Make exjsx an optional dependency
teamon/tesla,lbarratt/tesla,monterail/tesla