Skip to content

Commit bcec4e0

Browse files
authored
Merge pull request #314 from go-resty/release-prep-v2.2.0
2 parents b2f7158 + 60a1ad2 commit bcec4e0

19 files changed

+29
-27
lines changed

LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2015-2019 Jeevanandam M., https://myjeeva.com <[email protected]>
3+
Copyright (c) 2015-2020 Jeevanandam M., https://myjeeva.com <[email protected]>
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<p align="center"><a href="#features">Features</a> section describes in detail about Resty capabilities</p>
55
</p>
66
<p align="center">
7-
<p align="center"><a href="https://travis-ci.org/go-resty/resty"><img src="https://travis-ci.org/go-resty/resty.svg?branch=master" alt="Build Status"></a> <a href="https://codecov.io/gh/go-resty/resty/branch/master"><img src="https://codecov.io/gh/go-resty/resty/branch/master/graph/badge.svg" alt="Code Coverage"></a> <a href="https://goreportcard.com/report/go-resty/resty"><img src="https://goreportcard.com/badge/go-resty/resty" alt="Go Report Card"></a> <a href="https://github.com/go-resty/resty/releases/latest"><img src="https://img.shields.io/badge/version-2.1.0-blue.svg" alt="Release Version"></a> <a href="https://godoc.org/github.com/go-resty/resty"><img src="https://godoc.org/github.com/go-resty/resty?status.svg" alt="GoDoc"></a> <a href="LICENSE"><img src="https://img.shields.io/github/license/go-resty/resty.svg" alt="License"></a> <a href="https://github.com/avelino/awesome-go"><img src="https://awesome.re/mentioned-badge.svg" alt="Mentioned in Awesome Go"></a></p>
7+
<p align="center"><a href="https://travis-ci.org/go-resty/resty"><img src="https://travis-ci.org/go-resty/resty.svg?branch=master" alt="Build Status"></a> <a href="https://codecov.io/gh/go-resty/resty/branch/master"><img src="https://codecov.io/gh/go-resty/resty/branch/master/graph/badge.svg" alt="Code Coverage"></a> <a href="https://goreportcard.com/report/go-resty/resty"><img src="https://goreportcard.com/badge/go-resty/resty" alt="Go Report Card"></a> <a href="https://github.com/go-resty/resty/releases/latest"><img src="https://img.shields.io/badge/version-2.2.0-blue.svg" alt="Release Version"></a> <a href="https://pkg.go.dev/github.com/go-resty/resty/v2"><img src="https://godoc.org/github.com/go-resty/resty?status.svg" alt="GoDoc"></a> <a href="LICENSE"><img src="https://img.shields.io/github/license/go-resty/resty.svg" alt="License"></a> <a href="https://github.com/avelino/awesome-go"><img src="https://awesome.re/mentioned-badge.svg" alt="Mentioned in Awesome Go"></a></p>
88
</p>
99
<p align="center">
1010
<h4 align="center">Resty Communication Channels</h4>
@@ -13,7 +13,7 @@
1313

1414
## News
1515

