Skip to content

Instantly share code, notes, and snippets.

@alexkwolfe
Created January 23, 2013 18:24
Show Gist options
  • Save alexkwolfe/4611271 to your computer and use it in GitHub Desktop.
Save alexkwolfe/4611271 to your computer and use it in GitHub Desktop.
Prepare bundler config to install ruby-debug-ide19 on Mac OS X under rbenv.
RUBY_VERSION=`rbenv local`
RBENV_SRC=`rbenv root`/sources/`rbenv local`/ruby-`rbenv local`
if [ ! -d $RBENV_SRC ];
then
echo "Failed. Expected ruby source at $RBENV_SRC."
else
echo "Setting bundle config for ruby-debug-ide19 on $RUBY_VERSION"
bundle config --local build.linecache19 --with-ruby-include=$RBENV_SRC
bundle config --local build.ruby-debug-base19 --with-ruby-include=$RBENV_SRC
bundle config --local build.ruby-debug-ide19 --with-ruby-include=$RBENV_SRC
echo "Done."
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment