From 6a5204bba2a7bde778e7ec1c493c167b37193a9b Mon Sep 17 00:00:00 2001 From: Anton Maminov Date: Wed, 21 Sep 2022 12:20:30 +0300 Subject: [PATCH 1/5] bump ameba --- shard.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/shard.yml b/shard.yml index 2cbe77f..3410ff3 100644 --- a/shard.yml +++ b/shard.yml @@ -15,8 +15,7 @@ dependencies: development_dependencies: ameba: github: crystal-ameba/ameba - branch: develop -crystal: ">= 0.35.0" +crystal: ">= 1.0.0" license: MIT From 86cd3e9047043d8c7e6782b2eb8c01cec750be46 Mon Sep 17 00:00:00 2001 From: Anton Maminov Date: Wed, 21 Sep 2022 12:21:37 +0300 Subject: [PATCH 2/5] 2022 --- LICENSE | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LICENSE b/LICENSE index 85dc837..5105c8f 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2021 Anton Maminov +Copyright (c) 2021-2022 Anton Maminov Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal From 49912e080a734d4f45b280244920f613202731c0 Mon Sep 17 00:00:00 2001 From: Anton Maminov Date: Wed, 21 Sep 2022 12:22:32 +0300 Subject: [PATCH 3/5] use new cache implementation --- src/mem_cache_store.cr | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mem_cache_store.cr b/src/mem_cache_store.cr index a0b3e19..f0fd870 100644 --- a/src/mem_cache_store.cr +++ b/src/mem_cache_store.cr @@ -26,11 +26,11 @@ module Cache @cache.get(key) end - def delete(key : K) : Bool + private def delete_impl(key : K) : Bool @cache.delete(key) end - def exists?(key : K) : Bool + private def exists_impl(key : K) : Bool !!@cache.get(key) end From d36aed945a58a8d9990f7328a34c9bf830ddc3bd Mon Sep 17 00:00:00 2001 From: Anton Maminov Date: Wed, 21 Sep 2022 12:23:31 +0300 Subject: [PATCH 4/5] require cache >= 0.14.0 --- shard.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shard.yml b/shard.yml index 3410ff3..55b8283 100644 --- a/shard.yml +++ b/shard.yml @@ -7,7 +7,7 @@ authors: dependencies: cache: github: crystal-cache/cache - version: ">= 0.12.0" + version: ">= 0.14.0" memcached: github: comandeo/crystal-memcached branch: develop From 8e01e39693297cd7bee742c67772b53b9d2b1621 Mon Sep 17 00:00:00 2001 From: Anton Maminov Date: Wed, 21 Sep 2022 12:25:52 +0300 Subject: [PATCH 5/5] v0.3.0 --- .github/workflows/crystal.yml | 6 +++--- shard.yml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/crystal.yml b/.github/workflows/crystal.yml index d9806a3..b079905 100644 --- a/.github/workflows/crystal.yml +++ b/.github/workflows/crystal.yml @@ -15,7 +15,7 @@ jobs: uses: actions/checkout@v2 - name: Install dependencies - run: shards install --ignore-crystal-version + run: shards install - name: Check format run: crystal tool format --check @@ -27,7 +27,7 @@ jobs: uses: actions/checkout@v2 - name: Install dependencies - run: shards install --ignore-crystal-version + run: shards install - name: Check ameba run: ./bin/ameba @@ -61,7 +61,7 @@ jobs: # Performs a clean installation of all dependencies in the `shard.yml` file - name: Install dependencies - run: shards install --ignore-crystal-version + run: shards install - name: Run tests run: crystal spec diff --git a/shard.yml b/shard.yml index 55b8283..9673f2a 100644 --- a/shard.yml +++ b/shard.yml @@ -1,5 +1,5 @@ name: mem_cache_store -version: 0.2.2 +version: 0.3.0 authors: - Anton Maminov