From dd6e073e9c04fa02787d5c47b238703a1973cb9a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6nke=20Behrendt?= Date: Thu, 2 Apr 2020 17:32:13 +0200 Subject: [PATCH] Fix upload response parsing --- .version | 2 +- build/innosetup/phraseapp-client-386.iss | 2 +- build/innosetup/phraseapp-client.iss | 2 +- go.mod | 5 +---- go.sum | 8 ++------ router.go | 4 ++-- vendor/github.com/phrase/phraseapp-go/phraseapp/lib.go | 6 +++--- vendor/modules.txt | 2 +- 8 files changed, 12 insertions(+), 19 deletions(-) diff --git a/.version b/.version index 092afa1..511a76e 100644 --- a/.version +++ b/.version @@ -1 +1 @@ -1.17.0 +1.17.1 diff --git a/build/innosetup/phraseapp-client-386.iss b/build/innosetup/phraseapp-client-386.iss index d88195a..eb61665 100644 --- a/build/innosetup/phraseapp-client-386.iss +++ b/build/innosetup/phraseapp-client-386.iss @@ -7,7 +7,7 @@ ; (To generate a new GUID, click Tools | Generate GUID inside the IDE.) AppId={{DC598D8E-8A9B-4CAD-AFD8-0324FDF4E0F1} AppName=PhraseApp Client -AppVersion=1.17.0 +AppVersion=1.17.1 AppPublisher=PhraseApp GmbH AppPublisherURL=https://phrase.com/cli AppSupportURL=https://phrase.com/cli diff --git a/build/innosetup/phraseapp-client.iss b/build/innosetup/phraseapp-client.iss index e195029..eb2a002 100644 --- a/build/innosetup/phraseapp-client.iss +++ b/build/innosetup/phraseapp-client.iss @@ -7,7 +7,7 @@ ; (To generate a new GUID, click Tools | Generate GUID inside the IDE.) AppId={{DC598D8E-8A9B-4CAD-AFD8-0324FDF4E0F1} AppName=PhraseApp Client -AppVersion=1.17.0 +AppVersion=1.17.1 AppPublisher=PhraseApp GmbH AppPublisherURL=https://phrase.com/cli AppSupportURL=https://phrase.com/cli diff --git a/go.mod b/go.mod index aca1aab..c6e5eca 100644 --- a/go.mod +++ b/go.mod @@ -3,17 +3,14 @@ module github.com/phrase/phraseapp-client go 1.13 require ( - github.com/bgentry/speakeasy v0.1.0 // indirect github.com/coreos/go-semver v0.2.0 github.com/daviddengcn/go-colortext v0.0.0-20171126034257-17e75f6184bc github.com/dynport/dgtk v0.0.0-20180530100300-3360a73d8ca9 github.com/golangplus/bytes v0.0.0-20160111154220-45c989fe5450 // indirect github.com/golangplus/fmt v0.0.0-20150411045040-2a5d6d7d2995 // indirect github.com/golangplus/testing v0.0.0-20180327235837-af21d9c3145e // indirect - github.com/google/btree v1.0.0 // indirect github.com/jpillora/backoff v0.0.0-20170918002102-8eab2debe79d - github.com/peterbourgon/diskv v2.0.1+incompatible // indirect - github.com/phrase/phraseapp-go v1.0.1-0.20200330092623-4c858d5b0d0e + github.com/phrase/phraseapp-go v1.0.1-0.20200402153024-33adc4b3ef11 github.com/smartystreets/goconvey v0.0.0-20190731233626-505e41936337 // indirect gopkg.in/yaml.v2 v2.2.8 ) diff --git a/go.sum b/go.sum index ded018d..a545bb4 100644 --- a/go.sum +++ b/go.sum @@ -22,10 +22,8 @@ github.com/jtolds/gls v4.20.0+incompatible h1:xdiiI2gbIgH/gLH7ADydsJ1uDOEzR8yvV7 github.com/jtolds/gls v4.20.0+incompatible/go.mod h1:QJZ7F/aHp+rZTRtaJ1ow/lLfFfVYBRgL+9YlvaHOwJU= github.com/peterbourgon/diskv v2.0.1+incompatible h1:UBdAOUP5p4RWqPBg048CAvpKN+vxiaj6gdUUzhl4XmI= github.com/peterbourgon/diskv v2.0.1+incompatible/go.mod h1:uqqh8zWWbv1HBMNONnaR/tNboyR3/BZd58JJSHlUSCU= -github.com/phrase/phraseapp-go v1.0.1-0.20200330092623-4c858d5b0d0e h1:cc+4048HeYbTumao8JPJx8NabS/tNQ5uMuyWm6B3fcU= -github.com/phrase/phraseapp-go v1.0.1-0.20200330092623-4c858d5b0d0e/go.mod h1:XS5CX+PgOJxPecE1WqQMjYxhEZpcS0Tihp+b0KZ2Ws0= -github.com/phrase/phraseapp-go v3.0.1-0.20191007092208-14bf46b95f02+incompatible h1:pIfRi0yo+9RJsjC/+Cnc7c/5yjWbFPtSF7kgKVNeynM= -github.com/phrase/phraseapp-go v3.0.1-0.20191007092208-14bf46b95f02+incompatible/go.mod h1:TOL+9xE9WvJONHUwDe12G3vKyeOd+FG5XCofz1jln2w= +github.com/phrase/phraseapp-go v1.0.1-0.20200402153024-33adc4b3ef11 h1:iHI4t50MUnVB37qY5CxGYTGNRs1UFTIbd57Ljr+uZT0= +github.com/phrase/phraseapp-go v1.0.1-0.20200402153024-33adc4b3ef11/go.mod h1:XS5CX+PgOJxPecE1WqQMjYxhEZpcS0Tihp+b0KZ2Ws0= github.com/smartystreets/assertions v0.0.0-20180927180507-b2de0cb4f26d h1:zE9ykElWQ6/NYmHa3jpm/yHnI4xSofP+UP6SpjHcSeM= github.com/smartystreets/assertions v0.0.0-20180927180507-b2de0cb4f26d/go.mod h1:OnSkiWE9lh6wB0YB77sQom3nweQdgAjqCqsofrRNTgc= github.com/smartystreets/goconvey v0.0.0-20190731233626-505e41936337 h1:WN9BUFbdyOsSH/XohnWpXOlq9NBD5sGAB2FciQMUEe8= @@ -37,7 +35,5 @@ golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/tools v0.0.0-20190328211700-ab21143f2384/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= -gopkg.in/yaml.v2 v2.2.1 h1:mUhvW9EsL+naU5Q3cakzfE91YhliOondGd6ZrsDBHQE= -gopkg.in/yaml.v2 v2.2.1/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.2.8 h1:obN1ZagJSUGI0Ek/LBmuj4SNLPfIny3KsKFopxRdj10= gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= diff --git a/router.go b/router.go index 89ced8e..391a083 100644 --- a/router.go +++ b/router.go @@ -9,8 +9,8 @@ import ( ) const ( - RevisionDocs = "5cc58168292cad8c2c804e39d521843bb8f467c0" - RevisionGenerator = "HEAD/2020-03-30T112659/soenke" + RevisionDocs = "b33e5c3d0e590c6aed24f39a2c98731c6b2116d9" + RevisionGenerator = "HEAD/2020-04-02T173135/soenke" ) func router(cfg *phraseapp.Config) (*cli.Router, error) { diff --git a/vendor/github.com/phrase/phraseapp-go/phraseapp/lib.go b/vendor/github.com/phrase/phraseapp-go/phraseapp/lib.go index 6326663..81dc497 100644 --- a/vendor/github.com/phrase/phraseapp-go/phraseapp/lib.go +++ b/vendor/github.com/phrase/phraseapp-go/phraseapp/lib.go @@ -15,8 +15,8 @@ import ( ) const ( - RevisionDocs = "5cc58168292cad8c2c804e39d521843bb8f467c0" - RevisionGenerator = "HEAD/2020-03-30T112018/soenke" + RevisionDocs = "b33e5c3d0e590c6aed24f39a2c98731c6b2116d9" + RevisionGenerator = "HEAD/2020-04-02T172629/soenke" ) type Account struct { @@ -494,7 +494,7 @@ type Upload struct { ID string `json:"id"` State string `json:"state"` Summary SummaryType `json:"summary"` - Tag *Tag `json:"tag"` + Tag string `json:"tag"` UpdatedAt *time.Time `json:"updated_at"` } diff --git a/vendor/modules.txt b/vendor/modules.txt index d1544df..4d4962e 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -13,7 +13,7 @@ github.com/google/btree github.com/jpillora/backoff # github.com/peterbourgon/diskv v2.0.1+incompatible github.com/peterbourgon/diskv -# github.com/phrase/phraseapp-go v1.0.1-0.20200330092623-4c858d5b0d0e +# github.com/phrase/phraseapp-go v1.0.1-0.20200402153024-33adc4b3ef11 github.com/phrase/phraseapp-go/phraseapp # gopkg.in/yaml.v2 v2.2.8 gopkg.in/yaml.v2