Skip to content

Commit

Permalink
Update dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
arp242 committed Mar 30, 2021
1 parent 153a42f commit d476098
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 28 deletions.
12 changes: 6 additions & 6 deletions README.markdown
Expand Up @@ -399,12 +399,7 @@ some other tool if you want to process the data further.
ChangeLog
---------

### v2.1.0 (unreleased)

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

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

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

- Refactor the arp242.net/uni/unidata package to be more useful for other use
cases. This isn't really relevant for `uni` users as such, but if you want to
get information about codepoints or emojis then this package is a nice
addition to the standard library's `unicode` package.

### v2.0.0 (2021-01-03)

This changes some flags, semantics, and defaults in **incompatible** ways, hence
Expand Down
4 changes: 2 additions & 2 deletions go.mod
Expand Up @@ -3,6 +3,6 @@ module arp242.net/uni
go 1.13

require (
zgo.at/zli v0.0.0-20210102181013-33768b083e81
zgo.at/zstd v0.0.0-20210225153322-0b0ac4d9c4b3
zgo.at/zli v0.0.0-20210330134141-b5f2a73532d6
zgo.at/zstd v0.0.0-20210322015326-ca7824321150
)
15 changes: 9 additions & 6 deletions go.sum
@@ -1,6 +1,9 @@
golang.org/x/sys v0.0.0-20200625212154-ddb9806d33ae h1:Ih9Yo4hSPImZOpfGuA4bR/ORKTAbhZo2AbWNRCnevdo=
golang.org/x/sys v0.0.0-20200625212154-ddb9806d33ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
zgo.at/zli v0.0.0-20210102181013-33768b083e81 h1:sU7ikPg5evetx2ewkxx6EgNw38mYNNyqUxiK2Tm54dw=
zgo.at/zli v0.0.0-20210102181013-33768b083e81/go.mod h1:iCNHeIhEG9nQZsmEvf1BDpnQXvbYbUDvokRSwB434M8=
zgo.at/zstd v0.0.0-20210225153322-0b0ac4d9c4b3 h1:24NscAZNkgP8dxWqtrGSykxln2Ew5Bkabw0RXGVAB68=
zgo.at/zstd v0.0.0-20210225153322-0b0ac4d9c4b3/go.mod h1:bQqcOgaRPCBT7lZ52Ksg9GF1xwi0L97E3AyvW3oGJYE=
golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20210315160823-c6e025ad8005 h1:pDMpM2zh2MT0kHy037cKlSby2nEhD50SYqwQk76Nm40=
golang.org/x/sys v0.0.0-20210315160823-c6e025ad8005/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/term v0.0.0-20210317153231-de623e64d2a6 h1:EC6+IGYTjPpRfv9a2b/6Puw0W+hLtAhkV1tPsXhutqs=
golang.org/x/term v0.0.0-20210317153231-de623e64d2a6/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
zgo.at/zli v0.0.0-20210330134141-b5f2a73532d6 h1:gt3Pih5WXe7zD3PGVaM1KTA0j0k+/99DQAdVMLPRrYY=
zgo.at/zli v0.0.0-20210330134141-b5f2a73532d6/go.mod h1:C1P7MoX7i/tpZHE5i2ODqZ/ensWWs4+qhkt7hz0lrfU=
zgo.at/zstd v0.0.0-20210322015326-ca7824321150 h1:Cho/3jDZ0/a5W8xLBWQp96DYe3d7GLuGHOQMIV+o+/E=
zgo.at/zstd v0.0.0-20210322015326-ca7824321150/go.mod h1:sQqrTxBwKW0nlwcOg9RxXB8ikY+NBciJnJRPOq/gEuY=
21 changes: 7 additions & 14 deletions uni_test.go
Expand Up @@ -31,8 +31,7 @@ func TestCLI(t *testing.T) {

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

func() {
Expand Down Expand Up @@ -68,8 +67,7 @@ func TestIdentify(t *testing.T) {

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

func() {
Expand Down Expand Up @@ -109,8 +107,7 @@ func TestSearch(t *testing.T) {

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

func() {
Expand Down Expand Up @@ -168,8 +165,7 @@ func TestPrint(t *testing.T) {

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

func() {
Expand Down Expand Up @@ -241,8 +237,7 @@ func TestEmoji(t *testing.T) {

for _, tt := range tests {
t.Run(strings.Join(tt.in, "_"), func(t *testing.T) {
_, _, outbuf, reset := zli.Test()
defer reset()
_, _, outbuf := zli.Test(t)
os.Args = append([]string{"testuni"}, tt.in...)

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

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

func() {
Expand Down Expand Up @@ -323,8 +317,7 @@ func TestAllEmoji(t *testing.T) {
}

func TestJSON(t *testing.T) {
_, _, outbuf, reset := zli.Test()
defer reset()
_, _, outbuf := zli.Test(t)

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

0 comments on commit d476098

Please sign in to comment.