16-
* v2.1.0 [released](https://github.com/go-resty/resty/releases/tag/v2.1.0) and tagged on Oct 10, 2019.
16+
* v2.2.0 [released](https://github.com/go-resty/resty/releases/tag/v2.2.0) and tagged on Feb 23, 2020.
1717
* v2.0.0 [released](https://github.com/go-resty/resty/releases/tag/v2.0.0) and tagged on Jul 16, 2019.
1818
* v1.12.0 [released](https://github.com/go-resty/resty/releases/tag/v1.12.0) and tagged on Feb 27, 2019.
1919
* v1.0 released and tagged on Sep 25, 2017. - Resty's first version was released on Sep 15, 2015 then it grew gradually as a very handy and helpful library. Its been a two years since first release. I'm very thankful to Resty users and its [contributors](https://github.com/go-resty/resty/graphs/contributors).
@@ -104,7 +104,7 @@ Resty author also published following projects for Go Community.
104104

105105
```bash
106106
# Go Modules
107-
require github.com/go-resty/resty/v2 v2.1.0
107+
require github.com/go-resty/resty/v2 v2.2.0
108108
```
109109

110110
## Usage

client.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2015-2019 Jeevanandam M ([email protected]), All rights reserved.
1+
// Copyright (c) 2015-2020 Jeevanandam M ([email protected]), All rights reserved.
22
// resty source code and usage is governed by a MIT style
33
// license that can be found in the LICENSE file.
44

client_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2015-2019 Jeevanandam M ([email protected]), All rights reserved.
1+
// Copyright (c) 2015-2020 Jeevanandam M ([email protected]), All rights reserved.
22
// resty source code and usage is governed by a MIT style
33
// license that can be found in the LICENSE file.
44

context_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2015-2019 Jeevanandam M ([email protected])
1+
// Copyright (c) 2015-2020 Jeevanandam M ([email protected])
22
// 2016 Andrew Grigorev (https://github.com/ei-grad)
33
// All rights reserved.
44
// resty source code and usage is governed by a MIT style

example_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2015-2019 Jeevanandam M. ([email protected]), All rights reserved.
1+
// Copyright (c) 2015-2020 Jeevanandam M. ([email protected]), All rights reserved.
22
// resty source code and usage is governed by a MIT style
33
// license that can be found in the LICENSE file.
44

go.mod

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
module github.com/go-resty/resty/v2
22

3-
require golang.org/x/net v0.0.0-20190628185345-da137c7871d7
3+
require golang.org/x/net v0.0.0-20200222125558-5a598a2470a0
4+
5+
go 1.11

middleware.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2015-2019 Jeevanandam M ([email protected]), All rights reserved.
1+
// Copyright (c) 2015-2020 Jeevanandam M ([email protected]), All rights reserved.
22
// resty source code and usage is governed by a MIT style
33
// license that can be found in the LICENSE file.
44

redirect.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2015-2019 Jeevanandam M ([email protected]), All rights reserved.
1+
// Copyright (c) 2015-2020 Jeevanandam M ([email protected]), All rights reserved.
22
// resty source code and usage is governed by a MIT style
33
// license that can be found in the LICENSE file.
44

request.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2015-2019 Jeevanandam M ([email protected]), All rights reserved.
1+
// Copyright (c) 2015-2020 Jeevanandam M ([email protected]), All rights reserved.
22
// resty source code and usage is governed by a MIT style
33
// license that can be found in the LICENSE file.
44

request_test.go

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2015-2019 Jeevanandam M ([email protected]), All rights reserved.
1+
// Copyright (c) 2015-2020 Jeevanandam M ([email protected]), All rights reserved.
22
// resty source code and usage is governed by a MIT style
33
// license that can be found in the LICENSE file.
44

@@ -1611,8 +1611,8 @@ func TestDebugLoggerRequestBodyTooLarge(t *testing.T) {
16111611
resp, err = New().SetDebug(true).outputLogTo(output).SetDebugBodyLimit(debugBodySizeLimit).R().
16121612
SetFormData(map[string]string{
16131613
"first_name": "Alex",
1614-
"last_name": strings.Repeat("C", int(debugBodySizeLimit)),
1615-
"zip_code": "00001"}).
1614+
"last_name": strings.Repeat("C", int(debugBodySizeLimit)),
1615+
"zip_code": "00001"}).
16161616
SetBasicAuth("myuser", "mypass").
16171617
Post(formTs.URL + "/profile")
16181618
assertNil(t, err)
@@ -1624,8 +1624,8 @@ func TestDebugLoggerRequestBodyTooLarge(t *testing.T) {
16241624
resp, err = New().SetDebug(true).outputLogTo(output).SetDebugBodyLimit(debugBodySizeLimit).R().
16251625
SetFormData(map[string]string{
16261626
"first_name": "Alex",
1627-
"last_name": "C",
1628-
"zip_code": "00001"}).
1627+
"last_name": "C",
1628+
"zip_code": "00001"}).
16291629
SetBasicAuth("myuser", "mypass").
16301630
Post(formTs.URL + "/profile")
16311631
assertNil(t, err)
@@ -1637,7 +1637,7 @@ func TestDebugLoggerRequestBodyTooLarge(t *testing.T) {
16371637
resp, err = New().SetDebug(true).outputLogTo(output).SetDebugBodyLimit(debugBodySizeLimit).R().
16381638
SetBody(`{
16391639
"first_name": "Alex",
1640-
"last_name": "` + strings.Repeat("C", int(debugBodySizeLimit)) + `C",
1640+
"last_name": "`+strings.Repeat("C", int(debugBodySizeLimit))+`C",
16411641
"zip_code": "00001"}`).
16421642
SetBasicAuth("myuser", "mypass").
16431643
Post(formTs.URL + "/profile")

response.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2015-2019 Jeevanandam M ([email protected]), All rights reserved.
1+
// Copyright (c) 2015-2020 Jeevanandam M ([email protected]), All rights reserved.
22
// resty source code and usage is governed by a MIT style
33
// license that can be found in the LICENSE file.
44

resty.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2015-2019 Jeevanandam M ([email protected]), All rights reserved.
1+
// Copyright (c) 2015-2020 Jeevanandam M ([email protected]), All rights reserved.
22
// resty source code and usage is governed by a MIT style
33
// license that can be found in the LICENSE file.
44

@@ -14,7 +14,7 @@ import (
1414
)
1515

1616
// Version # of resty
17-
const Version = "2.1.0"
17+
const Version = "2.2.0"
1818

1919
// New method creates a new Resty client.
2020
func New() *Client {

resty_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2015-2019 Jeevanandam M ([email protected]), All rights reserved.
1+
// Copyright (c) 2015-2020 Jeevanandam M ([email protected]), All rights reserved.
22
// resty source code and usage is governed by a MIT style
33
// license that can be found in the LICENSE file.
44

retry.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2015-2019 Jeevanandam M ([email protected]), All rights reserved.
1+
// Copyright (c) 2015-2020 Jeevanandam M ([email protected]), All rights reserved.
22
// resty source code and usage is governed by a MIT style
33
// license that can be found in the LICENSE file.
44

retry_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2015-2019 Jeevanandam M ([email protected]), All rights reserved.
1+
// Copyright (c) 2015-2020 Jeevanandam M ([email protected]), All rights reserved.
22
// resty source code and usage is governed by a MIT style
33
// license that can be found in the LICENSE file.
44

trace.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2015-2019 Jeevanandam M ([email protected]), All rights reserved.
1+
// Copyright (c) 2015-2020 Jeevanandam M ([email protected]), All rights reserved.
22
// resty source code and usage is governed by a MIT style
33
// license that can be found in the LICENSE file.
44

util.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2015-2019 Jeevanandam M ([email protected]), All rights reserved.
1+
// Copyright (c) 2015-2020 Jeevanandam M ([email protected]), All rights reserved.
22
// resty source code and usage is governed by a MIT style
33
// license that can be found in the LICENSE file.
44

util_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2015-2019 Jeevanandam M ([email protected]), All rights reserved.
1+
// Copyright (c) 2015-2020 Jeevanandam M ([email protected]), All rights reserved.
22
// resty source code and usage is governed by a MIT style
33
// license that can be found in the LICENSE file.
44

0 commit comments

Comments
 (0)