Permalink
Browse files

Add ability to run a debugger with 1.9.3

  • Loading branch information...
ragaskar committed Apr 14, 2012
1 parent baaf5cd commit 405cb59a37009d1431dddc150816418ac5a58f8d
Showing with 16 additions and 1 deletion.
  1. +13 −0 Gemfile
  2. +3 −1 spec/spec_helper.rb
View
13 Gemfile
@@ -1,2 +1,15 @@
source "http://rubygems.org"
gemspec
+
+unless ENV["TRAVIS"]
+ group :debug do
+ # 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
+ # # Replace with your ruby path if necessary
+ # gem install linecache19-0.5.13.gem ruby-debug-base19-0.11.26.gem -- --with-ruby-include=$rvm_path/src/ruby-1.9.3-p125/
+ # rm linecache19-0.5.13.gem ruby-debug-base19-0.11.26.gem
+ gem 'linecache19', '0.5.13'
+ gem 'ruby-debug-base19', '0.11.26'
+ gem 'ruby-debug19', :require => 'ruby-debug'
+ end
+end
View
@@ -3,7 +3,9 @@
require 'stringio'
require 'tmpdir'
-Bundler.setup(:default, :development)
+envs = [:default, :development]
+envs << :debug if ENV["DEBUG"]
+Bundler.setup(*envs)
$:.unshift(File.expand_path(File.join(File.dirname(__FILE__), "../lib")))
require "jasmine"

0 comments on commit 405cb59

Please sign in to comment.