mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Replaced slug dependency with one that did not use gopkgs.com
This commit is contained in:
parent
7064d87106
commit
4fd2c0570c
18
Godeps/Godeps.json
generated
18
Godeps/Godeps.json
generated
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"ImportPath": "github.com/grafana/grafana",
|
"ImportPath": "github.com/grafana/grafana",
|
||||||
"GoVersion": "go1.4.2",
|
"GoVersion": "go1.3",
|
||||||
"Packages": [
|
"Packages": [
|
||||||
"./pkg/..."
|
"./pkg/..."
|
||||||
],
|
],
|
||||||
@ -13,6 +13,14 @@
|
|||||||
"ImportPath": "github.com/Unknwon/macaron",
|
"ImportPath": "github.com/Unknwon/macaron",
|
||||||
"Rev": "93de4f3fad97bf246b838f828e2348f46f21f20a"
|
"Rev": "93de4f3fad97bf246b838f828e2348f46f21f20a"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"ImportPath": "github.com/dalu/slug",
|
||||||
|
"Rev": "6dbd13912e9be466e2c1de349a2c7d1466c97e07"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"ImportPath": "github.com/dalu/unidecode",
|
||||||
|
"Rev": "339814d47f3e32a6f7036a0a4c56ed9b373dd755"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "github.com/go-sql-driver/mysql",
|
"ImportPath": "github.com/go-sql-driver/mysql",
|
||||||
"Comment": "v1.2-26-g9543750",
|
"Comment": "v1.2-26-g9543750",
|
||||||
@ -27,10 +35,6 @@
|
|||||||
"Comment": "v0.4.2-58-ge2889e5",
|
"Comment": "v0.4.2-58-ge2889e5",
|
||||||
"Rev": "e2889e5517600b82905f1d2ba8b70deb71823ffe"
|
"Rev": "e2889e5517600b82905f1d2ba8b70deb71823ffe"
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"ImportPath": "github.com/gosimple/slug",
|
|
||||||
"Rev": "a2392a4a87fa0366cbff131d3fd421f83f52492f"
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"ImportPath": "github.com/jtolds/gls",
|
"ImportPath": "github.com/jtolds/gls",
|
||||||
"Rev": "f1ac7f4f24f50328e6bc838ca4437d1612a0243c"
|
"Rev": "f1ac7f4f24f50328e6bc838ca4437d1612a0243c"
|
||||||
@ -87,10 +91,6 @@
|
|||||||
{
|
{
|
||||||
"ImportPath": "gopkgs.com/pool.v1",
|
"ImportPath": "gopkgs.com/pool.v1",
|
||||||
"Rev": "c850f092aad1780cbffff25f471c5cc32097932a"
|
"Rev": "c850f092aad1780cbffff25f471c5cc32097932a"
|
||||||
},
|
|
||||||
{
|
|
||||||
"ImportPath": "gopkgs.com/unidecode.v1",
|
|
||||||
"Rev": "4deae2c05236b41cc39f8144ac87a837ba974d40"
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
@ -4,10 +4,9 @@ slug
|
|||||||
Package `slug` generate slug from unicode string, URL-friendly slugify with
|
Package `slug` generate slug from unicode string, URL-friendly slugify with
|
||||||
multiple languages support.
|
multiple languages support.
|
||||||
|
|
||||||
[](https://godoc.org/github.com/gosimple/slug)
|
[](https://godoc.org/github.com/dalu/slug)
|
||||||
[](https://drone.io/github.com/gosimple/slug/latest)
|
|
||||||
|
|
||||||
[Documentation online](http://godoc.org/github.com/gosimple/slug)
|
[Documentation online](http://godoc.org/github.com/dalu/slug)
|
||||||
|
|
||||||
## Example
|
## Example
|
||||||
|
|
||||||
@ -38,12 +37,9 @@ multiple languages support.
|
|||||||
fmt.Println(textSub) // Will print 'sand-is-hot'
|
fmt.Println(textSub) // Will print 'sand-is-hot'
|
||||||
}
|
}
|
||||||
|
|
||||||
### Requests or bugs?
|
|
||||||
<https://github.com/gosimple/slug/issues>
|
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
go get -u github.com/gosimple/slug
|
go get -u github.com/dalu/slug
|
||||||
|
|
||||||
## License
|
## License
|
||||||
|
|
@ -12,7 +12,7 @@ Example:
|
|||||||
package main
|
package main
|
||||||
|
|
||||||
import(
|
import(
|
||||||
"github.com/gosimple/slug"
|
"github.com/dalu/slug"
|
||||||
"fmt"
|
"fmt"
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -35,9 +35,5 @@ Example:
|
|||||||
textSub := slug.Make("water is hot")
|
textSub := slug.Make("water is hot")
|
||||||
fmt.Println(textSub) // Will print 'sand-is-hot'
|
fmt.Println(textSub) // Will print 'sand-is-hot'
|
||||||
}
|
}
|
||||||
|
|
||||||
Requests or bugs?
|
|
||||||
|
|
||||||
https://github.com/gosimple/slug/issues
|
|
||||||
*/
|
*/
|
||||||
package slug
|
package slug
|
@ -6,7 +6,7 @@
|
|||||||
package slug
|
package slug
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"gopkgs.com/unidecode.v1"
|
"github.com/dalu/unidecode"
|
||||||
"regexp"
|
"regexp"
|
||||||
"strings"
|
"strings"
|
||||||
)
|
)
|
@ -3,10 +3,4 @@ unidecode
|
|||||||
|
|
||||||
Unicode transliterator in Golang - Replaces non-ASCII characters with their ASCII approximations.
|
Unicode transliterator in Golang - Replaces non-ASCII characters with their ASCII approximations.
|
||||||
|
|
||||||
Please, use the following import path to ensure a stable API:
|
|
||||||
|
|
||||||
```go
|
|
||||||
import "gopkgs.com/unidecode.v1"
|
|
||||||
```
|
|
||||||
|
|
||||||
View other available versions, documentation and examples at http://gopkgs.com/unidecode
|
View other available versions, documentation and examples at http://gopkgs.com/unidecode
|
2
Godeps/_workspace/src/github.com/gosimple/slug/.gitignore
generated
vendored
2
Godeps/_workspace/src/github.com/gosimple/slug/.gitignore
generated
vendored
@ -1,2 +0,0 @@
|
|||||||
_*
|
|
||||||
cover*.out
|
|
24
Godeps/_workspace/src/gopkgs.com/unidecode.v1/gopkgs.go
generated
vendored
24
Godeps/_workspace/src/gopkgs.com/unidecode.v1/gopkgs.go
generated
vendored
@ -1,24 +0,0 @@
|
|||||||
package unidecode
|
|
||||||
|
|
||||||
import (
|
|
||||||
"fmt"
|
|
||||||
"reflect"
|
|
||||||
)
|
|
||||||
|
|
||||||
// gopkgs.go: v1
|
|
||||||
|
|
||||||
// NOTE: This file is autogenerated by gopkgs.com.
|
|
||||||
const (
|
|
||||||
goPkgsSrcPath = "github.com/rainycape/unidecode"
|
|
||||||
goPkgsName = "unidecode"
|
|
||||||
goPkgsErrFmt = "invalid import path %s - please use gopkgs.com/%s.v1 or see http://gopkgs.com/%s"
|
|
||||||
)
|
|
||||||
|
|
||||||
type goPkgsCheck struct{}
|
|
||||||
|
|
||||||
func init() {
|
|
||||||
typ := reflect.TypeOf(goPkgsCheck{})
|
|
||||||
if typ.PkgPath() == goPkgsSrcPath {
|
|
||||||
panic(fmt.Errorf(goPkgsErrFmt, typ.PkgPath(), goPkgsName, goPkgsName))
|
|
||||||
}
|
|
||||||
}
|
|
@ -5,7 +5,7 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/gosimple/slug"
|
"github.com/dalu/slug"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Typed errors
|
// Typed errors
|
||||||
|
Loading…
Reference in New Issue
Block a user