Skip to content

Commit b5dfa0a

Browse files
authoredApr 10, 2024··
Crystal and ci updates (#1862)
* Update CI and min Crystal version required to 1.10 * fixing new deprecation warnings
1 parent 3c5c296 commit b5dfa0a

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed
 

‎.github/workflows/ci.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
env:
1616
SKIP_LUCKY_TASK_PRECOMPILATION: "1"
1717
steps:
18-
- uses: actions/checkout@v1
18+
- uses: actions/checkout@v4
1919
- uses: crystal-lang/install-crystal@v1
2020
with:
2121
crystal: latest
@@ -32,7 +32,7 @@ jobs:
3232
shard_file:
3333
- shard.yml
3434
crystal_version:
35-
- 1.9.0
35+
- 1.10.0
3636
- latest
3737
experimental:
3838
- false
@@ -48,7 +48,7 @@ jobs:
4848
env:
4949
SKIP_LUCKY_TASK_PRECOMPILATION: "1"
5050
steps:
51-
- uses: actions/checkout@v2
51+
- uses: actions/checkout@v4
5252
- uses: crystal-lang/install-crystal@v1
5353
with:
5454
crystal: ${{matrix.crystal_version}}

‎.github/workflows/docs.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
deploy:
99
runs-on: ubuntu-latest
1010
steps:
11-
- uses: actions/checkout@v2
11+
- uses: actions/checkout@v4
1212
with:
1313
persist-credentials: false
1414
- uses: crystal-lang/install-crystal@v1
@@ -19,7 +19,7 @@ jobs:
1919
- name: "Generate docs"
2020
run: crystal docs
2121
- name: Deploy to GitHub Pages
22-
uses: peaceiris/actions-gh-pages@v3
22+
uses: peaceiris/actions-gh-pages@v4
2323
with:
2424
github_token: ${{ secrets.GITHUB_TOKEN }}
2525
publish_dir: ./docs

‎shard.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: lucky
22
version: 1.1.0
33

4-
crystal: ">=1.9.0"
4+
crystal: ">= 1.10.0"
55

66
authors:
77
- Paul Smith <paulcsmith0218@gmail.com>

‎src/lucky/renderable.cr

+3-3
Original file line numberDiff line numberDiff line change
@@ -88,11 +88,11 @@ module Lucky::Renderable
8888
# enum for more available http status codes.
8989
macro html_with_status(page_class, status, **assigns)
9090
{% if status.is_a?(SymbolLiteral) %}
91-
html {{ page_class }}, _with_status_code: HTTP::Status::{{ status.upcase.id }}.value, {{ **assigns }}
91+
html {{ page_class }}, _with_status_code: HTTP::Status::{{ status.upcase.id }}.value, {{ assigns.double_splat }}
9292
{% elsif status.is_a?(Path) && status.names.join("::").starts_with?("HTTP::Status::") %}
93-
html {{ page_class }}, _with_status_code: {{ status.resolve }}, {{ **assigns }}
93+
html {{ page_class }}, _with_status_code: {{ status.resolve }}, {{ assigns.double_splat }}
9494
{% else %}
95-
html {{ page_class }}, _with_status_code: {{ status }}, {{ **assigns }}
95+
html {{ page_class }}, _with_status_code: {{ status }}, {{ assigns.double_splat }}
9696
{% end %}
9797
end
9898

0 commit comments

Comments
 (0)
Please sign in to comment.