Skip to content

Commit

Permalink
[#189] Overall cleanup to move adapters to separate repos
Browse files Browse the repository at this point in the history
  • Loading branch information
cabol committed Feb 5, 2023
1 parent 15808aa commit 82b130a
Show file tree
Hide file tree
Showing 57 changed files with 1,075 additions and 8,010 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,15 +84,11 @@ jobs:
if: ${{ matrix.style }}

- name: Run tests
run: |
epmd -daemon
mix test --trace
run: mix test
if: ${{ !matrix.coverage }}

- name: Run tests with coverage
run: |
epmd -daemon
mix coveralls.github
run: mix coveralls.github
if: ${{ matrix.coverage }}

- name: Run sobelow
Expand Down
1 change: 1 addition & 0 deletions lib/mix/tasks/nbx.ex
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ defmodule Mix.Tasks.Nbx do

defp general do
_ = Application.ensure_all_started(:nebulex)

Mix.shell().info("Nebulex v#{Application.spec(:nebulex, :vsn)}")
Mix.shell().info("In-Process and Distributed Cache Toolkit for Elixir.")

Expand Down
8 changes: 4 additions & 4 deletions lib/nebulex/adapter.ex
Original file line number Diff line number Diff line change
Expand Up @@ -115,11 +115,11 @@ defmodule Nebulex.Adapter do

## Private Functions

defp build_defspan(fun, opts) when is_list(opts) do
defp build_defspan(ast, opts) when is_list(opts) do
{name, args} =
case Macro.decompose_call(fun) do
{_, _} = pair -> pair
_ -> raise ArgumentError, "invalid syntax in defspan #{Macro.to_string(fun)}"
case Macro.decompose_call(ast) do
{_, _} = parts -> parts
_ -> raise ArgumentError, "invalid syntax in defspan #{Macro.to_string(ast)}"
end

as = Keyword.get(opts, :as, name)
Expand Down
Loading

0 comments on commit 82b130a

Please sign in to comment.