Skip to content
This repository was archived by the owner on Dec 20, 2018. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .godir
Original file line number Diff line number Diff line change
@@ -1 +1 @@
github.com/jbowes/buckler
github.com/gittip/img.shields.io
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
language: go
go: 1.1
go: 1.2

script:
- go test -v
- go test -v ./...
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# ⛨ Buckler ⛨

[![Build Status](https://travis-ci.org/jbowes/buckler.png)](https://travis-ci.org/jbowes/buckler)
[![Build Status](https://travis-ci.org/gittip/img.shields.io.png)](https://travis-ci.org/gittip/img.shields.io)
[![Buckler Shield](http://b.repl.ca/v1/use-buckler-blue.png)](http://buckler.repl.ca)
[![Get Hype](http://b.repl.ca/v1/GET-HYPE!-orange.png)](http://buckler.repl.ca)
[![MIT License](http://b.repl.ca/v1/License-MIT-red.png)](LICENSE)
Expand Down Expand Up @@ -74,7 +74,7 @@ Play around with the simple form on [b.repl.ca](http://b.repl.ca)
# Installing

```bash
go get github.com/jbowes/buckler
go get github.com/gittip/img.shields.io
```

Alternatively, `git clone` and `go build` to run from source.
Expand Down
6 changes: 3 additions & 3 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
)

var (
wsReplacer = strings.NewReplacer("__", "_", "_", " ")
wsReplacer = strings.NewReplacer("__", "_", "_", " ")
revWsReplacer = strings.NewReplacer(" ", "_", "_", "__", "-", "--")

// set last modifed to server startup. close enough to release.
Expand Down Expand Up @@ -109,7 +109,7 @@ func buckle(w http.ResponseWriter, r *http.Request) {
makePngShield(w, d)
}

const basePkg = "github.com/jbowes/buckler"
const basePkg = "github.com/gittip/img.shields.io"

func index(w http.ResponseWriter, r *http.Request) {
http.ServeFile(w, r, filepath.Join(staticPath, "index.html"))
Expand Down Expand Up @@ -139,7 +139,7 @@ func cliMode(vendor string, status string, color string, args []string) {
d := Data{vendor, status, c}

name := fmt.Sprintf("%s-%s-%s.png", revWsReplacer.Replace(vendor),
revWsReplacer.Replace(status), color);
revWsReplacer.Replace(status), color)

if len(args) > 1 {
fatal("You can only specify one output file name")
Expand Down