Skip to content

Commit

Permalink
provide default value for _extras (#44)
Browse files Browse the repository at this point in the history
* provide default value for _extras

* version bump for _extras fix
  • Loading branch information
zot authored Sep 30, 2022
1 parent e13a521 commit 3e9e180
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "GitForge"
uuid = "8f6bce27-0656-5410-875b-07a5572985df"
authors = ["Chris de Graaf <me@cdg.dev>"]
version = "0.4.0"
version = "0.4.1"

[deps]
Dates = "ade2ca70-3891-5945-98fb-dc099432e06a"
Expand Down
2 changes: 1 addition & 1 deletion src/helpers.jl
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ function json(forge::Type, def::Expr)
Base.@__doc__ $def

# sort extras so they can compare for equality
$T(; $(kws...), $extras) =
$T(; $(kws...), $extras = (;)) =
$T($(names...), (; sort!([pairs($extras)...], by = first)...))

# equality
Expand Down

2 comments on commit 3e9e180

@nkottary
Copy link
Collaborator

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/69271

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.4.1 -m "<description of version>" 3e9e180d804d93a4b50e87121dbdb14e21343ba4
git push origin v0.4.1

Please sign in to comment.