Merge pull request #105 from go-redis/chore/redis-v3

Release redis.v3 beta.
This commit is contained in:
Vladimir Mihailenco 2015-05-15 13:01:46 +03:00
commit 3530941b1d
13 changed files with 21 additions and 18 deletions

View File

@ -13,5 +13,5 @@ install:
- go get github.com/onsi/ginkgo - go get github.com/onsi/ginkgo
- go get github.com/onsi/gomega - go get github.com/onsi/gomega
- mkdir -p $HOME/gopath/src/gopkg.in - mkdir -p $HOME/gopath/src/gopkg.in
- mv $HOME/gopath/src/github.com/go-redis/redis $HOME/gopath/src/gopkg.in/redis.v2 - mv $HOME/gopath/src/github.com/go-redis/redis $HOME/gopath/src/gopkg.in/redis.v3
- cd $HOME/gopath/src/gopkg.in/redis.v2 - cd $HOME/gopath/src/gopkg.in/redis.v3

View File

@ -10,7 +10,7 @@ import (
. "github.com/onsi/ginkgo" . "github.com/onsi/ginkgo"
. "github.com/onsi/gomega" . "github.com/onsi/gomega"
"gopkg.in/redis.v2" "gopkg.in/redis.v3"
) )
type clusterScenario struct { type clusterScenario struct {

View File

@ -8,7 +8,8 @@ import (
. "github.com/onsi/ginkgo" . "github.com/onsi/ginkgo"
. "github.com/onsi/gomega" . "github.com/onsi/gomega"
"gopkg.in/redis.v2"
"gopkg.in/redis.v3"
) )
var _ = Describe("Command", func() { var _ = Describe("Command", func() {

View File

@ -9,7 +9,8 @@ import (
. "github.com/onsi/ginkgo" . "github.com/onsi/ginkgo"
. "github.com/onsi/gomega" . "github.com/onsi/gomega"
"gopkg.in/redis.v2"
"gopkg.in/redis.v3"
) )
var _ = Describe("Commands", func() { var _ = Describe("Commands", func() {

View File

@ -4,7 +4,7 @@ import (
"fmt" "fmt"
"strconv" "strconv"
"gopkg.in/redis.v2" "gopkg.in/redis.v3"
) )
var client *redis.Client var client *redis.Client

View File

@ -14,7 +14,7 @@ import (
. "github.com/onsi/ginkgo" . "github.com/onsi/ginkgo"
. "github.com/onsi/gomega" . "github.com/onsi/gomega"
"gopkg.in/redis.v2" "gopkg.in/redis.v3"
) )
const redisAddr = ":6379" const redisAddr = ":6379"
@ -67,7 +67,7 @@ var _ = AfterSuite(func() {
func TestGinkgoSuite(t *testing.T) { func TestGinkgoSuite(t *testing.T) {
RegisterFailHandler(Fail) RegisterFailHandler(Fail)
RunSpecs(t, "gopkg.in/redis.v2") RunSpecs(t, "gopkg.in/redis.v3")
} }
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------

View File

@ -1,10 +1,10 @@
package redis_test package redis_test
import ( import (
"gopkg.in/redis.v2"
. "github.com/onsi/ginkgo" . "github.com/onsi/ginkgo"
. "github.com/onsi/gomega" . "github.com/onsi/gomega"
"gopkg.in/redis.v3"
) )
var _ = Describe("Multi", func() { var _ = Describe("Multi", func() {

View File

@ -4,10 +4,10 @@ import (
"strconv" "strconv"
"sync" "sync"
"gopkg.in/redis.v2"
. "github.com/onsi/ginkgo" . "github.com/onsi/ginkgo"
. "github.com/onsi/gomega" . "github.com/onsi/gomega"
"gopkg.in/redis.v3"
) )
var _ = Describe("Pipelining", func() { var _ = Describe("Pipelining", func() {

View File

@ -8,7 +8,7 @@ import (
. "github.com/onsi/ginkgo" . "github.com/onsi/ginkgo"
. "github.com/onsi/gomega" . "github.com/onsi/gomega"
"gopkg.in/redis.v2" "gopkg.in/redis.v3"
) )
var _ = Describe("Pool", func() { var _ = Describe("Pool", func() {

View File

@ -4,10 +4,10 @@ import (
"net" "net"
"time" "time"
"gopkg.in/redis.v2"
. "github.com/onsi/ginkgo" . "github.com/onsi/ginkgo"
. "github.com/onsi/gomega" . "github.com/onsi/gomega"
"gopkg.in/redis.v3"
) )
var _ = Describe("PubSub", func() { var _ = Describe("PubSub", func() {

View File

@ -1,4 +1,4 @@
package redis // import "gopkg.in/redis.v2" package redis // import "gopkg.in/redis.v3"
import ( import (
"log" "log"

View File

@ -8,7 +8,7 @@ import (
. "github.com/onsi/ginkgo" . "github.com/onsi/ginkgo"
. "github.com/onsi/gomega" . "github.com/onsi/gomega"
"gopkg.in/redis.v2" "gopkg.in/redis.v3"
) )
var _ = Describe("Client", func() { var _ = Describe("Client", func() {

View File

@ -3,7 +3,8 @@ package redis_test
import ( import (
. "github.com/onsi/ginkgo" . "github.com/onsi/ginkgo"
. "github.com/onsi/gomega" . "github.com/onsi/gomega"
"gopkg.in/redis.v2"
"gopkg.in/redis.v3"
) )
var _ = Describe("Sentinel", func() { var _ = Describe("Sentinel", func() {