Skip to content

Commit be7a7b8

Browse files
committed
Move Ruby-related section under conditional
1 parent 06f4888 commit be7a7b8

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

mac

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -178,23 +178,23 @@ if [ ! -d "$HOME/.rubies" ]; then
178178
export GEM_ROOT="$RUBY_ROOT/lib/ruby/gems/$RUBY_VERSION"
179179
export GEM_PATH="$GEM_HOME:$GEM_ROOT"
180180
export PATH="$GEM_HOME/bin:$GEM_ROOT/bin:$PATH"
181-
fi
182181

183-
fancy_echo "Updating RubyGems ..."
184-
gem update --system
185-
fancy_echo "Installing Bundler ..."
186-
gem install bundler
187-
fancy_echo "Configuring Bundler ..."
188-
# FYI: "nproc" is not installed by default, comes from "coreutils"
189-
number_of_cores=$(nproc)
190-
bundle config --global jobs $((number_of_cores - 1))
191-
# https://bundler.io/v2.6/man/bundle-config.1.html
192-
bundle config --global path ".bundle"
193-
bundle config --global without production
194-
# https://github.com/brianmario/mysql2#general-instructions
195-
# https://github.com/brianmario/mysql2#mac-os-x
196-
# bundle config --global build.mysql2 -- \
197-
# --with-mysql-dir="$HOMEBREW_PREFIX/opt/mysql" --with-openssl-dir="$HOMEBREW_PREFIX/opt/openssl"
182+
fancy_echo "Updating RubyGems ..."
183+
gem update --system
184+
fancy_echo "Installing Bundler ..."
185+
gem install bundler
186+
fancy_echo "Configuring Bundler ..."
187+
# FYI: "nproc" is not installed by default, comes from "coreutils"
188+
number_of_cores=$(nproc)
189+
bundle config --global jobs $((number_of_cores - 1))
190+
# https://bundler.io/v2.6/man/bundle-config.1.html
191+
bundle config --global path ".bundle"
192+
bundle config --global without production
193+
# https://github.com/brianmario/mysql2#general-instructions
194+
# https://github.com/brianmario/mysql2#mac-os-x
195+
# bundle config --global build.mysql2 -- \
196+
# --with-mysql-dir="$HOMEBREW_PREFIX/opt/mysql" --with-openssl-dir="$HOMEBREW_PREFIX/opt/openssl"
197+
fi
198198

199199
# brew tap homebrew/bundle
200200

0 commit comments

Comments
 (0)