Skip to content

Commit

Permalink
Merge pull request #35 from MichaelHatherly/mh/convert
Browse files Browse the repository at this point in the history
Fix missing `convert` method for `CMFile`
  • Loading branch information
MichaelHatherly authored Jan 8, 2025
2 parents 4f6f439 + c4be977 commit 1eb05e8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## Unreleased

## [v2.2.2] - 2025-01-08

### Fixed

- Fix `Revise`-related error due to missing `convert` for `@cm_component` [#35]

## [v2.2.1] - 2025-01-07

### Fixed
Expand Down Expand Up @@ -106,6 +112,7 @@ Initial release.
[v2.1.0]: https://github.com/MichaelHatherly/HypertextTemplates.jl/releases/tag/v2.1.0
[v2.2.0]: https://github.com/MichaelHatherly/HypertextTemplates.jl/releases/tag/v2.2.0
[v2.2.1]: https://github.com/MichaelHatherly/HypertextTemplates.jl/releases/tag/v2.2.1
[v2.2.2]: https://github.com/MichaelHatherly/HypertextTemplates.jl/releases/tag/v2.2.2
[#8]: https://github.com/MichaelHatherly/HypertextTemplates.jl/issues/8
[#10]: https://github.com/MichaelHatherly/HypertextTemplates.jl/issues/10
[#11]: https://github.com/MichaelHatherly/HypertextTemplates.jl/issues/11
Expand All @@ -125,3 +132,4 @@ Initial release.
[#29]: https://github.com/MichaelHatherly/HypertextTemplates.jl/issues/29
[#30]: https://github.com/MichaelHatherly/HypertextTemplates.jl/issues/30
[#34]: https://github.com/MichaelHatherly/HypertextTemplates.jl/issues/34
[#35]: https://github.com/MichaelHatherly/HypertextTemplates.jl/issues/35
1 change: 1 addition & 0 deletions src/cmfile.jl
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ struct CMFile
end

Base.String(vaf::CMFile) = vaf.file
Base.convert(::Type{String}, file::CMFile) = String(file)
Base.abspath(file::CMFile) =
CMFile(Base.abspath(file.file), file.mod, file.name, file.parameters)
Base.isfile(file::CMFile) = Base.isfile(file.file)
Expand Down

0 comments on commit 1eb05e8

Please sign in to comment.