Skip to content

Commit

Permalink
Merge branch 'release/2.3.10'
Browse files Browse the repository at this point in the history
  • Loading branch information
zacksiri committed Jul 2, 2024
2 parents d98feb6 + 26da695 commit 9d3f2d7
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
4 changes: 3 additions & 1 deletion lib/lexdee.ex
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,9 @@ defmodule Lexdee do
to: Instances.Logs,
as: :show

defdelegate get_state(client, id), to: Instances.State, as: :show
defdelegate get_state(client, id, options \\ []),
to: Instances.State,
as: :show

defdelegate start_instance(client, id, options \\ []),
to: Instances.State,
Expand Down
2 changes: 2 additions & 0 deletions lib/lexdee/behaviour.ex
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
defmodule Lexdee.Behaviour do
@callback get_state(struct, binary, Keyword.t()) :: {:ok, map} | {:error, any}

@callback get_instance(struct, binary) :: {:ok, map} | {:error, any}
@callback get_instance(struct, binary, Keyword.t()) ::
{:ok, map} | {:error, any}
Expand Down
6 changes: 4 additions & 2 deletions lib/lexdee/instances/state.ex
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@ defmodule Lexdee.Instances.State do

@path "/state"

@spec show(Tesla.Client.t(), binary) :: {:error, any} | {:ok, Tesla.Env.t()}
def show(client, id), do: Tesla.get(client, Path.join(id, @path))
@spec show(Tesla.Client.t(), binary, Keyword.t()) ::
{:error, any} | {:ok, Tesla.Env.t()}
def show(client, id, options \\ []),
do: Tesla.get(client, Path.join(id, @path), options)

@spec start(Tesla.Client.t(), binary, Keyword.t()) ::
{:error, any} | {:ok, Tesla.Env.t()}
Expand Down
2 changes: 1 addition & 1 deletion mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ defmodule Lexdee.MixProject do
def project do
[
app: :lexdee,
version: "2.3.9",
version: "2.3.10",
elixir: "~> 1.9",
elixirc_paths: elixirc_paths(Mix.env()),
start_permanent: Mix.env() == :prod,
Expand Down

0 comments on commit 9d3f2d7

Please sign in to comment.