pull/10/head v0.23
Hunter Long 2018-06-25 00:09:31 -07:00
parent 849ec6ed8d
commit ac118304b0
4 changed files with 25 additions and 7 deletions

6
api.go
View File

@ -1,12 +1,12 @@
package main
import (
"encoding/json"
"github.com/gorilla/mux"
"net/http"
"crypto/sha1"
"encoding/json"
"fmt"
"github.com/gorilla/mux"
"math/rand"
"net/http"
)
func ApiIndexHandler(w http.ResponseWriter, r *http.Request) {

View File

@ -44,4 +44,23 @@ mv build/$APP-linux-arm64 build/$APP
tar -czvf build/$APP-linux-arm64.tar.gz build/$APP && rm -f build/$APP
mv build/$APP-linux-alpine build/$APP
tar -czvf build/$APP-linux-alpine.tar.gz build/$APP && rm -f build/$APP
tar -czvf build/$APP-linux-alpine.tar.gz build/$APP && rm -f build/$APP
body='{
"request": {
"message": "Updating Homebrew Formula to v'"$VERSION"'",
"branch":"master",
"config": {
"env": {
["VERSION='"$VERSION"'"]
}
}
}}'
curl -s -X POST \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-H "Travis-API-Version: 3" \
-H "Authorization: $TRAVIS_API" \
-d "$body" \
https://api.travis-ci.com/repo/hunterlong%2Fhomebrew-statup/requests

View File

@ -1,8 +1,7 @@
var currentLocation = window.location;
$("#domain_input").val(currentLocation.origin);
function forceLower(strInput)
{
function forceLower(strInput) {
strInput.value=strInput.value.toLowerCase();
}

View File

@ -196,4 +196,4 @@ func CountOnline() int {
}
}
return amount
}
}