From 6746e1a63d7848b6e5386dbeb1753154a669931f Mon Sep 17 00:00:00 2001 From: akadusei Date: Mon, 22 Jul 2024 17:07:31 +0000 Subject: [PATCH] Change no-op methods in `Shield::Hash` to `abstract def`s --- CHANGELOG.md | 5 +++++ src/shield/utilities/mixins/hash.cr | 9 ++------- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4824277d..34c10c4f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,11 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). +## [Unreleased] - + +### Changed +- Change no-op methods in `Shield::Hash` to `abstract def`s + ## [1.2.0] - 2024-07-05 ### Fixed diff --git a/src/shield/utilities/mixins/hash.cr b/src/shield/utilities/mixins/hash.cr index 663797a1..cb47c2f1 100644 --- a/src/shield/utilities/mixins/hash.cr +++ b/src/shield/utilities/mixins/hash.cr @@ -1,9 +1,4 @@ module Shield::Hash - macro included - def hash : String - end - - def verify?(digest : String) : Bool - end - end + abstract def hash : String + abstract def verify?(digest : String) : Bool end