diff --git a/CHANGELOG.md b/CHANGELOG.md index 976c065..8f395dc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). +## [1.0.2] - 2018-07-19 +### Removed +- Makefile. +- Benchmark test (unused). + ## [1.0.1] - 2018-07-19 ### Fixed - Wrap Travis CI Golang versions in quotes (for parsing issues, see [this](https://github.com/travis-ci/travis-ci/issues/9247)). @@ -78,6 +83,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. - This package's source code, including examples and tests. - Go dep files. +[1.0.2]: https://github.com/gbrlsnchs/jwt/compare/v1.0.1...v1.0.2 [1.0.1]: https://github.com/gbrlsnchs/jwt/compare/v1.0.0...v1.0.1 [1.0.0]: https://github.com/gbrlsnchs/jwt/compare/v0.5.0...v1.0.0 [0.5.0]: https://github.com/gbrlsnchs/jwt/compare/v0.4.0...v0.5.0 diff --git a/Makefile b/Makefile deleted file mode 100644 index 64908b1..0000000 --- a/Makefile +++ /dev/null @@ -1,33 +0,0 @@ -BIN=go -FLAGS=-v -race -DEP=dep -DEP_BKP=vendor.orig -EXCLUDE=$(shell find . -type f -name '*.go' -not -path './vendor/*') -IMPORT_BIN=goimports -IMPORT_FLAGS=-l -IMPORT=$(shell $(IMPORT_BIN) $(IMPORT_FLAGS) $(EXCLUDE)) - -all: test - -test: distclean import - $(BIN) test $(FLAGS) ./... - -distclean: - rm -f $(DEP_BKP) - -import: -ifneq (,$(IMPORT)) - $(error $(shell $(IMPORT_BIN) -d)) -endif - -install: goimports dep -ifeq (,$(wildcard Gopkg.*)) - $(DEP) init -endif - $(DEP) ensure - -goimports: - $(BIN) get golang.org/x/tools/cmd/goimports - -dep: - $(BIN) get -u github.com/golang/dep/cmd/dep diff --git a/benchmark_test.go b/benchmark_test.go deleted file mode 100644 index e5bea20..0000000 --- a/benchmark_test.go +++ /dev/null @@ -1,23 +0,0 @@ -package jwt_test - -import ( - "testing" - - . "github.com/gbrlsnchs/jwt" -) - -func BenchmarkSign(b *testing.B) { - b.ReportAllocs() - b.ResetTimer() - - for i := 0; i <= b.N; i++ { - _, _ = Sign(HS256("secret"), &Options{ - Public: map[string]interface{}{ - "foo": "bar", - "bar": "foo", - "baz": "bar", - "qux": "baz", - }, - }) - } -}