Skip to content

Commit

Permalink
feat: ensure compatibility with all v1+ crystal version
Browse files Browse the repository at this point in the history
  • Loading branch information
wout committed Oct 15, 2022
1 parent 3808e6e commit f6516bb
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 18 deletions.
22 changes: 12 additions & 10 deletions .github/workflows/ci.yml
Expand Up @@ -15,13 +15,14 @@ jobs:
- shard.yml
crystal_version:
- 1.0.0
- 1.1.0
- 1.1.1
- 1.2.1
- 1.3.2
- 1.4.1
- 1.5.1
- 1.6.0
experimental:
- false
include:
- shard_file: shard.yml
crystal_version: nightly
experimental: true
runs-on: ubuntu-latest
continue-on-error: ${{ matrix.experimental }}
steps:
Expand All @@ -43,13 +44,14 @@ jobs:
- shard.yml
crystal_version:
- 1.0.0
- 1.1.0
- 1.1.1
- 1.2.1
- 1.3.2
- 1.4.1
- 1.5.1
- 1.6.0
experimental:
- false
include:
- shard_file: shard.yml
crystal_version: nightly
experimental: true
runs-on: ubuntu-latest
continue-on-error: ${{ matrix.experimental }}
steps:
Expand Down
2 changes: 1 addition & 1 deletion guardian.yml
Expand Up @@ -5,4 +5,4 @@ files: ./spec/**/*_spec.cr
run: bin/spec_mirror %file%
---
files: ./src/**/*.cr
run: bin/spec_mirror %file%
run: bin/spec_mirror %file%
4 changes: 2 additions & 2 deletions shard.yml
Expand Up @@ -9,12 +9,12 @@ crystal: ">= 1.0.0"
dependencies:
wordsmith:
github: luckyframework/wordsmith
version: ~> 0.3
version: ~> 0.4

development_dependencies:
ameba:
github: crystal-ameba/ameba
version: ~> 0.14.3
version: ~> 1.1.0
webmock:
github: manastech/webmock.cr
branch: master
Expand Down
6 changes: 1 addition & 5 deletions src/mollie/exception.cr
Expand Up @@ -9,11 +9,7 @@ struct Mollie
new(Mapper.from_json(json))
end

{% begin %}
{% for method in %w[status title detail field links] %}
delegate {{method.id}}, to: @mapper
{% end %}
{% end %}
delegate status, title, detail, field, links, to: @mapper

def message
"#{status} #{title}: #{detail}"
Expand Down

0 comments on commit f6516bb

Please sign in to comment.