Skip to content

Commit 44058c9

Browse files
Merge pull request #344 from gliderlabs/mh/release/v0.3.36
release v0.3.36
2 parents 9dd2747 + cb65a24 commit 44058c9

File tree

12 files changed

+72
-10
lines changed

12 files changed

+72
-10
lines changed

CHANGELOG.md

+14-1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,17 @@ All notable changes to this project will be documented in this file.
1010

1111
### Changed
1212

13+
## [0.3.36] - 2018-03-10
14+
### Changed
15+
- @josegonzalez fix: retrieve only valid process types
16+
- @michaelshobbs Update ruby to version v174
17+
- @michaelshobbs Update python to version v124
18+
- @michaelshobbs Update php to version v132
19+
- @michaelshobbs Update nodejs to version v121
20+
- @michaelshobbs Update go to version v85
21+
22+
**NOTE: This will be the last version of herokuish based on cedar-14**
23+
1324
## [0.3.35] - 2018-02-09
1425
### Added
1526
- @davidkarlsen Be able to opt out from setuidgid - needed when not running as root initially
@@ -440,7 +451,9 @@ All notable changes to this project will be documented in this file.
440451
- User for `buildpack-build` is `$USER` or randomized
441452
- User for `procfile-exec` is `$USER` or detected from `/app`
442453

443-
[unreleased]: https://github.com/gliderlabs/herokuish/compare/v0.3.34...HEAD
454+
[unreleased]: https://github.com/gliderlabs/herokuish/compare/v0.3.36...HEAD
455+
[0.3.36]: https://github.com/gliderlabs/herokuish/compare/v0.3.35...v0.3.36
456+
[0.3.35]: https://github.com/gliderlabs/herokuish/compare/v0.3.34...v0.3.35
444457
[0.3.34]: https://github.com/gliderlabs/herokuish/compare/v0.3.33...v0.3.34
445458
[0.3.33]: https://github.com/gliderlabs/herokuish/compare/v0.3.32...v0.3.33
446459
[0.3.32]: https://github.com/gliderlabs/herokuish/compare/v0.3.31...v0.3.32

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.35/herokuish_0.3.35_linux_x86_64.tgz" \
2+
RUN curl "https://github.com/gliderlabs/herokuish/releases/download/v0.3.36/herokuish_0.3.36_linux_x86_64.tgz" \
33
--silent -L | tar -xzC /bin
44
RUN apt-get update && apt-get -qq -y --force-yes dist-upgrade && apt-get clean && rm -rf /var/cache/apt/archives/*
55
RUN /bin/herokuish buildpack install \

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.35
3+
VERSION ?= 0.3.36
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.35/herokuish_0.3.35_linux_x86_64.tgz \
21+
RUN curl --location --silent https://github.com/gliderlabs/herokuish/releases/download/v0.3.36/herokuish_0.3.36_linux_x86_64.tgz \
2222
| tar -xzC /bin
2323
```
2424

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v83
1+
v85
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v118
1+
v121
+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v130
1+
v132
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v123
1+
v124
+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v173
1+
v174

include/procfile.bash

+3-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ yaml-esque-keys() {
33
declare desc="Get process type keys from colon-separated structure"
44
while read -r line || [[ -n "$line" ]]; do
55
[[ "$line" =~ ^#.* ]] && continue
6+
[[ "$line" == *:* ]] || continue
67
key=${line%%:*}
78
echo "$key"
89
done <<< "$(cat)"
@@ -18,6 +19,7 @@ yaml-esque-get() {
1819
cmd=${line#*:}
1920
if [[ "$inputkey" == "$key" ]]; then
2021
echo "$cmd"
22+
break
2123
fi
2224
done <<< "$(cat)"
2325
}
@@ -63,7 +65,7 @@ procfile-types() {
6365
title "Discovering process types"
6466
if [[ -f "$app_path/Procfile" ]]; then
6567
local types
66-
types="$(cat "$app_path/Procfile" | yaml-esque-keys | xargs echo)"
68+
types="$(cat "$app_path/Procfile" | yaml-esque-keys | sort | uniq | xargs echo)"
6769
echo "Procfile declares types -> ${types// /, }"
6870
return
6971
fi
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<<<<<<< HEAD
2+
web: npm start
3+
worker: npm worker
4+
========
5+
web: npm start-2
6+
worker: npm worker-2
7+
>>>>>>> 5bb7ec3e2a8f4f6565432a4fc82c92d4a3603d28

tests/unit/tests.sh

+40
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,28 @@ T_procfile-parse-valid() {
4444
done
4545
}
4646

47+
T_procfile-parse-merge-conflict() {
48+
# shellcheck disable=SC1090
49+
source "$(dirname "${BASH_SOURCE[0]}")/../../include/procfile.bash"
50+
local expected actual app_path
51+
app_path="$(dirname "${BASH_SOURCE[0]}")/fixtures-merge-conflict"
52+
for type in web worker; do
53+
case "$type" in
54+
web)
55+
expected="npm start"
56+
;;
57+
worker)
58+
expected="npm worker"
59+
;;
60+
esac
61+
actual=$(procfile-parse "$type" | xargs)
62+
if [[ "$actual" != "$expected" ]]; then
63+
echo "$actual != $expected"
64+
return 1
65+
fi
66+
done
67+
}
68+
4769
T_procfile-parse-invalid() {
4870
# shellcheck disable=SC1090
4971
source "$(dirname "${BASH_SOURCE[0]}")/../../include/procfile.bash"
@@ -77,6 +99,24 @@ T_procfile-types() {
7799
fi
78100
}
79101

102+
T_procfile-types-merge-conflict() {
103+
title() {
104+
:
105+
}
106+
# shellcheck disable=SC1090
107+
source "$(dirname "${BASH_SOURCE[0]}")/../../include/procfile.bash"
108+
local expected actual app_path
109+
app_path="$(dirname "${BASH_SOURCE[0]}")/fixtures-merge-conflict"
110+
111+
expected="Procfile declares types -> web, worker"
112+
actual="$(procfile-types invalid-proc | tail -1)"
113+
114+
if [[ "$actual" != "$expected" ]]; then
115+
echo "$actual != $expected"
116+
return 1
117+
fi
118+
}
119+
80120
T_procfile-load-env() {
81121
# shellcheck disable=SC1090
82122
source "$(dirname "${BASH_SOURCE[0]}")/../../include/procfile.bash"

0 commit comments

Comments
 (0)