Skip to content

Commit 868cec3

Browse files
committed
Merge pull request #104 from gliderlabs/master
release 0.3.7
2 parents 7524a6a + 5ea738d commit 868cec3

File tree

7 files changed

+46
-10
lines changed

7 files changed

+46
-10
lines changed

CHANGELOG.md

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

1111
### Changed
1212

13+
## [0.3.7] - 2015-12-31
14+
### Fixed
15+
- @michaelshobbs force rebuild of packages that are already up to date
16+
- @michaelshobbs fix buildpack version output after adding dokku/buildpack-nginx
17+
18+
### Removed
19+
- @michaelshobbs remove unnecessary null line check
20+
21+
### Changed
22+
- @michaelshobbs re-implement yaml-get and yaml-keys in bash
23+
- @CEikermann Updated buildpack-php to v90
24+
- @josegonzalez Upgrade python buildpack to v74
25+
1326
## [0.3.6] - 2015-12-14
1427
### Changed
1528
- Update php buildpack to version 87
@@ -129,7 +142,8 @@ All notable changes to this project will be documented in this file.
129142
- User for `buildpack-build` is `$USER` or randomized
130143
- User for `procfile-exec` is `$USER` or detected from `/app`
131144

132-
[unreleased]: https://github.com/gliderlabs/herokuish/compare/v0.3.6...HEAD
145+
[unreleased]: https://github.com/gliderlabs/herokuish/compare/v0.3.7...HEAD
146+
[0.3.7]: https://github.com/gliderlabs/herokuish/compare/v0.3.6...v0.3.7
133147
[0.3.6]: https://github.com/gliderlabs/herokuish/compare/v0.3.5...v0.3.6
134148
[0.3.5]: https://github.com/gliderlabs/herokuish/compare/v0.3.4...v0.3.5
135149
[0.3.4]: https://github.com/gliderlabs/herokuish/compare/v0.3.3...v0.3.4

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.6/herokuish_0.3.6_linux_x86_64.tgz \
2+
RUN curl https://github.com/gliderlabs/herokuish/releases/download/v0.3.7/herokuish_0.3.7_linux_x86_64.tgz \
33
--silent -L | tar -xzC /bin
44
RUN /bin/herokuish buildpack install \
55
&& ln -s /bin/herokuish /build \

Makefile

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

77
build:
88
cat buildpacks/*/buildpack* | sed 'N;s/\n/ /' > include/buildpacks.txt
99
go-bindata include
10-
mkdir -p build/linux && GOOS=linux go build -ldflags "-X main.Version $(VERSION)" -o build/linux/$(NAME)
11-
mkdir -p build/darwin && GOOS=darwin go build -ldflags "-X main.Version $(VERSION)" -o build/darwin/$(NAME)
10+
mkdir -p build/linux && GOOS=linux go build -a -ldflags "-X main.Version $(VERSION)" -o build/linux/$(NAME)
11+
mkdir -p build/darwin && GOOS=darwin go build -a -ldflags "-X main.Version $(VERSION)" -o build/darwin/$(NAME)
1212
ifeq ($(CIRCLECI),true)
1313
docker build -t $(IMAGE_NAME):$(BUILD_TAG) .
1414
else
+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v87
1+
v90
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v73
1+
v74

include/herokuish.bash

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ version() {
4141
declare desc="Show version and supported version info"
4242
echo "herokuish: ${HEROKUISH_VERSION:-dev}"
4343
echo "buildpacks:"
44-
asset-cat include/buildpacks.txt | sed 's/.*heroku\///' | xargs printf " %-26s %s\n"
44+
asset-cat include/buildpacks.txt | sed -e 's/.*heroku\///' -e 's/.*dokku\///' | xargs printf " %-26s %s\n"
4545
}
4646

4747
title() {

include/procfile.bash

+24-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,30 @@
11

2+
yaml-esque-keys() {
3+
declare desc="Get process type keys from colon-separated structure"
4+
while read line || [[ -n "$line" ]]; do
5+
[[ "$line" =~ ^#.* ]] && continue
6+
key=${line%%:*}
7+
echo $key
8+
done <<< "$(cat)"
9+
}
10+
11+
yaml-esque-get() {
12+
declare desc="Get key value from colon-separated structure"
13+
declare key="$1"
14+
local inputkey
15+
local cmd
16+
while read line || [[ -n "$line" ]]; do
17+
[[ "$line" =~ ^#.* ]] && continue
18+
inputkey=${line%%:*}
19+
cmd=${line#*:}
20+
[[ "$inputkey" == "$key" ]] && echo "$cmd"
21+
done <<< "$(cat)"
22+
}
23+
224
procfile-parse() {
325
declare desc="Get command string for a process type from Procfile"
426
declare type="$1"
5-
cat "$app_path/Procfile" | yaml-get "$type"
27+
cat "$app_path/Procfile" | yaml-esque-get "$type"
628
}
729

830
procfile-start() {
@@ -25,7 +47,7 @@ procfile-types() {
2547
title "Discovering process types"
2648
if [[ -f "$app_path/Procfile" ]]; then
2749
local types
28-
types="$(cat $app_path/Procfile | yaml-keys | xargs echo)"
50+
types="$(cat $app_path/Procfile | yaml-esque-keys | xargs echo)"
2951
echo "Procfile declares types -> ${types// /, }"
3052
return
3153
fi

0 commit comments

Comments
 (0)