Skip to content

Commit 9ed76d6

Browse files
author
Laetitia
committed
upgrade absinthe plug
1 parent 59b41f2 commit 9ed76d6

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ Set of utils for Absinthe
66

77
## Installation
88

9-
AntlUtilsAbsinthe is published on [Hex](https://hex.pm/packages/antl_utils_absinthe).
9+
AntlUtilsAbsinthe is published on [Hex](https://hex.pm/packages/antl_utils_absinthe).
1010
The package can be installed by adding `antl_utils_absinthe` to your list of dependencies in mix.exs:
1111

1212
```elixir
1313
def deps do
1414
[
15-
{:antl_utils_absinthe, "~> 0.1.0"}
15+
{:antl_utils_absinthe, "~> 0.2.0"}
1616
]
1717
end
1818
```

mix.exs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ defmodule AntlUtilsAbsinthe.MixProject do
44
def project do
55
[
66
app: :antl_utils_absinthe,
7-
version: "0.1.0",
7+
version: "0.2.0",
88
elixir: "~> 1.8",
99
start_permanent: Mix.env() == :prod,
1010
description: description(),
@@ -22,7 +22,7 @@ defmodule AntlUtilsAbsinthe.MixProject do
2222
defp deps do
2323
[
2424
{:ex_doc, ">= 0.0.0", only: :dev, runtime: false},
25-
{:absinthe_plug, "~> 1.4.7"}
25+
{:absinthe_plug, "~> 1.5"}
2626
]
2727
end
2828

mix.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
%{
2-
"absinthe": {:hex, :absinthe, "1.4.16", "0933e4d9f12652b12115d5709c0293a1bf78a22578032e9ad0dad4efee6b9eb1", [:mix], [{:dataloader, "~> 1.0.0", [hex: :dataloader, repo: "hexpm", optional: true]}, {:decimal, "~> 1.0", [hex: :decimal, repo: "hexpm", optional: true]}], "hexpm", "076b8bd9552f4966ba1242f412f6c439b731169a36a0ddaaffcd3893828f5bf6"},
3-
"absinthe_plug": {:hex, :absinthe_plug, "1.4.7", "939b6b9e1c7abc6b399a5b49faa690a1fbb55b195c670aa35783b14b08ccec7a", [:mix], [{:absinthe, "~> 1.4.11", [hex: :absinthe, repo: "hexpm", optional: false]}, {:plug, "~> 1.3.2 or ~> 1.4", [hex: :plug, repo: "hexpm", optional: false]}], "hexpm", "c6ecb0e56a963287ac252d0563e5b33b84b300ce8203d3d1410dddb5dc6d08e9"},
2+
"absinthe": {:hex, :absinthe, "1.5.3", "d255e6d825e63abd9ff22b6d2423540526c9d699f46b712aa76f4b9c06116ff9", [:mix], [{:dataloader, "~> 1.0.0", [hex: :dataloader, repo: "hexpm", optional: true]}, {:decimal, "~> 1.0", [hex: :decimal, repo: "hexpm", optional: true]}, {:nimble_parsec, "~> 0.5", [hex: :nimble_parsec, repo: "hexpm", optional: false]}, {:telemetry, "~> 0.4.0", [hex: :telemetry, repo: "hexpm", optional: false]}], "hexpm", "69a170f3a8630b2ca489367bc2aeeabd84e15cbd1e86fe8741b05885fda32a2e"},
3+
"absinthe_plug": {:hex, :absinthe_plug, "1.5.0", "018ef544cf577339018d1f482404b4bed762e1b530c78be9de4bbb88a6f3a805", [:mix], [{:absinthe, "~> 1.5.0", [hex: :absinthe, repo: "hexpm", optional: false]}, {:plug, "~> 1.3.2 or ~> 1.4", [hex: :plug, repo: "hexpm", optional: false]}], "hexpm", "4c160f4ce9a1233a4219a42de946e4e05d0e8733537cd5d8d20e7d4ef8d4b7c7"},
44
"earmark_parser": {:hex, :earmark_parser, "1.4.10", "6603d7a603b9c18d3d20db69921527f82ef09990885ed7525003c7fe7dc86c56", [:mix], [], "hexpm", "8e2d5370b732385db2c9b22215c3f59c84ac7dda7ed7e544d7c459496ae519c0"},
55
"ex_doc": {:hex, :ex_doc, "0.22.6", "0fb1e09a3e8b69af0ae94c8b4e4df36995d8c88d5ec7dbd35617929144b62c00", [:mix], [{:earmark_parser, "~> 1.4.0", [hex: :earmark_parser, repo: "hexpm", optional: false]}, {:makeup_elixir, "~> 0.14", [hex: :makeup_elixir, repo: "hexpm", optional: false]}], "hexpm", "1e0aceda15faf71f1b0983165e6e7313be628a460e22a031e32913b98edbd638"},
66
"makeup": {:hex, :makeup, "1.0.3", "e339e2f766d12e7260e6672dd4047405963c5ec99661abdc432e6ec67d29ef95", [:mix], [{:nimble_parsec, "~> 0.5", [hex: :nimble_parsec, repo: "hexpm", optional: false]}], "hexpm", "2e9b4996d11832947731f7608fed7ad2f9443011b3b479ae288011265cdd3dad"},
77
"makeup_elixir": {:hex, :makeup_elixir, "0.14.1", "4f0e96847c63c17841d42c08107405a005a2680eb9c7ccadfd757bd31dabccfb", [:mix], [{:makeup, "~> 1.0", [hex: :makeup, repo: "hexpm", optional: false]}], "hexpm", "f2438b1a80eaec9ede832b5c41cd4f373b38fd7aa33e3b22d9db79e640cbde11"},
88
"mime": {:hex, :mime, "1.4.0", "5066f14944b470286146047d2f73518cf5cca82f8e4815cf35d196b58cf07c47", [:mix], [], "hexpm", "75fa42c4228ea9a23f70f123c74ba7cece6a03b1fd474fe13f6a7a85c6ea4ff6"},
99
"nimble_parsec": {:hex, :nimble_parsec, "0.6.0", "32111b3bf39137144abd7ba1cce0914533b2d16ef35e8abc5ec8be6122944263", [:mix], [], "hexpm", "27eac315a94909d4dc68bc07a4a83e06c8379237c5ea528a9acff4ca1c873c52"},
1010
"plug": {:hex, :plug, "1.10.4", "41eba7d1a2d671faaf531fa867645bd5a3dce0957d8e2a3f398ccff7d2ef017f", [:mix], [{:mime, "~> 1.0", [hex: :mime, repo: "hexpm", optional: false]}, {:plug_crypto, "~> 1.1.1 or ~> 1.2", [hex: :plug_crypto, repo: "hexpm", optional: false]}, {:telemetry, "~> 0.4", [hex: :telemetry, repo: "hexpm", optional: false]}], "hexpm", "ad1e233fe73d2eec56616568d260777b67f53148a999dc2d048f4eb9778fe4a0"},
11-
"plug_crypto": {:hex, :plug_crypto, "1.1.2", "bdd187572cc26dbd95b87136290425f2b580a116d3fb1f564216918c9730d227", [:mix], [], "hexpm", "6b8b608f895b6ffcfad49c37c7883e8df98ae19c6a28113b02aa1e9c5b22d6b5"},
11+
"plug_crypto": {:hex, :plug_crypto, "1.2.0", "1cb20793aa63a6c619dd18bb33d7a3aa94818e5fd39ad357051a67f26dfa2df6", [:mix], [], "hexpm", "a48b538ae8bf381ffac344520755f3007cc10bd8e90b240af98ea29b69683fc2"},
1212
"telemetry": {:hex, :telemetry, "0.4.2", "2808c992455e08d6177322f14d3bdb6b625fbcfd233a73505870d8738a2f4599", [:rebar3], [], "hexpm", "2d1419bd9dda6a206d7b5852179511722e2b18812310d304620c7bd92a13fcef"},
1313
}

test/absinthe_test.exs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ defmodule AntlUtilsAbsintheTest do
1212
defmodule Schema do
1313
use Absinthe.Schema
1414

15-
query name: :my_root_query do
15+
query name: "my_root_query" do
1616
field :my_query, :string do
1717
arg(:my_arg, :string)
1818
middleware(Middleware)
@@ -23,12 +23,12 @@ defmodule AntlUtilsAbsintheTest do
2323
describe "lookup_field/3" do
2424
test "returns the field" do
2525
assert %Absinthe.Type.Field{identifier: :my_query} =
26-
AntlUtilsAbsinthe.lookup_field(Schema, :my_root_query, :my_query)
26+
AntlUtilsAbsinthe.lookup_field(Schema, "my_root_query", :my_query)
2727
end
2828

2929
test "if the field does not exist, returns nil" do
3030
assert_raise ArgumentError, "field: fake_query not found in my_root_query", fn ->
31-
AntlUtilsAbsinthe.lookup_field(Schema, :my_root_query, :fake_query)
31+
AntlUtilsAbsinthe.lookup_field(Schema, "my_root_query", :fake_query)
3232
end
3333
end
3434

@@ -41,12 +41,12 @@ defmodule AntlUtilsAbsintheTest do
4141

4242
describe "has_middleware?/2" do
4343
test "true if the field has the middleware" do
44-
my_query = AntlUtilsAbsinthe.lookup_field(Schema, :my_root_query, :my_query)
44+
my_query = AntlUtilsAbsinthe.lookup_field(Schema, "my_root_query", :my_query)
4545
assert AntlUtilsAbsinthe.has_middleware?(my_query, Middleware)
4646
end
4747

4848
test "false if the field does not call the middleware" do
49-
my_query = AntlUtilsAbsinthe.lookup_field(Schema, :my_root_query, :my_query)
49+
my_query = AntlUtilsAbsinthe.lookup_field(Schema, "my_root_query", :my_query)
5050
refute AntlUtilsAbsinthe.has_middleware?(my_query, FakeMiddleware)
5151
end
5252
end

0 commit comments

Comments
 (0)