Skip to content
This repository was archived by the owner on Nov 1, 2017. It is now read-only.

Commit 1a09e82

Browse files
author
Hubot
committed
Sync changes from upstream repository
1 parent a8d460c commit 1a09e82

File tree

3 files changed

+27
-7
lines changed

3 files changed

+27
-7
lines changed

Diff for: Brewfile

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Helpers
2+
tap "github/bootstrap"
3+
4+
# Ruby
5+
brew "openssl"
6+
brew "autoconf"
7+
brew "rbenv"
8+
brew "ruby-build"
9+
10+
# Node
11+
brew "nodenv"
12+
brew "node-build"

Diff for: script/bootstrap

+15-7
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,32 @@
11
#!/bin/sh
2-
32
set -e
4-
export CC=gcc
3+
cd "$(dirname "$0")/.."
54

6-
command -v bundle >/dev/null 2>&1 || { echo >&2 "Bundler required but not found: gem install bundler"; exit 1; }
5+
if [ "$(uname -s)" = "Darwin" ] && command -v brew >/dev/null 2>&1; then
6+
echo "==> Installing Homebrew dependencies…"
7+
brew update >/dev/null
8+
brew bundle check &>/dev/null || brew bundle
79

8-
echo "==> Installing gem dependencies…"
10+
brew bootstrap-rbenv-ruby
11+
brew bootstrap-nodenv-node
12+
fi
913

14+
if ! command -v bundle >/dev/null 2>&1; then
15+
echo "Bundler required but not found: gem install bundler" >&2
16+
exit 1
17+
fi
18+
19+
echo "==> Installing gem dependencies…"
1020
if [ "$RACK_ENV" = "production" ]; then
1121
export NOKOGIRI_USE_SYSTEM_LIBRARIES=1
1222
export BUNDLE_JOBS=4
1323
bundle install --without development staging test benchmark --path vendor/cache --local --deployment
1424
else
15-
bundle check --path vendor/cache 2>&1 || {
25+
bundle check --path vendor/cache 2>&1 || \
1626
bundle install --path vendor/cache
17-
}
1827
fi
1928

2029
echo "==> Installing npm dependencies…"
21-
2230
if [ "$RACK_ENV" = "production" ]; then
2331
npm install --production
2432
else

Diff for: vendor/cache/html-proofer-2.6.2.gem

-17 KB
Binary file not shown.

0 commit comments

Comments
 (0)