Skip to content

Commit

Permalink
Merge pull request #871 from gin-gonic/develop
Browse files Browse the repository at this point in the history
v1.2
  • Loading branch information
javierprovecho authored Jul 2, 2017
2 parents d5b353c + a8ea89e commit d459835
Show file tree
Hide file tree
Showing 66 changed files with 2,197 additions and 328 deletions.
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Godeps/*
!Godeps/Godeps.json
vendor/*
!vendor/vendor.json
coverage.out
count.out
21 changes: 15 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,23 @@
language: go
sudo: false
go:
- 1.4
- 1.5.4
- 1.6.4
- 1.7.4
- tip
- 1.6.x
- 1.7.x
- 1.8.x
- master

git:
depth: 3

install:
- make install

script:
- go test -v -covermode=count -coverprofile=coverage.out
- make vet
- make fmt-check
- make embedmd
- make misspell-check
- make test

after_success:
- bash <(curl -s https://codecov.io/bash)
Expand Down
6 changes: 2 additions & 4 deletions AUTHORS.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
List of all the awesome people working to make Gin the best Web Framework in Go.



##gin 0.x series authors
## gin 0.x series authors

**Maintainer:** Manu Martinez-Almeida (@manucorporat), Javier Provecho (@javierprovecho)

Expand Down Expand Up @@ -226,4 +224,4 @@ People and companies, who have contributed, in alphabetical order.


**@yuyabee**
- Fixed README
- Fixed README
2 changes: 1 addition & 1 deletion BENCHMARKS.md
Original file line number Diff line number Diff line change
Expand Up @@ -295,4 +295,4 @@ BenchmarkPossum_GPlusAll 100000 19685 ns/op 6240 B/op
BenchmarkR2router_GPlusAll 100000 16251 ns/op 5040 B/op 76 allocs/op
BenchmarkRevel_GPlusAll 20000 93489 ns/op 21656 B/op 368 allocs/op
BenchmarkRivet_GPlusAll 100000 16907 ns/op 5408 B/op 64 allocs/op
```
```
59 changes: 50 additions & 9 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,47 @@
#CHANGELOG

###Gin 1.0rc2 (...)
# CHANGELOG

### Gin 1.2

- [NEW] Switch from godeps to govendor
- [NEW] Add support for Let's Encrypt via gin-gonic/autotls
- [NEW] Improve README examples and add extra at examples folder
- [NEW] Improved support with App Engine
- [NEW] Add custom template delimiters, see #860
- [NEW] Add Template Func Maps, see #962
- [NEW] Add \*context.Handler(), see #928
- [NEW] Add \*context.GetRawData()
- [NEW] Add \*context.GetHeader() (request)
- [NEW] Add \*context.AbortWithStatusJSON() (JSON content type)
- [NEW] Add \*context.Keys type cast helpers
- [NEW] Add \*context.ShouldBindWith()
- [NEW] Add \*context.MustBindWith()
- [NEW] Add \*engine.SetFuncMap()
- [DEPRECATE] On next release: \*context.BindWith(), see #855
- [FIX] Refactor render
- [FIX] Reworked tests
- [FIX] logger now supports cygwin
- [FIX] Use X-Forwarded-For before X-Real-Ip
- [FIX] time.Time binding (#904)

### Gin 1.1.4

- [NEW] Support google appengine for IsTerminal func

### Gin 1.1.3

- [FIX] Reverted Logger: skip ANSI color commands

### Gin 1.1

- [NEW] Implement QueryArray and PostArray methods
- [NEW] Refactor GetQuery and GetPostForm
- [NEW] Add contribution guide
- [FIX] Corrected typos in README
- [FIX] Removed additional Iota
- [FIX] Changed imports to gopkg instead of github in README (#733)
- [FIX] Logger: skip ANSI color commands if output is not a tty

### Gin 1.0rc2 (...)

- [PERFORMANCE] Fast path for writing Content-Type.
- [PERFORMANCE] Much faster 404 routing
Expand Down Expand Up @@ -35,7 +76,7 @@
- [FIX] MIT license in every file


###Gin 1.0rc1 (May 22, 2015)
### Gin 1.0rc1 (May 22, 2015)

- [PERFORMANCE] Zero allocation router
- [PERFORMANCE] Faster JSON, XML and text rendering
Expand Down Expand Up @@ -79,7 +120,7 @@
- [FIX] Better support for Google App Engine (using log instead of fmt)


###Gin 0.6 (Mar 9, 2015)
### Gin 0.6 (Mar 9, 2015)

- [NEW] Support multipart/form-data
- [NEW] NoMethod handler
Expand All @@ -89,14 +130,14 @@
- [FIX] Improve color logger


###Gin 0.5 (Feb 7, 2015)
### Gin 0.5 (Feb 7, 2015)

- [NEW] Content Negotiation
- [FIX] Solved security bug that allow a client to spoof ip
- [FIX] Fix unexported/ignored fields in binding


###Gin 0.4 (Aug 21, 2014)
### Gin 0.4 (Aug 21, 2014)

- [NEW] Development mode
- [NEW] Unit tests
Expand All @@ -105,7 +146,7 @@
- [FIX] Improved documentation for model binding


###Gin 0.3 (Jul 18, 2014)
### Gin 0.3 (Jul 18, 2014)

- [PERFORMANCE] Normal log and error log are printed in the same call.
- [PERFORMANCE] Improve performance of NoRouter()
Expand All @@ -123,7 +164,7 @@
- [FIX] Check application/x-www-form-urlencoded when parsing form


###Gin 0.2b (Jul 08, 2014)
### Gin 0.2b (Jul 08, 2014)
- [PERFORMANCE] Using sync.Pool to allocatio/gc overhead
- [NEW] Travis CI integration
- [NEW] Completely new logger
Expand Down
36 changes: 0 additions & 36 deletions Godeps/Godeps.json

This file was deleted.

61 changes: 61 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
GOFMT ?= gofmt "-s"
PACKAGES ?= $(shell go list ./... | grep -v /vendor/)
GOFILES := $(shell find . -name "*.go" -type f -not -path "./vendor/*")

all: build

install: deps
govendor sync

.PHONY: test
test:
go test -v -covermode=count -coverprofile=coverage.out

.PHONY: fmt
fmt:
$(GOFMT) -w $(GOFILES)

.PHONY: fmt-check
fmt-check:
# get all go files and run go fmt on them
@diff=$$($(GOFMT) -d $(GOFILES)); \
if [ -n "$$diff" ]; then \
echo "Please run 'make fmt' and commit the result:"; \
echo "$${diff}"; \
exit 1; \
fi;

vet:
go vet $(PACKAGES)

deps:
@hash govendor > /dev/null 2>&1; if [ $$? -ne 0 ]; then \
go get -u github.com/kardianos/govendor; \
fi
@hash embedmd > /dev/null 2>&1; if [ $$? -ne 0 ]; then \
go get -u github.com/campoy/embedmd; \
fi

embedmd:
embedmd -d *.md

.PHONY: lint
lint:
@hash golint > /dev/null 2>&1; if [ $$? -ne 0 ]; then \
go get -u github.com/golang/lint/golint; \
fi
for PKG in $(PACKAGES); do golint -set_exit_status $$PKG || exit 1; done;

.PHONY: misspell-check
misspell-check:
@hash misspell > /dev/null 2>&1; if [ $$? -ne 0 ]; then \
go get -u github.com/client9/misspell/cmd/misspell; \
fi
misspell -error $(GOFILES)

.PHONY: misspell
misspell:
@hash misspell > /dev/null 2>&1; if [ $$? -ne 0 ]; then \
go get -u github.com/client9/misspell/cmd/misspell; \
fi
misspell -w $(GOFILES)
Loading

0 comments on commit d459835

Please sign in to comment.