From c5eb808b53cd47a60f622fd571bdfdef5b3b5c9f Mon Sep 17 00:00:00 2001 From: Tommi Virtanen Date: Sat, 18 Aug 2012 18:47:56 -0700 Subject: [PATCH 1/3] Go is UTF-8 not ASCII. --- oauth.go | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/oauth.go b/oauth.go index 2216d38..f6c8a1e 100644 --- a/oauth.go +++ b/oauth.go @@ -118,7 +118,7 @@ func (o *OAuth) makeRequest(method, url string, oParams map[string]string, param default: return nil, &implementationError{ What: fmt.Sprintf("HTTP method (%s)", method), - Where: "OAuth\xb7makeRequest()", + Where: "OAuth\u00b7makeRequest()", } } return @@ -130,7 +130,7 @@ func (o *OAuth) AuthorizationURL() (string, error) { if o.RequestToken == "" || o.RequestSecret == "" { return "", &danceError{ What: "attempt to get authorization without credentials", - Where: "OAuth\xb7AuthorizationURL()", + Where: "OAuth\u00b7AuthorizationURL()", } } @@ -145,7 +145,7 @@ func (o *OAuth) GetAccessToken(verifier string) (err error) { if o.RequestToken == "" || o.RequestSecret == "" { return &danceError{ What: "Temporary credentials not avaiable", - Where: "OAuth\xb7GetAccessToken()", + Where: "OAuth\u00b7GetAccessToken()", } } @@ -193,7 +193,7 @@ func (o *OAuth) parseResponse(status int, body io.Reader, requestType int) error default: return &implementationError{ What: "requestType=" + strconv.Itoa(requestType), - Where: "OAuth\xb7parseResponse()", + Where: "OAuth\u00b7parseResponse()", } } return nil @@ -270,7 +270,7 @@ func (o *OAuth) sign(request string) (string, error) { } return "", &implementationError{ What: fmt.Sprintf("Unknown signature method (%d)", o.SignatureMethod), - Where: "OAuth\xb7sign", + Where: "OAuth\u00b7sign", } } @@ -282,7 +282,7 @@ func (o *OAuth) Post(url string, params map[string]string) (r *http.Response, er if !o.Authorized() { return nil, &danceError{ What: "Not authorized", - Where: "OAuth\xb7PostParams()", + Where: "OAuth\u00b7PostParams()", } } @@ -295,7 +295,7 @@ func (o *OAuth) Get(url string, params map[string]string) (r *http.Response, err if !o.Authorized() { return nil, &danceError{ What: "Not authorized", - Where: "OAuth\xb7PostParams()", + Where: "OAuth\u00b7PostParams()", } } From 55cdcf4b13c939adbacce9cb57b70b8924aee67a Mon Sep 17 00:00:00 2001 From: Tommi Virtanen Date: Sun, 9 Sep 2012 16:00:24 -0700 Subject: [PATCH 2/3] Go doesn't need Makefiles anymore. --- Makefile | 12 ------------ 1 file changed, 12 deletions(-) delete mode 100644 Makefile diff --git a/Makefile b/Makefile deleted file mode 100644 index 24de3ac..0000000 --- a/Makefile +++ /dev/null @@ -1,12 +0,0 @@ -include $(GOROOT)/src/Make.inc - -TARG=alloy-d/goauth -GOFILES=oauth.go\ - http.go\ - url.go\ - helpers.go\ - persist.go\ - error.go\ - -include $(GOROOT)/src/Make.pkg - From 416cc30fdefb31e4da0a2d08c37fecf1682aa6f6 Mon Sep 17 00:00:00 2001 From: Tommi Virtanen Date: Sun, 9 Sep 2012 16:00:56 -0700 Subject: [PATCH 3/3] hgignore in a git repo is just weird. --- .hgignore | 5 ----- 1 file changed, 5 deletions(-) delete mode 100644 .hgignore diff --git a/.hgignore b/.hgignore deleted file mode 100644 index 0a4bf88..0000000 --- a/.hgignore +++ /dev/null @@ -1,5 +0,0 @@ -syntax: glob - -_go_.6 -_obj -