Skip to content

Commit af7f0e7

Browse files
asinghvi17pfitzseb
andauthored
Add JSON.jl v1 support, bump patch version (#56)
* Add JSON.jl v1 support, bump patch version This shouldn't break any uses of JSON.jl that I have seen here. * fix: convert to Dict for JSON compat * chore: switch to runic formatting * chore: format with runic * chore: ignore runic formatting rev --------- Co-authored-by: Sebastian Pfitzner <[email protected]>
1 parent 4326b89 commit af7f0e7

File tree

11 files changed

+183
-188
lines changed

11 files changed

+183
-188
lines changed

.git-blame-ignore-revs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# runic formatting
2+
cbfaf61378729f5b7aa4053df7a44ad20caaa5a2

.github/workflows/format-julia.yaml

Lines changed: 0 additions & 34 deletions
This file was deleted.

.github/workflows/runic.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Runic formatting
2+
on:
3+
push:
4+
branches:
5+
- 'master'
6+
- 'release-'
7+
tags:
8+
- '*'
9+
pull_request:
10+
jobs:
11+
runic:
12+
name: Runic
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v5
16+
- uses: fredrikekre/runic-action@v1
17+
with:
18+
version: '1'

Project.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "PkgAuthentication"
22
uuid = "4722fa14-9d28-45f9-a1e2-a38605bd88f0"
33
authors = ["Sebastian Pfitzner", "contributors"]
4-
version = "2.3.1"
4+
version = "2.3.2"
55

66
[deps]
77
Downloads = "f43a241f-c20a-4ad4-852c-f6b1247861c6"
@@ -12,5 +12,5 @@ TOML = "fa267f1f-6049-4f14-aa54-33bafae1ed76"
1212

1313
[compat]
1414
Downloads = "1"
15-
JSON = "0.20, 0.21"
15+
JSON = "0.20, 0.21, 1"
1616
julia = "1.3"

bin/structure.jl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import InteractiveUtils, Markdown, TextWrap
55

66
# Rather than generating the file directly, we'll write the output to a buffer
77
# first, so that we wouldn't end up with a partial file if there is some error.
8-
buffer = let buffer = IOBuffer(; write=true)
8+
buffer = let buffer = IOBuffer(; write = true)
99
write(
1010
buffer,
1111
"""
@@ -28,7 +28,7 @@ buffer = let buffer = IOBuffer(; write=true)
2828

2929
all_targets = Dict{String, Vector{String}}()
3030
ignore_errors = (
31-
PkgAuthentication.Failure, PkgAuthentication.Success
31+
PkgAuthentication.Failure, PkgAuthentication.Success,
3232
)
3333
for line in readlines(pathof(PkgAuthentication))
3434
m = match(r"^function step\(state::(.+?)\)::Union{(.+?)}$", line)
@@ -37,7 +37,7 @@ buffer = let buffer = IOBuffer(; write=true)
3737
end
3838
end
3939
choice_index = 0
40-
for state in sort(InteractiveUtils.subtypes(PkgAuthentication.State); by=string)
40+
for state in sort(InteractiveUtils.subtypes(PkgAuthentication.State); by = string)
4141
println(buffer)
4242
state_str = string(nameof(state))
4343
# Generate the connecting arrows between the states
@@ -67,8 +67,8 @@ buffer = let buffer = IOBuffer(; write=true)
6767
docstr_text = docstr.meta[:results][1].text[1]
6868
println(buffer, " note left of $(state_str)")
6969
TextWrap.print_wrapped(
70-
buffer, docstr_text; width=65,
71-
initial_indent=8, subsequent_indent=8,
70+
buffer, docstr_text; width = 65,
71+
initial_indent = 8, subsequent_indent = 8,
7272
)
7373
println(buffer)
7474
println(buffer, " end note")

0 commit comments

Comments
 (0)