Skip to content

Commit 231cb2f

Browse files
Merge pull request #254 from gliderlabs/master
release 0.3.29
2 parents 3e2e94a + 3c275a7 commit 231cb2f

File tree

8 files changed

+37
-9
lines changed

8 files changed

+37
-9
lines changed

CHANGELOG.md

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

1313

14+
## [0.3.29] - 2017-05-03
15+
### Fixed
16+
- @alexquick [build] fix old .env parsing to handle quotes and escapes better cce259c
17+
18+
### Changed
19+
- @michaelshobbs Update ruby to version v159
20+
21+
1422
## [0.3.28] - 2017-04-19
1523
### Fixed
1624
- @dmgr bugfix: curl may fail to fetch not quoted url if behind proxy
@@ -346,7 +354,8 @@ All notable changes to this project will be documented in this file.
346354
- User for `buildpack-build` is `$USER` or randomized
347355
- User for `procfile-exec` is `$USER` or detected from `/app`
348356

349-
[unreleased]: https://github.com/gliderlabs/herokuish/compare/v0.3.28...HEAD
357+
[unreleased]: https://github.com/gliderlabs/herokuish/compare/v0.3.29...HEAD
358+
[0.3.29]: https://github.com/gliderlabs/herokuish/compare/v0.3.28...v0.3.29
350359
[0.3.28]: https://github.com/gliderlabs/herokuish/compare/v0.3.27...v0.3.28
351360
[0.3.27]: https://github.com/gliderlabs/herokuish/compare/v0.3.26...v0.3.27
352361
[0.3.26]: https://github.com/gliderlabs/herokuish/compare/v0.3.25...v0.3.26

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.28/herokuish_0.3.28_linux_x86_64.tgz" \
2+
RUN curl "https://github.com/gliderlabs/herokuish/releases/download/v0.3.29/herokuish_0.3.29_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.28
3+
VERSION ?= 0.3.29
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 --location --silent https://github.com/gliderlabs/herokuish/releases/download/v0.3.28/herokuish_0.3.28_linux_x86_64.tgz \
21+
RUN curl --location --silent https://github.com/gliderlabs/herokuish/releases/download/v0.3.29/herokuish_0.3.29_linux_x86_64.tgz \
2222
| tar -xzC /bin
2323
```
2424

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v158
1+
v159

include/buildpack.bash

+4-4
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,18 @@ _envfile-parse() {
33
declare desc="Parse input into shell export commands"
44
local key
55
local value
6-
while read line || [[ -n "$line" ]]; do
6+
while read -r line || [[ -n "$line" ]]; do
77
[[ "$line" =~ ^#.* ]] && continue
88
[[ "$line" =~ ^$ ]] && continue
99
key=${line%%=*}
1010
key=${key#*export }
11-
value=${line#*=}
11+
value="${line#*=}"
1212
case "$value" in
1313
\'*|\"*)
14-
value=${value}
14+
value="${value}"
1515
;;
1616
*)
17-
value=\"${value}\"
17+
value=\""${value}"\"
1818
;;
1919
esac
2020
echo "export ${key}=${value}"
+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
foo='Hello'$'\n'' '\''world'\'' '
2+
bar='te'\''st'

tests/unit/tests.sh

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
T_envfile-parse(){
2+
source "$(dirname $BASH_SOURCE)/../../include/buildpack.bash"
3+
local fixture_filename="$(dirname $BASH_SOURCE)/fixtures/complicated_envfile"
4+
local foo_expected='Hello'$'\n'' '\''world'\'' '
5+
local bar_expected='te'\''st'
6+
eval "$(cat "$fixture_filename" | _envfile-parse)"
7+
8+
if [[ ! $foo_expected == $foo ]]; then
9+
echo "Expected foo = $foo_expected got: $foo"
10+
return 1
11+
fi
12+
13+
if [[ ! $bar_expected == $bar ]]; then
14+
echo "Expected bar = $bar_expected got: $bar"
15+
return 2
16+
fi
17+
}

0 commit comments

Comments
 (0)