From 226011d6c3cf7735549d55183b34a950a2af3fd9 Mon Sep 17 00:00:00 2001 From: albertrdixon Date: Tue, 29 Sep 2015 15:08:24 -0700 Subject: [PATCH] bump version and re-add default function --- Makefile | 3 ++- doc.go | 2 +- helpers.go | 1 + 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 993fe67..bc4bfd1 100644 --- a/Makefile +++ b/Makefile @@ -56,7 +56,8 @@ package: build @for p in $(PLATFORMS) ; do \ echo "==> Tar'ing up $$p/amd64 binary" ; \ test -f bin/$(EXECUTABLE)-$$p && \ - tar czf $(EXECUTABLE)-$$p.tgz bin/$(EXECUTABLE)-$$p ; \ + mv bin/$(EXECUTABLE)-$$p t2 && \ + tar czf $(EXECUTABLE)-$$p.tgz t2 ; \ done clean: diff --git a/doc.go b/doc.go index 5ec151f..e8efbd9 100644 --- a/doc.go +++ b/doc.go @@ -2,4 +2,4 @@ package tmplnator // Version is the version -const Version = "v2.2.0" +const Version = "v2.2.1" diff --git a/helpers.go b/helpers.go index 2f76a76..5615e05 100644 --- a/helpers.go +++ b/helpers.go @@ -32,6 +32,7 @@ func newFuncMap(f *FileInfo) map[string]interface{} { "-e": exists, "has_key": hasKey, "def": def, + "default": def, "url": parseURL, "sha": hash, "downcase": downcase,