Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit cfe665790e37d5656466b29edf21be21d5d33062 1 parent 912a567
@dhh dhh authored
View
1  railties/Rakefile
@@ -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
View
8 railties/bin/breakpointing
@@ -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'
View
4 railties/bin/breakpointing_for_gem
@@ -0,0 +1,4 @@
+#!/usr/local/bin/ruby
+require 'rubygems'
+require_gem 'rails'
+require 'breakpoint_client'
Please sign in to comment.
Something went wrong with that request. Please try again.