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
2 changes: 1 addition & 1 deletion .tool-versions
Original file line number Diff line number Diff line change
@@ -1 +1 @@
elixir 1.9.1
elixir 1.18.1-otp-27
21 changes: 0 additions & 21 deletions LICENSE.md

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ Be sure to add applications and dependencies to your mix file as needed.
Most JSON libraries provide the same methods, so no default adapter is needed.
You can use `Jason`, `JSX`, `Poison`, or whatever encoder you want.

Defaults to `Jason` or `Poison` if present.
Defaults to `Jason` if present.

See `Vault.JSON.Adapter` for the full behaviour interface.

Expand Down
7 changes: 5 additions & 2 deletions config/config.exs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
use Mix.Config
# and its dependencies with the aid of the Config module.
#
# This configuration file is loaded before any dependency and
# is restricted to this project.
import Config
2 changes: 1 addition & 1 deletion lib/vault.ex
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ defmodule Vault do
@http if Code.ensure_loaded?(Tesla), do: Vault.HTTP.Tesla, else: nil
@json if Code.ensure_loaded?(Jason),
do: Jason,
else: if(Code.ensure_loaded?(Poison), do: Poison, else: nil)
else: if(Code.ensure_loaded?(JSON), do: JSON, else: nil)

defstruct http: @http,
json: @json,
Expand Down
2 changes: 0 additions & 2 deletions lib/vault/http/tesla.ex
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,6 @@ if Code.ensure_loaded?(Tesla) do
])

"""
use Tesla

@behaviour Vault.HTTP.Adapter

@impl true
Expand Down
2 changes: 1 addition & 1 deletion lib/vault/json/adapter.ex
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ defmodule Vault.JSON.Adapter do

Recommended JSON adapters:
- `Jason`
- `Poison`
- `JSON`
"""
@type options :: list | map

Expand Down
21 changes: 10 additions & 11 deletions mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ defmodule Vault.MixProject do
use Mix.Project

@source_url "https://github.com/matthewoden/libvault"
@version "0.2.4"
@version "1.0.0"

def project do
[
app: :libvault,
version: @version,
elixir: "~> 1.5",
elixir: "~> 1.18",
elixirc_paths: elixirc_paths(Mix.env()),
description: description(),
start_permanent: Mix.env() == :prod,
Expand All @@ -31,21 +31,20 @@ defmodule Vault.MixProject do
[
# http clients
{:ibrowse, "~> 4.4.0", optional: true},
{:hackney, "~> 1.6", optional: true},
{:castore, "~> 0.1", optional: true},
{:mint, "~> 1.0", optional: true},
{:tesla, "~> 1.3", optional: true},
{:hackney, "~> 1.24.0", optional: true},
{:castore, "~> 1.0", optional: true},
{:mint, "~> 1.7", optional: true},
{:tesla, "~> 1.14", optional: true},

# json parsers
{:jason, ">= 1.0.0", only: [:dev, :test]},
{:poison, "~> 3.0", only: [:dev, :test]},
{:jason, "~> 1.4.0", only: [:dev, :test]},

# testing
{:bypass, "~> 1.0", only: :test},
{:plug_cowboy, "~> 1.0", only: :test},
{:bypass, "~> 2.0", only: :test},
{:plug_cowboy, "~> 2.0", only: :test},

# docs
{:ex_doc, "~> 0.19", only: :dev, runtime: false}
{:ex_doc, "~> 0.22", only: :dev, runtime: false}
]
end

Expand Down
203 changes: 38 additions & 165 deletions mix.lock

Large diffs are not rendered by default.