Skip to content

Commit

Permalink
Change no-op methods in Shield::Hash to abstract defs
Browse files Browse the repository at this point in the history
  • Loading branch information
akadusei committed Jul 22, 2024
1 parent 6eec257 commit 6746e1a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
9 changes: 2 additions & 7 deletions src/shield/utilities/mixins/hash.cr
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 6746e1a

Please sign in to comment.