From 964a15f39116e66e76d43fbeb06d9722b7f0984e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hannes=20K=C3=A4ufler?= Date: Mon, 20 May 2024 16:41:35 +0200 Subject: [PATCH] Bump to crystal 1.12.1 (#96) * Bump to crystal 1.12.1 * Bump ameba and fix violations * Bump to v9 * Regenerate docs * Mark release 9.0.0 * Make fail fast work again See https://github.com/crystal-lang/crystal/pull/14170 for the upstream change that broke it --- .circleci/config.yml | 8 +- CHANGELOG.md | 4 +- Makefile | 2 +- README.md | 2 +- docs/api/404.html | 16 +- docs/api/Crytic.html | 18 +- docs/api/Crytic/Cli.html | 32 ++- docs/api/Crytic/CliOptions.html | 32 ++- docs/api/Crytic/Command.html | 18 +- docs/api/Crytic/Command/Noop.html | 32 ++- docs/api/Crytic/Command/Test.html | 32 ++- docs/api/Crytic/Diff.html | 32 ++- docs/api/Crytic/Diff/Chunk.html | 75 +++--- docs/api/Crytic/Diff/Type.html | 38 ++- docs/api/Crytic/Generator.html | 26 +- docs/api/Crytic/Generator/Generator.html | 36 ++- .../Generator/InMemoryMutationsGenerator.html | 43 ++- .../MutationFactory.html | 18 +- docs/api/Crytic/Generator/MutationSet.html | 35 ++- docs/api/Crytic/MsiCalculator.html | 40 ++- docs/api/Crytic/Mutant.html | 26 +- docs/api/Crytic/Mutant/AndOrSwap.html | 38 ++- .../Crytic/Mutant/AndOrSwapPossibilities.html | 38 ++- docs/api/Crytic/Mutant/AnyAllSwap.html | 38 ++- .../Mutant/AnyAllSwapPossibilities.html | 38 ++- docs/api/Crytic/Mutant/BoolLiteralFlip.html | 38 ++- .../Mutant/BoolLiteralFlipPossibilities.html | 38 ++- docs/api/Crytic/Mutant/ConditionFlip.html | 38 ++- .../Mutant/ConditionFlipPossibilities.html | 38 ++- docs/api/Crytic/Mutant/DropCallInVoidDef.html | 38 ++- .../DropCallInVoidDefPossibilities.html | 38 ++- docs/api/Crytic/Mutant/FullLocation.html | 51 ++-- docs/api/Crytic/Mutant/Mutant.html | 18 +- docs/api/Crytic/Mutant/Noop.html | 30 ++- .../Crytic/Mutant/NumberLiteralChange.html | 38 ++- .../NumberLiteralChangePossibilities.html | 38 ++- .../Crytic/Mutant/NumberLiteralSignFlip.html | 38 ++- .../NumberLiteralSignFlipPossibilities.html | 38 ++- docs/api/Crytic/Mutant/Possibilities.html | 35 ++- .../api/Crytic/Mutant/RegexLiteralChange.html | 38 ++- .../RegexLiteralChangePossibilities.html | 38 ++- docs/api/Crytic/Mutant/SelectRejectSwap.html | 38 ++- .../Mutant/SelectRejectSwapPossibilities.html | 38 ++- .../Crytic/Mutant/StringLiteralChange.html | 38 ++- .../StringLiteralChangePossibilities.html | 38 ++- .../Crytic/Mutant/SymbolLiteralChange.html | 38 ++- .../SymbolLiteralChangePossibilities.html | 38 ++- docs/api/Crytic/Mutant/TransformerMutant.html | 35 ++- docs/api/Crytic/Mutant/VisitorMutant.html | 35 ++- docs/api/Crytic/MutatedSubject.html | 35 ++- docs/api/Crytic/Mutation.html | 18 +- docs/api/Crytic/Mutation/Config.html | 35 ++- docs/api/Crytic/Mutation/Environment.html | 35 ++- .../InjectMutatedSubjectIntoSpecs.html | 59 ++-- .../api/Crytic/Mutation/IsolatedMutation.html | 35 ++- .../Mutation/IsolatedMutation/Preamble.html | 18 +- docs/api/Crytic/Mutation/Mutation.html | 32 ++- docs/api/Crytic/Mutation/NoMutation.html | 32 ++- docs/api/Crytic/Mutation/OriginalResult.html | 35 ++- docs/api/Crytic/Mutation/RequireResolver.html | 40 ++- docs/api/Crytic/Mutation/Result.html | 35 ++- docs/api/Crytic/Mutation/ResultSet.html | 40 ++- docs/api/Crytic/Mutation/Status.html | 38 ++- docs/api/Crytic/Mutation/Tracker.html | 32 ++- docs/api/Crytic/MutationScoreIndicator.html | 46 ++-- docs/api/Crytic/ProcessProcessRunner.html | 35 ++- docs/api/Crytic/ProcessRunner.html | 32 ++- docs/api/Crytic/Reporter.html | 18 +- .../Crytic/Reporter/DefaultHttpClient.html | 35 ++- .../Reporter/FileSummaryIoReporter.html | 35 ++- docs/api/Crytic/Reporter/HttpClient.html | 32 ++- docs/api/Crytic/Reporter/IoReporter.html | 43 ++- docs/api/Crytic/Reporter/Reporter.html | 32 ++- docs/api/Crytic/Reporter/Reporters.html | 18 +- .../Crytic/Reporter/StrykerBadgeReporter.html | 35 ++- docs/api/Crytic/Reporter/Timer.html | 36 ++- docs/api/Crytic/Runner.html | 18 +- docs/api/Crytic/Runner/NoMutationFactory.html | 18 +- docs/api/Crytic/Runner/Run.html | 32 ++- docs/api/Crytic/Runner/Sequential.html | 32 ++- docs/api/Crytic/SideEffects.html | 40 ++- docs/api/Crytic/SourceCode.html | 18 +- docs/api/Crytic/Subject.html | 40 ++- docs/api/Crytic/Timeout.html | 24 +- docs/api/css/style.css | 254 ++++++++++++++++++ docs/api/index.html | 26 +- docs/api/index.json | 2 +- docs/api/js/doc.js | 8 +- docs/api/search-index.js | 2 +- shard.yml | 4 +- spec/fake_file.cr | 1 + spec/fake_generator.cr | 1 + spec/fake_http_client.cr | 1 + spec/fake_mutation.cr | 1 + spec/fake_process_runner.cr | 3 +- spec/generator/empty_source_file.cr | 1 + spec/generator/non_empty_source_file.cr | 1 + spec/mutant/select_reject_swap_spec.cr | 6 +- spec/runner/sequential_spec.cr | 4 +- src/crytic/diff.cr | 4 +- src/crytic/generator/generator.cr | 7 +- src/crytic/mutant/full_location.cr | 16 +- .../number_literal_sign_flip_possibilities.cr | 4 +- .../inject_mutated_subject_into_specs.cr | 4 +- src/crytic/mutation/require_resolver.cr | 2 +- src/crytic/mutation/result_set.cr | 2 +- src/crytic/mutation/tracker.cr | 6 +- src/crytic/version.cr | 2 +- 108 files changed, 2233 insertions(+), 872 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index c29bffa4..7b225bc3 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -3,10 +3,10 @@ version: 2 jobs: test-crystal: &test-template docker: - - image: crystallang/crystal:1.6.1 + - image: crystallang/crystal:1.12.1 steps: - checkout - test-crystal-1.6.1: + test-crystal-1.12.1: <<: *test-template steps: - checkout @@ -29,7 +29,7 @@ workflows: version: 2 ci: jobs: - - test-crystal-1.6.1 + - test-crystal-1.12.1 nightly: triggers: - schedule: @@ -38,4 +38,4 @@ workflows: branches: only: master jobs: - - test-crystal-1.6.1 + - test-crystal-1.12.1 diff --git a/CHANGELOG.md b/CHANGELOG.md index 267a4e97..750f67d0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,9 +5,9 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). -## [Unreleased] +## [9.0.0] - 2024-05-20 -- Support for crystal `1.5.0`. Resolves warnings. +- Support for crystal `1.12.1`. Resolves warnings. ## [8.0.1] - 2022-04-10 diff --git a/Makefile b/Makefile index e7026c51..352df0b0 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ SHARDS_BIN ?= $(shell which shards) SHARD_BIN ?= ../../bin -CRYSTAL_VERSION ?= 1.6.1 +CRYSTAL_VERSION ?= 1.12.1 build: bin/crytic bin/crytic: diff --git a/README.md b/README.md index 39d0a4ce..73c1ea07 100644 --- a/README.md +++ b/README.md @@ -30,7 +30,7 @@ Add this to your application's `shard.yml`: development_dependencies: crytic: github: hanneskaeufler/crytic - version: ~> 8 + version: ~> 9 ``` After `shards install`, this will place the `crytic` executable into the `bin/` folder inside your project. diff --git a/docs/api/404.html b/docs/api/404.html index e6fb6b38..5f3ab8c7 100644 --- a/docs/api/404.html +++ b/docs/api/404.html @@ -3,8 +3,9 @@ - - + + + @@ -13,7 +14,7 @@ - crytic master-dev + crytic hk-bump-crystal-dev @@ -22,9 +23,14 @@ + +