Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(v2): preview release candidate #26

Merged
merged 13 commits into from
Jul 26, 2017
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ language: go
go:
- 1.8
- 1.7
- 1.6
- tip

before_install:
Expand Down
26 changes: 26 additions & 0 deletions History.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,30 @@

v2.0.0 / 2017-07-26
===================

* fix(merge): resolve conflicts from master
* feat(docs): add versions notes
* refactor(docs): update version badge
* refactor(docs): update version badge
* Merge branch 'master' of https://github.com/h2non/gentleman into v2
* rerafctor(docs): use v2 godoc links
* refactor(examples): normalize import statements
* fix(bodytype): add Type() alias public method
* feat(History): update changes
* feat(version): bump to v2.0.0-rc.0
* fix: format code accordingly
* fix(travis): use Go 1.7+
* feat(v2): push v2 preview release

v2.0.0-rc.0 / 2017-03-18
========================

* feat(version): bump to v2.0.0-rc.0
* fix: format code accordingly
* fix(travis): use Go 1.7+
* refactor(context): adopt standard `context`. Introduces several breaking changes
* feat(v2): push v2 preview release

v1.0.4 / 2017-05-31
===================

Expand Down
117 changes: 61 additions & 56 deletions README.md

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions _examples/auth/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@ package main

import (
"fmt"
"gopkg.in/h2non/gentleman.v1"
"gopkg.in/h2non/gentleman.v1/plugins/auth"

"gopkg.in/h2non/gentleman.v2"
"gopkg.in/h2non/gentleman.v2/plugins/auth"
)

