Skip to content

Commit

Permalink
Use methodless function definitions when initializing functions to be…
Browse files Browse the repository at this point in the history
… used in package extensions
  • Loading branch information
brenhinkeller committed Jun 20, 2024
1 parent 1dc2637 commit 7681e5f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "StatGeochem"
uuid = "df4de05a-b714-11e8-3c2a-c30fb13e804c"
authors = ["C. Brenhin Keller <[email protected]>"]
version = "0.7.9"
version = "0.7.10"

[deps]
Colors = "5ae59095-9a9b-59fe-a467-6f913c188581"
Expand Down
10 changes: 5 additions & 5 deletions src/StatGeochem.jl
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,11 @@ module StatGeochem
# Custom pretty printing for some types
include("utilities/Display.jl")

# Methods exclusively for package extensions
mapplot() = @warn "`mapplot` requires Plots.jl"
mapplot!() = @warn "`mapplot!` requires Plots.jl"
spidergram() = @warn "`spidergram` requires Plots.jl"
spidergram!() = @warn "`spidergram!` requires Plots.jl"
# Functions for which methods will be added in package extensions
function mapplot end
function mapplot! end
function spidergram end
function spidergram! end
export mapplot, mapplot!, spidergram, spidergram!

end # module

2 comments on commit 7681e5f

@brenhinkeller
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/109394

Tip: Release Notes

Did you know you can add release notes too? Just add markdown formatted text underneath the comment after the text
"Release notes:" and it will be added to the registry PR, and if TagBot is installed it will also be added to the
release that TagBot creates. i.e.

@JuliaRegistrator register

Release notes:

## Breaking changes

- blah

To add them here just re-invoke and the PR will be updated.

Tagging

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.7.10 -m "<description of version>" 7681e5f28bf8649d77fd2b4a51b91d8f5b94238c
git push origin v0.7.10

Please sign in to comment.