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
10 changes: 1 addition & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,11 @@ jobs:
fail-fast: false
matrix:
elixir:
- '1.20'
- '1.19'
- '1.18'
- '1.17'
- '1.16'
- '1.15'
- '1.14'
- '1.13'
- '1.12'
- '1.11'
- '1.10'
- '1.9'
- '1.8'
- '1.7'

steps:
- uses: actions/checkout@v4
Expand Down
1 change: 0 additions & 1 deletion lib/cachex.ex
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ defmodule Cachex do

# import util macros
require Router
require Overseer

# avoid inspect clashes
import Kernel, except: [inspect: 2]
Expand Down
4 changes: 2 additions & 2 deletions lib/cachex/spec/validator.ex
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ defmodule Cachex.Spec.Validator do
import Cachex.Spec

# internal spec to refer to each record type
@type record ::
@type spec_record ::
Cachex.Spec.command()
| Cachex.Spec.entry()
| Cachex.Spec.expiration()
Expand All @@ -31,7 +31,7 @@ defmodule Cachex.Spec.Validator do

This will delegate each record type to a customized validation function.
"""
@spec valid?(atom, record) :: boolean
@spec valid?(atom, spec_record) :: boolean

# Validates a command specification record.
#
Expand Down
15 changes: 10 additions & 5 deletions mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -61,18 +61,23 @@ defmodule Cachex.Mixfile do
test_coverage: [
tool: ExCoveralls
],
preferred_cli_env: [
aliases: [
bench: "run benchmarks/main.exs",
test: [&start_epmd/1, "test"]
]
]
end

def cli do
[
preferred_envs: [
docs: :docs,
bench: :bench,
credo: :lint,
cachex: :test,
coveralls: :cover,
"coveralls.html": :cover,
"coveralls.travis": :cover
],
aliases: [
bench: "run benchmarks/main.exs",
test: [&start_epmd/1, "test"]
]
]
end
Expand Down