1
0
mirror of https://github.com/volatiletech/authboss.git synced 2025-09-16 09:06:20 +02:00

Fix imports

This commit is contained in:
Aaron L
2016-12-19 22:45:52 -08:00
parent 97be009b78
commit f3eba05359
21 changed files with 39 additions and 39 deletions

View File

@@ -7,8 +7,8 @@ import (
"net/http"
"golang.org/x/crypto/bcrypt"
"gopkg.in/authboss.v0"
"gopkg.in/authboss.v0/internal/response"
"gopkg.in/authboss.v1"
"gopkg.in/authboss.v1/internal/response"
)
const (

View File

@@ -10,8 +10,8 @@ import (
"strings"
"testing"
"gopkg.in/authboss.v0"
"gopkg.in/authboss.v0/internal/mocks"
"gopkg.in/authboss.v1"
"gopkg.in/authboss.v1/internal/mocks"
)
func testSetup() (a *Auth, s *mocks.MockStorer) {

View File

@@ -4,7 +4,7 @@ remove as much boilerplate and "hard things" as possible so that each time you
start a new web project in Go, you can plug it in, configure and be off to the
races without having to think about how to store passwords or remember tokens.
*/
package authboss // import "gopkg.in/authboss.v0"
package authboss // import "gopkg.in/authboss.v1"
import (
"database/sql"

View File

@@ -4,21 +4,21 @@ machine:
checkout:
post:
- mkdir -p /home/ubuntu/.go_project/src/gopkg.in
- ln -s /home/ubuntu/authboss /home/ubuntu/.go_project/src/gopkg.in/authboss.v0
- ln -s /home/ubuntu/authboss /home/ubuntu/.go_project/src/gopkg.in/authboss.v1
dependencies:
override:
- cd /home/ubuntu/.go_project/src/gopkg.in/authboss.v0 && go get -t -d -v ./...
- cd /home/ubuntu/.go_project/src/gopkg.in/authboss.v0 && go build -v
- cd /home/ubuntu/.go_project/src/gopkg.in/authboss.v1 && go get -t -d -v ./...
- cd /home/ubuntu/.go_project/src/gopkg.in/authboss.v1 && go build -v
test:
pre:
- go get github.com/jstemmer/go-junit-report
- go get github.com/mattn/goveralls
override:
- >
cd /home/ubuntu/.go_project/src/gopkg.in/authboss.v0 &&
cd /home/ubuntu/.go_project/src/gopkg.in/authboss.v1 &&
go test -v -race ./... > $CIRCLE_ARTIFACTS/gotest.txt
- >
cd /home/ubuntu/.go_project/src/gopkg.in/authboss.v0 &&
cd /home/ubuntu/.go_project/src/gopkg.in/authboss.v1 &&
echo "mode: set" > $CIRCLE_ARTIFACTS/coverage.txt &&
for i in $(go list ./...); do
rm -f coverage.tmp;
@@ -29,6 +29,6 @@ test:
- cat $CIRCLE_ARTIFACTS/gotest.txt | /home/ubuntu/.go_project/bin/go-junit-report > $CIRCLE_TEST_REPORTS/junit.xml
- >
if [ -n "$COVERALLS_TOKEN" ]; then
cd /home/ubuntu/.go_project/src/gopkg.in/authboss.v0 &&
cd /home/ubuntu/.go_project/src/gopkg.in/authboss.v1 &&
/home/ubuntu/.go_project/bin/goveralls -coverprofile=$CIRCLE_ARTIFACTS/coverage.txt -service=circle-ci -repotoken=$COVERALLS_TOKEN;
fi

View File

@@ -11,8 +11,8 @@ import (
"net/url"
"path"
"gopkg.in/authboss.v0"
"gopkg.in/authboss.v0/internal/response"
"gopkg.in/authboss.v1"
"gopkg.in/authboss.v1/internal/response"
)
// Storer and FormValue constants

View File

@@ -12,8 +12,8 @@ import (
"strings"
"testing"
"gopkg.in/authboss.v0"
"gopkg.in/authboss.v0/internal/mocks"
"gopkg.in/authboss.v1"
"gopkg.in/authboss.v1/internal/mocks"
)
func setup() *Confirm {

View File

@@ -9,7 +9,7 @@ import (
"strings"
"time"
"gopkg.in/authboss.v0"
"gopkg.in/authboss.v1"
)
// MockUser represents all possible fields a authboss User may have

View File

@@ -15,7 +15,7 @@ import (
"path/filepath"
"strings"
"gopkg.in/authboss.v0"
"gopkg.in/authboss.v1"
)
var (

View File

@@ -9,8 +9,8 @@ import (
"path/filepath"
"testing"
"gopkg.in/authboss.v0"
"gopkg.in/authboss.v0/internal/mocks"
"gopkg.in/authboss.v1"
"gopkg.in/authboss.v1/internal/mocks"
)
var testViewTemplate = template.Must(template.New("").Parse(`{{.external}} {{.fun}} {{.flash_success}} {{.flash_error}} {{.xsrfName}} {{.xsrfToken}}`))

View File

@@ -5,7 +5,7 @@ import (
"errors"
"time"
"gopkg.in/authboss.v0"
"gopkg.in/authboss.v1"
)
// Storage key constants

View File

@@ -4,8 +4,8 @@ import (
"testing"
"time"
"gopkg.in/authboss.v0"
"gopkg.in/authboss.v0/internal/mocks"
"gopkg.in/authboss.v1"
"gopkg.in/authboss.v1/internal/mocks"
)
func TestStorage(t *testing.T) {

View File

@@ -13,8 +13,8 @@ import (
"strings"
"golang.org/x/oauth2"
"gopkg.in/authboss.v0"
"gopkg.in/authboss.v0/internal/response"
"gopkg.in/authboss.v1"
"gopkg.in/authboss.v1/internal/response"
)
var (

View File

@@ -14,8 +14,8 @@ import (
"golang.org/x/oauth2"
"golang.org/x/oauth2/facebook"
"golang.org/x/oauth2/google"
"gopkg.in/authboss.v0"
"gopkg.in/authboss.v0/internal/mocks"
"gopkg.in/authboss.v1"
"gopkg.in/authboss.v1/internal/mocks"
)
var testProviders = map[string]authboss.OAuth2Provider{

View File

@@ -6,7 +6,7 @@ import (
"golang.org/x/net/context"
"golang.org/x/oauth2"
"gopkg.in/authboss.v0"
"gopkg.in/authboss.v1"
)
const (

View File

@@ -9,7 +9,7 @@ import (
"golang.org/x/net/context"
"golang.org/x/oauth2"
"gopkg.in/authboss.v0"
"gopkg.in/authboss.v1"
)
func TestGoogle(t *testing.T) {

View File

@@ -13,8 +13,8 @@ import (
"time"
"golang.org/x/crypto/bcrypt"
"gopkg.in/authboss.v0"
"gopkg.in/authboss.v0/internal/response"
"gopkg.in/authboss.v1"
"gopkg.in/authboss.v1/internal/response"
)
// Storage constants

View File

@@ -12,8 +12,8 @@ import (
"testing"
"time"
"gopkg.in/authboss.v0"
"gopkg.in/authboss.v0/internal/mocks"
"gopkg.in/authboss.v1"
"gopkg.in/authboss.v1/internal/mocks"
)
const (

View File

@@ -6,8 +6,8 @@ import (
"net/http"
"golang.org/x/crypto/bcrypt"
"gopkg.in/authboss.v0"
"gopkg.in/authboss.v0/internal/response"
"gopkg.in/authboss.v1"
"gopkg.in/authboss.v1/internal/response"
)
const (

View File

@@ -9,8 +9,8 @@ import (
"strings"
"testing"
"gopkg.in/authboss.v0"
"gopkg.in/authboss.v0/internal/mocks"
"gopkg.in/authboss.v1"
"gopkg.in/authboss.v1/internal/mocks"
)
func setup() *Register {

View File

@@ -10,7 +10,7 @@ import (
"errors"
"fmt"
"gopkg.in/authboss.v0"
"gopkg.in/authboss.v1"
)
const (

View File

@@ -5,8 +5,8 @@ import (
"net/http"
"testing"
"gopkg.in/authboss.v0"
"gopkg.in/authboss.v0/internal/mocks"
"gopkg.in/authboss.v1"
"gopkg.in/authboss.v1/internal/mocks"
)
func TestInitialize(t *testing.T) {