func main() {
Expand Down
3 changes: 2 additions & 1 deletion _examples/basic/basic.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ package main

import (
"fmt"
"gopkg.in/h2non/gentleman.v1"

"gopkg.in/h2non/gentleman.v2"
)

func main() {
Expand Down
5 changes: 3 additions & 2 deletions _examples/body/body_json.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@ package main

import (
"fmt"
"gopkg.in/h2non/gentleman.v1"
"gopkg.in/h2non/gentleman.v1/plugins/body"

"gopkg.in/h2non/gentleman.v2"
"gopkg.in/h2non/gentleman.v2/plugins/body"
)

func main() {
Expand Down
7 changes: 4 additions & 3 deletions _examples/bodytype/bodytype.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@ package main

import (
"fmt"
"gopkg.in/h2non/gentleman.v1"
"gopkg.in/h2non/gentleman.v1/plugins/body"
"gopkg.in/h2non/gentleman.v1/plugins/bodytype"

"gopkg.in/h2non/gentleman.v2"
"gopkg.in/h2non/gentleman.v2/plugins/body"
"gopkg.in/h2non/gentleman.v2/plugins/bodytype"
)

func main() {
Expand Down
5 changes: 3 additions & 2 deletions _examples/compression/compression.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@ package main

import (
"fmt"
"gopkg.in/h2non/gentleman.v1"
"gopkg.in/h2non/gentleman.v1/plugins/compression"

"gopkg.in/h2non/gentleman.v2"
"gopkg.in/h2non/gentleman.v2/plugins/compression"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion _examples/context/context.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package main
import (
"fmt"

"gopkg.in/h2non/gentleman.v1"
"gopkg.in/h2non/gentleman.v2"
)

func main() {
Expand Down
5 changes: 3 additions & 2 deletions _examples/cookies/cookies.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@ package main

import (
"fmt"
"gopkg.in/h2non/gentleman.v1"
"gopkg.in/h2non/gentleman.v1/plugins/cookies"

"gopkg.in/h2non/gentleman.v2"
"gopkg.in/h2non/gentleman.v2/plugins/cookies"
)

func main() {
Expand Down
3 changes: 2 additions & 1 deletion _examples/goroutines/goroutines.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@ package main

import (
"fmt"
"gopkg.in/h2non/gentleman.v1"
"sync"

"gopkg.in/h2non/gentleman.v2"
)

func main() {
Expand Down
4 changes: 2 additions & 2 deletions _examples/headers/headers.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package main
import (
"fmt"

"gopkg.in/h2non/gentleman.v1"
"gopkg.in/h2non/gentleman.v1/plugins/headers"
"gopkg.in/h2non/gentleman.v2"
"gopkg.in/h2non/gentleman.v2/plugins/headers"
)

func main() {
Expand Down
5 changes: 3 additions & 2 deletions _examples/inheritance/inheritance.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@ package main

import (
"fmt"
"gopkg.in/h2non/gentleman.v1"
"gopkg.in/h2non/gentleman.v1/plugins/headers"

"gopkg.in/h2non/gentleman.v2"
"gopkg.in/h2non/gentleman.v2/plugins/headers"
)

func main() {
Expand Down
7 changes: 4 additions & 3 deletions _examples/intercept/intercept.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@ package main

import (
"fmt"
"gopkg.in/h2non/gentleman.v1"
"gopkg.in/h2non/gentleman.v1/context"
"gopkg.in/h2non/gentleman.v1/utils"

"gopkg.in/h2non/gentleman.v2"
"gopkg.in/h2non/gentleman.v2/context"
"gopkg.in/h2non/gentleman.v2/utils"
)

func main() {
Expand Down
7 changes: 4 additions & 3 deletions _examples/middleware/middleware.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@ package main

import (
"fmt"
"gopkg.in/h2non/gentleman.v1"
"gopkg.in/h2non/gentleman.v1/context"
"gopkg.in/h2non/gentleman.v1/plugins/headers"
"net/url"

"gopkg.in/h2non/gentleman.v2"
"gopkg.in/h2non/gentleman.v2/context"
"gopkg.in/h2non/gentleman.v2/plugins/headers"
)

func main() {
Expand Down
5 changes: 3 additions & 2 deletions _examples/multipart/file.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@ package main

import (
"fmt"
"gopkg.in/h2non/gentleman.v1"
"gopkg.in/h2non/gentleman.v1/plugins/multipart"
"os"

"gopkg.in/h2non/gentleman.v2"
"gopkg.in/h2non/gentleman.v2/plugins/multipart"
)

func main() {
Expand Down
5 changes: 3 additions & 2 deletions _examples/multipart/form.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@ package main

import (
"fmt"
"gopkg.in/h2non/gentleman.v1"
"gopkg.in/h2non/gentleman.v1/plugins/multipart"

"gopkg.in/h2non/gentleman.v2"
"gopkg.in/h2non/gentleman.v2/plugins/multipart"
)

func main() {
Expand Down
7 changes: 4 additions & 3 deletions _examples/multiplexer/composition.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@ package main

import (
"fmt"
"gopkg.in/h2non/gentleman.v1"
"gopkg.in/h2non/gentleman.v1/mux"
"gopkg.in/h2non/gentleman.v1/plugins/url"

"gopkg.in/h2non/gentleman.v2"
"gopkg.in/h2non/gentleman.v2/mux"
"gopkg.in/h2non/gentleman.v2/plugins/url"
)

func main() {
Expand Down
9 changes: 5 additions & 4 deletions _examples/multiplexer/multiplexer.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@ package main

import (
"fmt"
"gopkg.in/h2non/gentleman.v1"
"gopkg.in/h2non/gentleman.v1/context"
"gopkg.in/h2non/gentleman.v1/mux"
"gopkg.in/h2non/gentleman.v1/plugins/url"

"gopkg.in/h2non/gentleman.v2"
"gopkg.in/h2non/gentleman.v2/context"
"gopkg.in/h2non/gentleman.v2/mux"
"gopkg.in/h2non/gentleman.v2/plugins/url"
)

func main() {
Expand Down
5 changes: 3 additions & 2 deletions _examples/params/params.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@ package main

import (
"fmt"
"gopkg.in/h2non/gentleman.v1"
"gopkg.in/h2non/gentleman.v1/plugins/url"

"gopkg.in/h2non/gentleman.v2"
"gopkg.in/h2non/gentleman.v2/plugins/url"
)

func main() {
Expand Down
9 changes: 5 additions & 4 deletions _examples/plugin/plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@ package main

import (
"fmt"
"gopkg.in/h2non/gentleman.v1"
"gopkg.in/h2non/gentleman.v1/context"
"gopkg.in/h2non/gentleman.v1/plugin"
"gopkg.in/h2non/gentleman.v1/plugins/headers"
"net/url"

"gopkg.in/h2non/gentleman.v2"
"gopkg.in/h2non/gentleman.v2/context"
"gopkg.in/h2non/gentleman.v2/plugin"
"gopkg.in/h2non/gentleman.v2/plugins/headers"
)

func main() {
Expand Down
9 changes: 5 additions & 4 deletions _examples/plugin/plugin_phase.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@ package main

import (
"fmt"
"gopkg.in/h2non/gentleman.v1"
"gopkg.in/h2non/gentleman.v1/context"
"gopkg.in/h2non/gentleman.v1/plugin"
"gopkg.in/h2non/gentleman.v1/plugins/headers"

"gopkg.in/h2non/gentleman.v2"
"gopkg.in/h2non/gentleman.v2/context"
"gopkg.in/h2non/gentleman.v2/plugin"
"gopkg.in/h2non/gentleman.v2/plugins/headers"
)

func main() {
Expand Down
7 changes: 4 additions & 3 deletions _examples/query/query.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@ package main

import (
"fmt"
"gopkg.in/h2non/gentleman.v1"
"gopkg.in/h2non/gentleman.v1/plugins/query"
"gopkg.in/h2non/gentleman.v1/plugins/url"

"gopkg.in/h2non/gentleman.v2"
"gopkg.in/h2non/gentleman.v2/plugins/query"
"gopkg.in/h2non/gentleman.v2/plugins/url"
)

func main() {
Expand Down
5 changes: 3 additions & 2 deletions _examples/redirect/redirect.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@ package main

import (
"fmt"
"gopkg.in/h2non/gentleman.v1"
"gopkg.in/h2non/gentleman.v1/plugins/redirect"

"gopkg.in/h2non/gentleman.v2"
"gopkg.in/h2non/gentleman.v2/plugins/redirect"
)

func main() {
Expand Down
3 changes: 2 additions & 1 deletion _examples/response/json.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ package main

import (
"fmt"
"gopkg.in/h2non/gentleman.v1"

"gopkg.in/h2non/gentleman.v2"
)

func main() {
Expand Down
3 changes: 2 additions & 1 deletion _examples/response/string.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ package main

import (
"fmt"
"gopkg.in/h2non/gentleman.v1"

"gopkg.in/h2non/gentleman.v2"
)

func main() {
Expand Down
5 changes: 3 additions & 2 deletions _examples/timeout/timeout.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@ package main

import (
"fmt"
"gopkg.in/h2non/gentleman.v1"
"gopkg.in/h2non/gentleman.v1/plugins/timeout"
"time"

"gopkg.in/h2non/gentleman.v2"
"gopkg.in/h2non/gentleman.v2/plugins/timeout"
)

func main() {
Expand Down
5 changes: 3 additions & 2 deletions _examples/transport/transport.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@ package main

import (
"fmt"
"gopkg.in/h2non/gentleman.v1"
"gopkg.in/h2non/gentleman.v1/plugins/transport"
"net/http"

"gopkg.in/h2non/gentleman.v2"
"gopkg.in/h2non/gentleman.v2/plugins/transport"
)

func main() {
Expand Down
5 changes: 3 additions & 2 deletions _examples/url/url.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@ package main

import (
"fmt"
"gopkg.in/h2non/gentleman.v1"
"gopkg.in/h2non/gentleman.v1/plugins/url"

"gopkg.in/h2non/gentleman.v2"
"gopkg.in/h2non/gentleman.v2/plugins/url"
)

func main() {
Expand Down
12 changes: 6 additions & 6 deletions client.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ package gentleman
import (
"net/http"

"gopkg.in/h2non/gentleman.v1/context"
"gopkg.in/h2non/gentleman.v1/middleware"
"gopkg.in/h2non/gentleman.v1/plugin"
"gopkg.in/h2non/gentleman.v1/plugins/cookies"
"gopkg.in/h2non/gentleman.v1/plugins/headers"
"gopkg.in/h2non/gentleman.v1/plugins/url"
"gopkg.in/h2non/gentleman.v2/context"
"gopkg.in/h2non/gentleman.v2/middleware"
"gopkg.in/h2non/gentleman.v2/plugin"
"gopkg.in/h2non/gentleman.v2/plugins/cookies"
"gopkg.in/h2non/gentleman.v2/plugins/headers"
"gopkg.in/h2non/gentleman.v2/plugins/url"
)

// NewContext is a convenient alias to context.New factory.
Expand Down
2 changes: 1 addition & 1 deletion client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"testing"

"github.com/nbio/st"
"gopkg.in/h2non/gentleman.v1/context"
"gopkg.in/h2non/gentleman.v2/context"
)

func TestClientMiddlewareContext(t *testing.T) {
Expand Down
Loading