Skip to content

Commit

Permalink
Switch from Formatting to Format
Browse files Browse the repository at this point in the history
  • Loading branch information
bluesmoon committed Apr 7, 2024
1 parent de82123 commit 18987ee
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 19 deletions.
6 changes: 3 additions & 3 deletions Project.toml
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
name = "mPulseAPI"
uuid = "314d2b54-f2c3-11ea-15f2-0bcf2fc50b35"
authors = ["Akamai mPulse DSWB <[email protected]>"]
version = "1.2.1"
version = "1.2.2"

[deps]
DataFrames = "a93c6f00-e57d-5684-b7b6-d8193f3e46c0"
Dates = "ade2ca70-3891-5945-98fb-dc099432e06a"
Formatting = "59287772-0a20-5a39-b81b-1366585eb4c0"
Format = "1fa38f19-a742-5d3f-a2b9-30dd87b9d5f8"
HTTP = "cd3eb016-35fb-5094-929b-558a96fad6f3"
JSON = "682c06a0-de6a-54ab-a142-c8b1cf79cde6"
LightXML = "9c8b4983-aa76-5018-a973-4c85ecc9e179"
TimeZones = "f269a46b-ccf7-5d73-abea-4c690281aa53"

[compat]
DataFrames = "1.6.1"
Formatting = "0.4.2"
Format = "1.3.7"
HTTP = "1.9.15"
JSON = "0.21.4"
LightXML = "0.9.1"
Expand Down
4 changes: 2 additions & 2 deletions src/Alert.jl
Original file line number Diff line number Diff line change
Expand Up @@ -96,12 +96,12 @@ You can clear the cache for this tenant using [`mPulseAPI.clearAlertCache`](@ref
`mPulseAPIException`
: if API access failed for some reason
"""
function getRepositoryAlert(token::AbstractString; alertID::Int64=0, alertName::AbstractString="")
function getRepositoryAlert(token::AbstractString; alertID::Int64=0, alertName::AbstractString="", domain::AbstractString="")

alert_list = getRepositoryObject(
token,
"alert",
Dict{Symbol, Any}(:id => alertID, :name => alertName),
Dict{Symbol, Any}(:id => alertID, :name => alertName, :domain => domain),
filterRequired=false
)

Expand Down
2 changes: 1 addition & 1 deletion src/QueryAPI.jl
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#
###################################################

using DataFrames, JSON, Formatting
using DataFrames, JSON, Format

const nullval = missing

Expand Down
26 changes: 13 additions & 13 deletions src/mPulseAPI.jl
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ module mPulseAPI

using Dates

using LightXML, Formatting, TimeZones, DataFrames
using LightXML, Format, TimeZones, DataFrames
import HTTP
export LightXML

Expand Down Expand Up @@ -123,7 +123,7 @@ function readdocs(name::AbstractString, replacers=[]; indent=0)

# And run the whole thing through format
try
data = Formatting.format(data, replacers...)
data = Format.format(data, replacers...)
catch
@warn replacers
@warn data
Expand All @@ -138,18 +138,18 @@ function readdocs(name::AbstractString, replacers=[]; indent=0)
return data
end

include(joinpath(@__DIR__, "exceptions.jl"))
include(joinpath(@__DIR__, "cache_utilities.jl"))
include(joinpath(@__DIR__, "xml_utilities.jl"))
include("exceptions.jl")
include("cache_utilities.jl")
include("xml_utilities.jl")

include(joinpath(@__DIR__, "RepositoryAPI.jl"))
include(joinpath(@__DIR__, "StatisticalModel.jl"))
include(joinpath(@__DIR__, "Alert.jl"))
include(joinpath(@__DIR__, "Domain.jl"))
include(joinpath(@__DIR__, "Tenant.jl"))
include(joinpath(@__DIR__, "Token.jl"))
include(joinpath(@__DIR__, "QueryAPI.jl"))
include("RepositoryAPI.jl")
include("StatisticalModel.jl")
include("Alert.jl")
include("Domain.jl")
include("Tenant.jl")
include("Token.jl")
include("QueryAPI.jl")

include(joinpath(@__DIR__, "BeaconAPI.jl"))
include("BeaconAPI.jl")

end

2 comments on commit 18987ee

@bluesmoon
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 register()

@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/104401

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 v1.2.2 -m "<description of version>" 18987ee5b7c3436a2ac28b311c811026c76961fb
git push origin v1.2.2

Please sign in to comment.