Skip to content

Commit

Permalink
More refactoring (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
DilumAluthge authored May 8, 2021
1 parent 7876050 commit 082fc5b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "CompatEntryUtilities"
uuid = "8be7a408-1a4a-465c-8be3-3898d13eb8a5"
authors = ["Dilum Aluthge", "contributors"]
version = "2.0.3"
version = "2.0.4"

[deps]
Pkg = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f"
Expand Down
6 changes: 3 additions & 3 deletions src/CompatEntryUtilities.jl
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@ end
function _semver_spec_string(r::PKG_VERSIONS.VersionRange)
m, n = r.lower.n, r.upper.n
if (m, n) == (0, 0)
return "≥0"
return "≥0"::String
elseif m == 0
throw(ArgumentError("This version range cannot be represented using SemVer notation"))
elseif n == 0
return string("", join(r.lower.t, "."),)
return string("", join(r.lower.t, "."),)::String
else
return string(join(r.lower.t[1:m], "."), " - ", join(r.upper.t[1:n], "."))
return string(join(r.lower.t[1:m], "."), " - ", join(r.upper.t[1:n], "."))::String
end
end

Expand Down

2 comments on commit 082fc5b

@DilumAluthge
Copy link
Member 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/36317

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 v2.0.4 -m "<description of version>" 082fc5b57feac9759093d462a3dc6d73785242bc
git push origin v2.0.4

Please sign in to comment.