From 8ee5fdead5c373b41ddca802cd3c0c9f4d819742 Mon Sep 17 00:00:00 2001 From: Miles Georgi Date: Wed, 4 Dec 2024 15:11:44 -0800 Subject: [PATCH] Use new Error.subclass interface --- CHANGELOG.md | 4 ++++ Gemfile.lock | 4 ++-- src/foobara/remote_imports/import_error.rb | 2 +- version.rb | 2 +- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1a69d56..3b9c79c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## [0.0.5] - 2024-12-04 + +- Use new Error.subclass method interface + ## [0.0.4] - 2024-12-03 - Convert entities into immutable models diff --git a/Gemfile.lock b/Gemfile.lock index ec25c3d..71c33dc 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -8,7 +8,7 @@ GIT PATH remote: . specs: - foobara-remote-imports (0.0.4) + foobara-remote-imports (0.0.5) foobara GEM @@ -28,7 +28,7 @@ GEM docile (1.4.1) dotenv (3.1.4) ffi (1.17.0-x86_64-linux-gnu) - foobara (0.0.23) + foobara (0.0.26) foobara-util foobara-rubocop-rules (0.0.5) rubocop diff --git a/src/foobara/remote_imports/import_error.rb b/src/foobara/remote_imports/import_error.rb index 69a1941..ae40fe8 100644 --- a/src/foobara/remote_imports/import_error.rb +++ b/src/foobara/remote_imports/import_error.rb @@ -50,7 +50,7 @@ def build_error end Foobara::Error.subclass( - context_type_declaration: manifest_to_import.context_type_declaration, + context: manifest_to_import.context_type_declaration, name: manifest_to_import.error_class, symbol: manifest_to_import.symbol.to_sym, base_error:, diff --git a/version.rb b/version.rb index 1094231..6298495 100644 --- a/version.rb +++ b/version.rb @@ -1,5 +1,5 @@ module Foobara module RemoteImports - VERSION = "0.0.4".freeze + VERSION = "0.0.5".freeze end end