Permalink
Browse files

Differentiate breakpointing on gem or not in an attempt to fix loopin…

…g problems

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@119 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent 912a567 commit cfe665790e37d5656466b29edf21be21d5d33062 @dhh dhh committed Dec 12, 2004
Showing with 6 additions and 7 deletions.
  1. +1 −0 railties/Rakefile
  2. +1 −7 railties/bin/breakpointing
  3. +4 −0 railties/bin/breakpointing_for_gem
View
@@ -202,6 +202,7 @@ end
task :copy_gem_environment do
cp "environments/shared_for_gem.rb", "#{PKG_DESTINATION}/config/environment.rb"
+ cp "bin/breakpointing_for_gem", "#{PKG_DESTINATION}/script/breakpointing"
end
@@ -1,9 +1,3 @@
#!/usr/local/bin/ruby
-begin
- require 'rubygems'
- require_gem 'rails'
-rescue LoadError
- require File.dirname(__FILE__) + '/../vendor/railties/lib/breakpoint'
-end
-
+$LOAD_PATH << File.dirname(__FILE__) + '/../vendor/railties/lib'
require 'breakpoint_client'
@@ -0,0 +1,4 @@
+#!/usr/local/bin/ruby
+require 'rubygems'
+require_gem 'rails'
+require 'breakpoint_client'

0 comments on commit cfe6657

Please sign in to comment.