Skip to content

Commit 381e921

Browse files
Merge pull request #194 from gliderlabs/master
release 0.3.20
2 parents 06fc636 + ae57100 commit 381e921

File tree

10 files changed

+45
-10
lines changed

10 files changed

+45
-10
lines changed

CHANGELOG.md

+11-1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,15 @@ All notable changes to this project will be documented in this file.
1111
### Changed
1212

1313

14+
## [0.3.20] - 2016-11-13
15+
### Changed
16+
- @michaelshobbs michaelshobbs new .env parser that handles spaces
17+
- @michaelshobbs michaelshobbs change readme instructions to use github releases
18+
- @michaelshobbs michaelshobbs Update go to version v52
19+
- @michaelshobbs michaelshobbs Update php to version v114
20+
- @michaelshobbs michaelshobbs Update python to version v83
21+
22+
1423
## [0.3.19] - 2016-09-20
1524
### Changed
1625
- @josegonzalez Update static buildpack to v6
@@ -264,7 +273,8 @@ All notable changes to this project will be documented in this file.
264273
- User for `buildpack-build` is `$USER` or randomized
265274
- User for `procfile-exec` is `$USER` or detected from `/app`
266275

267-
[unreleased]: https://github.com/gliderlabs/herokuish/compare/v0.3.19...HEAD
276+
[unreleased]: https://github.com/gliderlabs/herokuish/compare/v0.3.20...HEAD
277+
[0.3.20]: https://github.com/gliderlabs/herokuish/compare/v0.3.19...v0.3.20
268278
[0.3.19]: https://github.com/gliderlabs/herokuish/compare/v0.3.18...v0.3.19
269279
[0.3.18]: https://github.com/gliderlabs/herokuish/compare/v0.3.17...v0.3.18
270280
[0.3.17]: https://github.com/gliderlabs/herokuish/compare/v0.3.16...v0.3.17

Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
FROM heroku/cedar:14
2-
RUN curl https://github.com/gliderlabs/herokuish/releases/download/v0.3.19/herokuish_0.3.19_linux_x86_64.tgz \
2+
RUN curl https://github.com/gliderlabs/herokuish/releases/download/v0.3.20/herokuish_0.3.20_linux_x86_64.tgz \
33
--silent -L | tar -xzC /bin
44
RUN /bin/herokuish buildpack install \
55
&& ln -s /bin/herokuish /build \

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
NAME = herokuish
22
HARDWARE = $(shell uname -m)
3-
VERSION ?= 0.3.19
3+
VERSION ?= 0.3.20
44
IMAGE_NAME ?= $(NAME)
55
BUILD_TAG ?= dev
66

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Download and uncompress the latest binary tarball from [releases](https://github
1818
For example, you can do this directly in your Dockerfiles installing into `/bin` as one step:
1919

2020
```
21-
RUN curl --silent http://dl.gliderlabs.com/herokuish/latest/linux_x86_64.tgz \
21+
RUN curl --location --silent https://github.com/gliderlabs/herokuish/releases/download/v0.3.20/herokuish_0.3.20_linux_x86_64.tgz \
2222
| tar -xzC /bin
2323
```
2424

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v44
1+
v52
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
TEST1=The big brown fox1
2+
TEST2="The big brown fox2"
3+
TEST3='The big brown fox3'
4+
export TEST4=The big brown fox4
5+
export TEST5="The big brown fox5"
6+
export TEST6='The big brown fox6'
+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v110
1+
v114
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v82
1+
v83

include/buildpack.bash

+22-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,25 @@
11

2+
_envfile-parse() {
3+
declare desc="Parse input into shell export commands"
4+
local key
5+
local value
6+
while read line || [[ -n "$line" ]]; do
7+
[[ "$line" =~ ^#.* ]] && continue
8+
key=${line%%=*}
9+
key=${key#*export }
10+
value=${line#*=}
11+
case "$value" in
12+
\'*|\"*)
13+
value=${value}
14+
;;
15+
*)
16+
value=\"${value}\"
17+
;;
18+
esac
19+
echo "export ${key}=${value}"
20+
done <<< "$(cat)"
21+
}
22+
223
buildpack-build() {
324
declare desc="Build an application using installed buildpacks"
425
ensure-paths
@@ -88,10 +109,9 @@ buildpack-setup() {
88109
export CURL_CONNECT_TIMEOUT="30"
89110
export CURL_TIMEOUT="180"
90111

91-
92112
# Buildstep backwards compatibility
93113
if [[ -f "$app_path/.env" ]]; then
94-
source "$app_path/.env"
114+
eval $(cat "$app_path/.env" | _envfile-parse)
95115
fi
96116
}
97117

include/herokuish.bash

-1
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,6 @@ herokuish-test() {
119119
echo "::: TEST FINISHED :::"
120120
}
121121

122-
123122
main() {
124123
set -eo pipefail; [[ "$TRACE" ]] && set -x
125124

0 commit comments

Comments
 (0)