crystal-coverage
crystal-coverage copied to clipboard
Support crystal 1.0.0
Hi,
In order to support crystal 1 you need to set the supported crystal version in shards.yml to ">=0.3X.0, <2" (by default it assume "<1"). You also need to use ameba from crystal-ameba/ameba.
Hi @erdnaxeli!
I opened a PR that will fix this. Please take a look: https://github.com/anykeyh/crystal-coverage/pull/18
You PR does not fix the constraint on crystal <1 neither the ameba dependency :)
- https://github.com/veelenga/ameba redirects to https://github.com/crystal-ameba/ameba, so the two are exactly the same and there is no visible difference for the user. The legacy name is supported.
- shard.yml is not specifying a Crystal version, so by default
shards installwon't check and it will just work as the actual code compiles fine with Crystal 1+ now.
That said, I updated the PR with both points. Thanks!
shard.yml is not specifying a Crystal version, so by default shards install won't check
IIRC no specifying a crystal version means "< 1.0" (https://crystal-lang.org/2020/08/20/preparing-our-shards-for-crystal-1.0.html).