From 8ada7dfc23e9a7c60754c3040e02a9e1146829b5 Mon Sep 17 00:00:00 2001 From: Jim Garrison Date: Fri, 24 May 2024 22:02:31 -0400 Subject: [PATCH 1/2] Migrate from `REQUIRE` to `Project.toml` --- Project.toml | 16 ++++++++++++++++ REQUIRE | 1 - 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 Project.toml delete mode 100644 REQUIRE diff --git a/Project.toml b/Project.toml new file mode 100644 index 0000000..9dcb412 --- /dev/null +++ b/Project.toml @@ -0,0 +1,16 @@ +name = "Humanize" +uuid = "7ec9b9c5-1998-51e1-b7fc-fc3590c18259" +version = "1.0.0" + +[deps] +Dates = "ade2ca70-3891-5945-98fb-dc099432e06a" +Printf = "de0858da-6303-5e67-8744-51eddeeeb8d7" + +[compat] +julia = "1" + +[extras] +Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" + +[targets] +test = ["Test"] diff --git a/REQUIRE b/REQUIRE deleted file mode 100644 index 45954cb..0000000 --- a/REQUIRE +++ /dev/null @@ -1 +0,0 @@ -julia 1.0 2.0 From 10706dba6815396d648936e648a7cab83f456fba Mon Sep 17 00:00:00 2001 From: Jim Garrison Date: Fri, 24 May 2024 22:10:07 -0400 Subject: [PATCH 2/2] Mark functions explicitly as `public` --- Project.toml | 2 +- src/Humanize.jl | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Project.toml b/Project.toml index 9dcb412..6652424 100644 --- a/Project.toml +++ b/Project.toml @@ -7,7 +7,7 @@ Dates = "ade2ca70-3891-5945-98fb-dc099432e06a" Printf = "de0858da-6303-5e67-8744-51eddeeeb8d7" [compat] -julia = "1" +julia = "1.11" [extras] Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" diff --git a/src/Humanize.jl b/src/Humanize.jl index 9bdc17f..9d3b9ed 100644 --- a/src/Humanize.jl +++ b/src/Humanize.jl @@ -107,4 +107,6 @@ function digitsep(value::Integer; seperator=",", per_separator=3) return (isnegative ? "-" : "") * join(groups, seperator) end +public datasize, timedelta, digitsep + end # module Humanize.