Skip to content

Commit c8cd678

Browse files
committed
Elixir Update
1 parent ad3d7e4 commit c8cd678

File tree

5 files changed

+11
-13
lines changed

5 files changed

+11
-13
lines changed

.github/workflows/elixir.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ env:
1212
BUILD_EMBEDDED: true
1313
DIALYZER_PLT_PRIV: true
1414
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
15-
DEFAULT_ELIXIR_VERSION: 1.16
16-
DEFAULT_OTP_VERSION: 26.2
15+
DEFAULT_ELIXIR_VERSION: 1.17
16+
DEFAULT_OTP_VERSION: 27.1
1717

1818
jobs:
1919
format:
@@ -56,7 +56,7 @@ jobs:
5656
- otp: "26.2"
5757
elixir: "1.16"
5858
runs-on: ubuntu-22.04
59-
- otp: "26.2"
59+
- otp: "27.1"
6060
elixir: "main"
6161
runs-on: ubuntu-latest
6262
- runs-on: ubuntu-22.04
@@ -166,7 +166,7 @@ jobs:
166166
- run: mix dialyzer --plt
167167
- uses: actions/upload-artifact@v4
168168
with:
169-
name: dialyzer_plt_${{ env.MIX_ENV }}-${{ steps.setup-elixir.outputs.otp-version }}-${{ steps.setup-elixir.outputs.elixir-version }}
169+
name: dialyzer_plt_${{ env.MIX_ENV }}-${{ steps.setupBEAM.outputs.otp-version }}-${{ steps.setupBEAM.outputs.elixir-version }}
170170
path: priv/plts/
171171

172172
dialyzer_test:
@@ -203,7 +203,7 @@ jobs:
203203
- run: mix compile --warning-as-errors
204204
- uses: actions/download-artifact@v4
205205
with:
206-
name: dialyzer_plt_${{ env.MIX_ENV }}-${{ steps.setup-elixir.outputs.otp-version }}-${{ steps.setup-elixir.outputs.elixir-version }}
206+
name: dialyzer_plt_${{ env.MIX_ENV }}-${{ steps.setupBEAM.outputs.otp-version }}-${{ steps.setupBEAM.outputs.elixir-version }}
207207
path: priv/plts/
208208
- run: mix dialyzer
209209

.tool-versions

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
erlang 26.2.1
2-
elixir 1.16.1
1+
erlang 27.1.2
2+
elixir 1.17.3

lib/crontab/cron_expression/parser.ex

+1-1
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ defmodule Crontab.CronExpression.Parser do
117117
** (RuntimeError) Can't parse fooo as minute.
118118
119119
"""
120-
@spec parse!(binary, boolean) :: CronExpression.t() | no_return
120+
@spec parse!(binary, boolean) :: CronExpression.t()
121121
def parse!(cron_expression, extended \\ false) do
122122
case parse(cron_expression, extended) do
123123
{:ok, result} -> result

lib/crontab/date_checker.ex

+1-2
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,7 @@ defmodule Crontab.DateChecker do
2727
true
2828
2929
"""
30-
@spec matches_date?(cron_expression :: CronExpression.t(), date :: date) ::
31-
boolean | no_return
30+
@spec matches_date?(cron_expression :: CronExpression.t(), date :: date) :: boolean
3231
def matches_date?(cron_expression_or_condition_list, date)
3332

3433
def matches_date?(%CronExpression{reboot: true}, _),

lib/crontab/scheduler.ex

+2-3
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,7 @@ defmodule Crontab.Scheduler do
7171
** (RuntimeError) Special identifier @reboot is not supported.
7272
7373
"""
74-
@spec get_next_run_date!(CronExpression.t(), NaiveDateTime.t(), integer) ::
75-
NaiveDateTime.t() | no_return
74+
@spec get_next_run_date!(CronExpression.t(), NaiveDateTime.t(), integer) :: NaiveDateTime.t()
7675
def get_next_run_date!(
7776
cron_expression,
7877
date \\ DateTime.to_naive(DateTime.utc_now()),
@@ -192,7 +191,7 @@ defmodule Crontab.Scheduler do
192191
193192
"""
194193
@spec get_previous_run_date!(CronExpression.t(), NaiveDateTime.t(), integer) ::
195-
NaiveDateTime.t() | no_return
194+
NaiveDateTime.t()
196195
def get_previous_run_date!(
197196
cron_expression,
198197
date \\ DateTime.to_naive(DateTime.utc_now()),

0 commit comments

Comments
 (0)