diff options
-rw-r--r-- | railties/Rakefile | 1 | ||||
-rw-r--r-- | railties/bin/breakpointing | 8 | ||||
-rw-r--r-- | railties/bin/breakpointing_for_gem | 4 |
3 files changed, 6 insertions, 7 deletions
diff --git a/railties/Rakefile b/railties/Rakefile index bb440edd36..d39471862e 100644 --- a/railties/Rakefile +++ b/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 diff --git a/railties/bin/breakpointing b/railties/bin/breakpointing index a3e325fe04..4ac3e7c3c9 100644 --- a/railties/bin/breakpointing +++ b/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' diff --git a/railties/bin/breakpointing_for_gem b/railties/bin/breakpointing_for_gem new file mode 100644 index 0000000000..1366641582 --- /dev/null +++ b/railties/bin/breakpointing_for_gem @@ -0,0 +1,4 @@ +#!/usr/local/bin/ruby +require 'rubygems' +require_gem 'rails' +require 'breakpoint_client' |