Skip to content

Commit d476098

Browse files
committed
Update dependency
1 parent 153a42f commit d476098

File tree

4 files changed

+24
-28
lines changed

4 files changed

+24
-28
lines changed

README.markdown

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -399,12 +399,7 @@ some other tool if you want to process the data further.
399399
ChangeLog
400400
---------
401401

402-
### v2.1.0 (unreleased)
403-
404-
- Refactor the arp242.net/uni/unidata package to be more useful for other use
405-
cases. This isn't really relevant for `uni` users as such, but if you want to
406-
get information about codepoints or emojis then this package is a nice
407-
addition to the standard library's `unicode` package.
402+
### v2.1.0 (2021-03-30)
408403

409404
- Can now output as JSON with `-j` or `-json`.
410405

@@ -414,6 +409,11 @@ ChangeLog
414409
- Add `%(block)`, `%(plane)`, `%(width)`, `%(utf16be)`, `%(utf16le)`, and
415410
`%(json) to `-f`.
416411

412+
- Refactor the arp242.net/uni/unidata package to be more useful for other use
413+
cases. This isn't really relevant for `uni` users as such, but if you want to
414+
get information about codepoints or emojis then this package is a nice
415+
addition to the standard library's `unicode` package.
416+
417417
### v2.0.0 (2021-01-03)
418418

419419
This changes some flags, semantics, and defaults in **incompatible** ways, hence

go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ module arp242.net/uni
33
go 1.13
44

55
require (
6-
zgo.at/zli v0.0.0-20210102181013-33768b083e81
7-
zgo.at/zstd v0.0.0-20210225153322-0b0ac4d9c4b3
6+
zgo.at/zli v0.0.0-20210330134141-b5f2a73532d6
7+
zgo.at/zstd v0.0.0-20210322015326-ca7824321150
88
)

go.sum

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
1-
golang.org/x/sys v0.0.0-20200625212154-ddb9806d33ae h1:Ih9Yo4hSPImZOpfGuA4bR/ORKTAbhZo2AbWNRCnevdo=
2-
golang.org/x/sys v0.0.0-20200625212154-ddb9806d33ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
3-
zgo.at/zli v0.0.0-20210102181013-33768b083e81 h1:sU7ikPg5evetx2ewkxx6EgNw38mYNNyqUxiK2Tm54dw=
4-
zgo.at/zli v0.0.0-20210102181013-33768b083e81/go.mod h1:iCNHeIhEG9nQZsmEvf1BDpnQXvbYbUDvokRSwB434M8=
5-
zgo.at/zstd v0.0.0-20210225153322-0b0ac4d9c4b3 h1:24NscAZNkgP8dxWqtrGSykxln2Ew5Bkabw0RXGVAB68=
6-
zgo.at/zstd v0.0.0-20210225153322-0b0ac4d9c4b3/go.mod h1:bQqcOgaRPCBT7lZ52Ksg9GF1xwi0L97E3AyvW3oGJYE=
1+
golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
2+
golang.org/x/sys v0.0.0-20210315160823-c6e025ad8005 h1:pDMpM2zh2MT0kHy037cKlSby2nEhD50SYqwQk76Nm40=
3+
golang.org/x/sys v0.0.0-20210315160823-c6e025ad8005/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
4+
golang.org/x/term v0.0.0-20210317153231-de623e64d2a6 h1:EC6+IGYTjPpRfv9a2b/6Puw0W+hLtAhkV1tPsXhutqs=
5+
golang.org/x/term v0.0.0-20210317153231-de623e64d2a6/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
6+
zgo.at/zli v0.0.0-20210330134141-b5f2a73532d6 h1:gt3Pih5WXe7zD3PGVaM1KTA0j0k+/99DQAdVMLPRrYY=
7+
zgo.at/zli v0.0.0-20210330134141-b5f2a73532d6/go.mod h1:C1P7MoX7i/tpZHE5i2ODqZ/ensWWs4+qhkt7hz0lrfU=
8+
zgo.at/zstd v0.0.0-20210322015326-ca7824321150 h1:Cho/3jDZ0/a5W8xLBWQp96DYe3d7GLuGHOQMIV+o+/E=
9+
zgo.at/zstd v0.0.0-20210322015326-ca7824321150/go.mod h1:sQqrTxBwKW0nlwcOg9RxXB8ikY+NBciJnJRPOq/gEuY=

uni_test.go

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,7 @@ func TestCLI(t *testing.T) {
3131

3232
for _, tt := range tests {
3333
t.Run(strings.Join(tt.in, "_"), func(t *testing.T) {
34-
exit, _, out, reset := zli.Test()
35-
defer reset()
34+
exit, _, out := zli.Test(t)
3635
os.Args = append([]string{"testuni"}, tt.in...)
3736

3837
func() {
@@ -68,8 +67,7 @@ func TestIdentify(t *testing.T) {
6867

6968
for _, tt := range tests {
7069
t.Run(strings.Join(tt.in, "_"), func(t *testing.T) {
71-
exit, _, out, reset := zli.Test()
72-
defer reset()
70+
exit, _, out := zli.Test(t)
7371
os.Args = append([]string{"testuni"}, tt.in...)
7472

7573
func() {
@@ -109,8 +107,7 @@ func TestSearch(t *testing.T) {
109107

110108
for _, tt := range tests {
111109
t.Run(strings.Join(tt.in, "_"), func(t *testing.T) {
112-
exit, _, outbuf, reset := zli.Test()
113-
defer reset()
110+
exit, _, outbuf := zli.Test(t)
114111
os.Args = append([]string{"testuni"}, tt.in...)
115112

116113
func() {
@@ -168,8 +165,7 @@ func TestPrint(t *testing.T) {
168165

169166
for _, tt := range tests {
170167
t.Run(strings.Join(tt.in, "_"), func(t *testing.T) {
171-
exit, _, outbuf, reset := zli.Test()
172-
defer reset()
168+
exit, _, outbuf := zli.Test(t)
173169
os.Args = append([]string{"testuni"}, tt.in...)
174170

175171
func() {
@@ -241,8 +237,7 @@ func TestEmoji(t *testing.T) {
241237

242238
for _, tt := range tests {
243239
t.Run(strings.Join(tt.in, "_"), func(t *testing.T) {
244-
_, _, outbuf, reset := zli.Test()
245-
defer reset()
240+
_, _, outbuf := zli.Test(t)
246241
os.Args = append([]string{"testuni"}, tt.in...)
247242

248243
main()
@@ -268,8 +263,7 @@ func TestEmoji(t *testing.T) {
268263
}
269264

270265
func TestAllEmoji(t *testing.T) {
271-
exit, _, outbuf, reset := zli.Test()
272-
defer reset()
266+
exit, _, outbuf := zli.Test(t)
273267
os.Args = append([]string{"testuni"}, []string{"e", "-q", "-gender", "all", "-tone", "all", "all"}...)
274268

275269
func() {
@@ -323,8 +317,7 @@ func TestAllEmoji(t *testing.T) {
323317
}
324318

325319
func TestJSON(t *testing.T) {
326-
_, _, outbuf, reset := zli.Test()
327-
defer reset()
320+
_, _, outbuf := zli.Test(t)
328321

329322
os.Args = append([]string{"testuni"}, "i", "€", "-f=all", "-j")
330323
main()

0 commit comments

Comments
 (0)