Skip to content

Commit

Permalink
tag v5 due to rename pkg
Browse files Browse the repository at this point in the history
  • Loading branch information
Aleksander Mogilko committed Sep 12, 2018
1 parent 3c64934 commit d4f52ab
Show file tree
Hide file tree
Showing 124 changed files with 216 additions and 212 deletions.
6 changes: 4 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ go:

cache: apt

go_import_path: gopkg.in/rethinkdb/rethinkdb-go.v4
go_import_path: gopkg.in/rethinkdb/rethinkdb-go.v5

install: go get -t ./...

Expand All @@ -24,4 +24,6 @@ before_script:
- rethinkdb --port-offset 2 --directory rethinkdb_data2 --join localhost:29016 > /dev/null 2>&1 &
- rethinkdb --port-offset 3 --directory rethinkdb_data3 --join localhost:29016 > /dev/null 2>&1 &

script: go test -tags='cluster' -short -race -v ./...
script:
- go test -race .
- go test -tags='cluster' -short -race -v ./...
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
All notable changes to this project will be documented in this file.
This project adheres to [Semantic Versioning](http://semver.org/).

## v4.2.0 - 2018-09-12
## v5.0.0 - 2018-09-12

- Moved to rethinkdb organization
- Renamed to rethinkdb-go repo
Expand Down
10 changes: 5 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
test:
test -d ${GOPATH}/src/gopkg.in/rethinkdb/rethinkdb-go.v4 && mv ${GOPATH}/src/gopkg.in/rethinkdb/rethinkdb-go.v4 ${GOPATH}/src/gopkg.in/rethinkdb/rethinkdb-go.v4.bak; true
cp -R . ${GOPATH}/src/gopkg.in/rethinkdb/rethinkdb-go.v4
go test -coverprofile=cover.out -race gopkg.in/rethinkdb/rethinkdb-go.v4; true
test -d ${GOPATH}/src/gopkg.in/rethinkdb/rethinkdb-go.v5 && mv ${GOPATH}/src/gopkg.in/rethinkdb/rethinkdb-go.v5 ${GOPATH}/src/gopkg.in/rethinkdb/rethinkdb-go.v5.bak; true
cp -R . ${GOPATH}/src/gopkg.in/rethinkdb/rethinkdb-go.v5
go test -coverprofile=cover.out -race gopkg.in/rethinkdb/rethinkdb-go.v5; true
go tool cover -html=cover.out -o cover.html; true
rm -f cover.out; true
rm -rf ${GOPATH}/src/gopkg.in/rethinkdb/rethinkdb-go.v4
test -d ${GOPATH}/src/gopkg.in/rethinkdb/rethinkdb-go.v4.bak && mv ${GOPATH}/src/gopkg.in/rethinkdb/rethinkdb-go.v4.bak ${GOPATH}/src/gopkg.in/rethinkdb/rethinkdb-go.v4; true
rm -rf ${GOPATH}/src/gopkg.in/rethinkdb/rethinkdb-go.v5
test -d ${GOPATH}/src/gopkg.in/rethinkdb/rethinkdb-go.v5.bak && mv ${GOPATH}/src/gopkg.in/rethinkdb/rethinkdb-go.v5.bak ${GOPATH}/src/gopkg.in/rethinkdb/rethinkdb-go.v5; true
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

![RethinkDB-go Logo](https://raw.github.com/wiki/rethinkdb/rethinkdb-go/gopher-and-thinker-s.png "Golang Gopher and RethinkDB Thinker")

Current version: v4.2.0 (RethinkDB v2.3)
Current version: v5.0.0 (RethinkDB v2.3)

Please note that this version of the driver only supports versions of RethinkDB using the v0.4 protocol (any versions of the driver older than RethinkDB 2.0 will not work).

Expand All @@ -17,10 +17,10 @@ If you need any help you can find me on the [RethinkDB slack](http://slack.rethi
## Installation

```
go get gopkg.in/rethinkdb/rethinkdb-go.v4
go get gopkg.in/rethinkdb/rethinkdb-go.v5
```

Replace `v4` with `v3` or `v2` to use previous versions.
Replace `v5` with `v4` or `v3` to use previous versions.

## Example

Expand All @@ -32,7 +32,7 @@ import (
"fmt"
"log"

r "gopkg.in/rethinkdb/rethinkdb-go.v4"
r "gopkg.in/rethinkdb/rethinkdb-go.v5"
)

func Example() {
Expand Down
2 changes: 1 addition & 1 deletion connection.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
"github.com/opentracing/opentracing-go/ext"
"github.com/opentracing/opentracing-go/log"
"golang.org/x/net/context"
p "gopkg.in/rethinkdb/rethinkdb-go.v4/ql2"
p "gopkg.in/rethinkdb/rethinkdb-go.v5/ql2"
"sync"
)

Expand Down
2 changes: 1 addition & 1 deletion connection_handshake.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import (

"golang.org/x/crypto/pbkdf2"

p "gopkg.in/rethinkdb/rethinkdb-go.v4/ql2"
p "gopkg.in/rethinkdb/rethinkdb-go.v5/ql2"
)

type HandshakeVersion int
Expand Down
2 changes: 1 addition & 1 deletion connection_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"github.com/opentracing/opentracing-go/mocktracer"
"golang.org/x/net/context"
test "gopkg.in/check.v1"
p "gopkg.in/rethinkdb/rethinkdb-go.v4/ql2"
p "gopkg.in/rethinkdb/rethinkdb-go.v5/ql2"
"io"
"time"
)
Expand Down
4 changes: 2 additions & 2 deletions cursor.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import (

"github.com/opentracing/opentracing-go"
"golang.org/x/net/context"
"gopkg.in/rethinkdb/rethinkdb-go.v4/encoding"
p "gopkg.in/rethinkdb/rethinkdb-go.v4/ql2"
"gopkg.in/rethinkdb/rethinkdb-go.v5/encoding"
p "gopkg.in/rethinkdb/rethinkdb-go.v5/ql2"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion encoding/encoder_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -543,7 +543,7 @@ func TestEncodeCustomRootTypeEncodingError(t *testing.T) {
if err == nil {
t.Errorf("got nil error, expected %v", cerr)
}
if err != cerr {
if err != cerr {
t.Errorf("got %q, want %q", err, cerr)
}
}
10 changes: 5 additions & 5 deletions encoding/tags.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ var (
)

const (
TagName = "rethinkdb"
OldTagName = "gorethink"
JSONTagName = "json"
RefTagName = "rethinkdb_ref"
OldRefTagName = "gorethink_ref"
TagName = "rethinkdb"
OldTagName = "gorethink"
JSONTagName = "json"
RefTagName = "rethinkdb_ref"
OldRefTagName = "gorethink_ref"
)

// tagOptions is the string following a comma in a struct field's
Expand Down
2 changes: 1 addition & 1 deletion errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"fmt"
"strings"

p "gopkg.in/rethinkdb/rethinkdb-go.v4/ql2"
p "gopkg.in/rethinkdb/rethinkdb-go.v5/ql2"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module gopkg.in/rethinkdb/rethinkdb-go.v4
module gopkg.in/rethinkdb/rethinkdb-go.v5

require (
github.com/cenkalti/backoff v2.0.0+incompatible
Expand Down
4 changes: 2 additions & 2 deletions internal/integration/reql_tests/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import (
"time"

"github.com/stretchr/testify/suite"
r "gopkg.in/rethinkdb/rethinkdb-go.v4"
"gopkg.in/rethinkdb/rethinkdb-go.v4/internal/compare"
r "gopkg.in/rethinkdb/rethinkdb-go.v5"
"gopkg.in/rethinkdb/rethinkdb-go.v5/internal/compare"
)

func maybeRun(query interface{}, session *r.Session, opts r.RunOpts) interface{} {
Expand Down
2 changes: 1 addition & 1 deletion internal/integration/reql_tests/gorethink_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"flag"
"os"

r "gopkg.in/rethinkdb/rethinkdb-go.v4"
r "gopkg.in/rethinkdb/rethinkdb-go.v5"
)

var url string
Expand Down
6 changes: 3 additions & 3 deletions internal/integration/reql_tests/reql_aggregation_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions internal/integration/reql_tests/reql_changefeeds_edge_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 5 additions & 3 deletions internal/integration/reql_tests/reql_control_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions internal/integration/reql_tests/reql_datum_array_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions internal/integration/reql_tests/reql_datum_binary_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions internal/integration/reql_tests/reql_datum_bool_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions internal/integration/reql_tests/reql_datum_null_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions internal/integration/reql_tests/reql_datum_number_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions internal/integration/reql_tests/reql_datum_object_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions internal/integration/reql_tests/reql_datum_string_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions internal/integration/reql_tests/reql_datum_typeof_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions internal/integration/reql_tests/reql_datum_uuid_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions internal/integration/reql_tests/reql_default_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions internal/integration/reql_tests/reql_geo_constructors_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions internal/integration/reql_tests/reql_geo_geojson_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit d4f52ab

Please sign in to comment.