Skip to content

Commit

Permalink
Move Ruby-related section under conditional
Browse files Browse the repository at this point in the history
  • Loading branch information
dskecse committed Jan 19, 2025
1 parent 06f4888 commit be7a7b8
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions mac
Original file line number Diff line number Diff line change
Expand Up @@ -178,23 +178,23 @@ if [ ! -d "$HOME/.rubies" ]; then
export GEM_ROOT="$RUBY_ROOT/lib/ruby/gems/$RUBY_VERSION"
export GEM_PATH="$GEM_HOME:$GEM_ROOT"
export PATH="$GEM_HOME/bin:$GEM_ROOT/bin:$PATH"
fi

fancy_echo "Updating RubyGems ..."
gem update --system
fancy_echo "Installing Bundler ..."
gem install bundler
fancy_echo "Configuring Bundler ..."
# FYI: "nproc" is not installed by default, comes from "coreutils"
number_of_cores=$(nproc)
bundle config --global jobs $((number_of_cores - 1))
# https://bundler.io/v2.6/man/bundle-config.1.html
bundle config --global path ".bundle"
bundle config --global without production
# https://github.com/brianmario/mysql2#general-instructions
# https://github.com/brianmario/mysql2#mac-os-x
# bundle config --global build.mysql2 -- \
# --with-mysql-dir="$HOMEBREW_PREFIX/opt/mysql" --with-openssl-dir="$HOMEBREW_PREFIX/opt/openssl"
fancy_echo "Updating RubyGems ..."
gem update --system
fancy_echo "Installing Bundler ..."
gem install bundler
fancy_echo "Configuring Bundler ..."
# FYI: "nproc" is not installed by default, comes from "coreutils"
number_of_cores=$(nproc)
bundle config --global jobs $((number_of_cores - 1))
# https://bundler.io/v2.6/man/bundle-config.1.html
bundle config --global path ".bundle"
bundle config --global without production
# https://github.com/brianmario/mysql2#general-instructions
# https://github.com/brianmario/mysql2#mac-os-x
# bundle config --global build.mysql2 -- \
# --with-mysql-dir="$HOMEBREW_PREFIX/opt/mysql" --with-openssl-dir="$HOMEBREW_PREFIX/opt/openssl"
fi

# brew tap homebrew/bundle

Expand Down

0 comments on commit be7a7b8

Please sign in to comment.