Skip to content

Commit ac281cf

Browse files
committed
feat(version): bump to 1.0.0
1 parent 1baf36a commit ac281cf

33 files changed

+44
-32
lines changed

.travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ go:
77

88
before_install:
99
- go get -u github.com/nbio/st
10-
- go get -u gopkg.in/h2non/gock.v0
10+
- go get -u gopkg.in/h2non/gock.v1
1111
- go get -u gopkg.in/h2non/gentleman.v0
1212
- go get -u -v github.com/axw/gocov/gocov
1313
- go get -u -v github.com/mattn/goveralls

History.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 1.0.0 / 19-04-2016
2+
3+
- feat(version): first major version release.
4+
15
## 0.1.6 / 19-04-2016
26

37
- fix(#7): if error configured, RoundTripper should reply with `nil` response.

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Take a look to the [examples](#examples) to get started.
2727
## Installation
2828

2929
```bash
30-
go get -u gopkg.in/h2non/gock.v0
30+
go get -u gopkg.in/h2non/gock.v1
3131
```
3232

3333
## API

_examples/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ go get -u github.com/nbio/st
99
```
1010

1111
```bash
12-
go get -u gopkg.in/h2non/gock.v0
12+
go get -u gopkg.in/h2non/gock.v1
1313
```
1414

1515
### Usage

_examples/add_matchers/matchers.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package main
22

33
import (
44
"fmt"
5-
"gopkg.in/h2non/gock.v0"
5+
"gopkg.in/h2non/gock.v1"
66
"net/http"
77
)
88

_examples/basic/basic_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package test
22

33
import (
44
"github.com/nbio/st"
5-
"gopkg.in/h2non/gock.v0"
5+
"gopkg.in/h2non/gock.v1"
66
"io/ioutil"
77
"net/http"
88
"testing"

_examples/body_file/file_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package test
33
import (
44
"bytes"
55
"github.com/nbio/st"
6-
"gopkg.in/h2non/gock.v0"
6+
"gopkg.in/h2non/gock.v1"
77
"io/ioutil"
88
"net/http"
99
"testing"

_examples/body_match/body_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package test
33
import (
44
"bytes"
55
"github.com/nbio/st"
6-
"gopkg.in/h2non/gock.v0"
6+
"gopkg.in/h2non/gock.v1"
77
"io/ioutil"
88
"net/http"
99
"testing"

_examples/clean/clean.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package main
22

33
import (
44
"fmt"
5-
"gopkg.in/h2non/gock.v0"
5+
"gopkg.in/h2non/gock.v1"
66
"net/http"
77
)
88

_examples/custom_client/client_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package test
22

33
import (
44
"github.com/nbio/st"
5-
"gopkg.in/h2non/gock.v0"
5+
"gopkg.in/h2non/gock.v1"
66
"io/ioutil"
77
"net/http"
88
"testing"

_examples/custom_matcher/matcher.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package main
22

33
import (
44
"fmt"
5-
"gopkg.in/h2non/gock.v0"
5+
"gopkg.in/h2non/gock.v1"
66
"net/http"
77
)
88

_examples/filters/filter.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package main
22

33
import (
44
"fmt"
5-
"gopkg.in/h2non/gock.v0"
5+
"gopkg.in/h2non/gock.v1"
66
"net/http"
77
)
88

_examples/gentleman/gentleman.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"fmt"
55
"gopkg.in/h2non/gentleman.v0"
66
"gopkg.in/h2non/gentleman.v0/context"
7-
"gopkg.in/h2non/gock.v0"
7+
"gopkg.in/h2non/gock.v1"
88
)
99

1010
// Usege example with gentleman HTTP client toolkit.

_examples/mapper/map.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package main
22

33
import (
44
"fmt"
5-
"gopkg.in/h2non/gock.v0"
5+
"gopkg.in/h2non/gock.v1"
66
"net/http"
77
)
88

_examples/match_headers/headers_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package test
22

33
import (
44
"github.com/nbio/st"
5-
"gopkg.in/h2non/gock.v0"
5+
"gopkg.in/h2non/gock.v1"
66
"io/ioutil"
77
"net/http"
88
"testing"

_examples/match_query/query_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package test
22

33
import (
44
"github.com/nbio/st"
5-
"gopkg.in/h2non/gock.v0"
5+
"gopkg.in/h2non/gock.v1"
66
"io/ioutil"
77
"net/http"
88
"testing"

_examples/match_url/url_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package test
22

33
import (
44
"github.com/nbio/st"
5-
"gopkg.in/h2non/gock.v0"
5+
"gopkg.in/h2non/gock.v1"
66
"io/ioutil"
77
"net/http"
88
"testing"

_examples/multiple/multiple_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package test
22

33
import (
44
"github.com/nbio/st"
5-
"gopkg.in/h2non/gock.v0"
5+
"gopkg.in/h2non/gock.v1"
66
"io/ioutil"
77
"net/http"
88
"testing"

_examples/networking/networking.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package main
22

33
import (
44
"fmt"
5-
"gopkg.in/h2non/gock.v0"
5+
"gopkg.in/h2non/gock.v1"
66
"io/ioutil"
77
"net/http"
88
)

_examples/networking_filters/filters.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package main
22

33
import (
44
"fmt"
5-
"gopkg.in/h2non/gock.v0"
5+
"gopkg.in/h2non/gock.v1"
66
"io/ioutil"
77
"net/http"
88
)

_examples/pending/pending.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package main
22

33
import (
44
"fmt"
5-
"gopkg.in/h2non/gock.v0"
5+
"gopkg.in/h2non/gock.v1"
66
"net/http"
77
)
88

_examples/persistent/persistent_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package test
22

33
import (
44
"github.com/nbio/st"
5-
"gopkg.in/h2non/gock.v0"
5+
"gopkg.in/h2non/gock.v1"
66
"io/ioutil"
77
"net/http"
88
"testing"

_examples/persistent/times_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package test
22

33
import (
44
"github.com/nbio/st"
5-
"gopkg.in/h2non/gock.v0"
5+
"gopkg.in/h2non/gock.v1"
66
"io/ioutil"
77
"net/http"
88
"testing"

_examples/regexp_matching/regexp_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package test
33
import (
44
"bytes"
55
"github.com/nbio/st"
6-
"gopkg.in/h2non/gock.v0"
6+
"gopkg.in/h2non/gock.v1"
77
"io/ioutil"
88
"net/http"
99
"testing"

gock_test.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,13 @@ package gock
33
import (
44
"bytes"
55
"fmt"
6-
"github.com/nbio/st"
76
"io/ioutil"
87
"net/http"
98
"net/http/httptest"
109
"strings"
1110
"testing"
11+
12+
"github.com/nbio/st"
1213
)
1314

1415
func TestMockSimple(t *testing.T) {

matcher_test.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
package gock
22

33
import (
4-
"github.com/nbio/st"
54
"net/http"
65
"net/url"
76
"testing"
7+
8+
"github.com/nbio/st"
89
)
910

1011
func TestNewMatcher(t *testing.T) {

matchers_test.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
package gock
22

33
import (
4-
"github.com/nbio/st"
54
"net/http"
65
"net/url"
76
"testing"
7+
8+
"github.com/nbio/st"
89
)
910

1011
func TestMatchMethod(t *testing.T) {

mock_test.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
package gock
22

33
import (
4-
"github.com/nbio/st"
54
"net/http"
65
"testing"
6+
7+
"github.com/nbio/st"
78
)
89

910
func TestNewMock(t *testing.T) {

request_test.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,11 @@ package gock
22

33
import (
44
"bytes"
5-
"github.com/nbio/st"
65
"net/http"
76
"net/url"
87
"testing"
8+
9+
"github.com/nbio/st"
910
)
1011

1112
func TestNewRequest(t *testing.T) {

response_test.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,11 @@ package gock
33
import (
44
"bytes"
55
"errors"
6-
"github.com/nbio/st"
76
"net/http"
87
"testing"
98
"time"
9+
10+
"github.com/nbio/st"
1011
)
1112

1213
func TestNewResponse(t *testing.T) {

store_test.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
package gock
22

33
import (
4-
"github.com/nbio/st"
54
"testing"
5+
6+
"github.com/nbio/st"
67
)
78

89
func TestStoreRegister(t *testing.T) {

transport_test.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,12 @@ package gock
22

33
import (
44
"fmt"
5-
"github.com/nbio/st"
65
"net/http"
76
"net/http/httptest"
87
"net/url"
98
"testing"
9+
10+
"github.com/nbio/st"
1011
)
1112

1213
func TestTransportMatch(t *testing.T) {

version.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
package gock
22

33
// Version defines the current package semantic version.
4-
const Version = "0.1.6"
4+
const Version = "1.0.0"

0 commit comments

Comments
 (0)