Skip to content

Instantly share code, notes, and snippets.

@ervinb
Last active August 29, 2015 14:10
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save ervinb/6fac5ee5eb5e0bb85a79 to your computer and use it in GitHub Desktop.
Save ervinb/6fac5ee5eb5e0bb85a79 to your computer and use it in GitHub Desktop.
Fix debugger installation for any Ruby patchlevel

Use the debugger gem with unsupported Ruby versions

  • replace the version of debugger-ruby_core_source in the path below, with the one you're using
gem install minitar
gem install debugger-ruby_core_source // or install it with bundler
cd ~/.rbenv/versions/2.0.0-p598/lib/ruby/gems/2.0.0/gems/debugger-ruby_core_source-1.3.7 && rake add_source VERSION=2.0.0-p598 && cd -
  • for projects using Bundler, just change the path to the gem to ./vendor/bundle/ruby/2.0.0/gems/debugger-ruby_core_source-1.3.7 and use bundle to install the debugger-ruby_core_source gem

Using the debugger gem on Semaphore with Ruby 2.0

  • replace bundle install with the following four lines in your build commands
  • adjust the path to the debugger-ruby_core_source version your project is using; in this case it's 1.3.7
gem install minitar
bundle install --path=vendor/bundle || true
cd ./vendor/bundle/ruby/2.0.0/gems/debugger-ruby_core_source-1.3.7 && rake add_source VERSION=2.0.0-p598 && cd -
bundle install --path=vendor/bundle
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment