Skip to content

Instantly share code, notes, and snippets.

@spovich
spovich / ruby.rb
Last active December 29, 2015 03:38 — forked from phlipper/ruby.rb
add node default so it will compile
# ruby-install
ruby_install_version = node["ruby_install"]["version"]
ruby_install_url = "https://github.com/postmodern/ruby-install/archive/v#{ruby_install_version}.tar.gz"
ruby_install_dir = "ruby-install-#{ruby_install_version}"
ruby_install_tar = "#{ruby_install_dir}.tar.gz"
execute "Install ruby-install" do
cwd "/tmp"
command <<-EOC
curl -Lo #{ruby_install_tar} #{ruby_install_url} &&
@spovich
spovich / gist:1848409
Created February 16, 2012 22:35 — forked from dx7/gist:1333785
Installing ruby-debug with ruby-1.9.3-p125
# Install with:
# bash < <(curl -L https://raw.github.com/gist/1848409)
#
# Reference: http://blog.wyeworks.com/2011/11/1/ruby-1-9-3-and-ruby-debug
echo "Installing ruby-debug with ruby-1.9.3-p125 ..."
curl -OL http://rubyforge.org/frs/download.php/75414/linecache19-0.5.13.gem
curl -OL http://rubyforge.org/frs/download.php/75415/ruby-debug-base19-0.11.26.gem