diff options
author | Jean-Baptiste Barth <jeanbaptiste.barth@gmail.com> | 2010-11-02 00:20:21 +0000 |
---|---|---|
committer | Jean-Baptiste Barth <jeanbaptiste.barth@gmail.com> | 2010-11-02 00:20:21 +0000 |
commit | 27049b848dd48eca4df160e6024d66215230d260 (patch) | |
tree | 5fdc0eaedd653da2a4148cbad7814afefad7489c /script/breakpointer | |
parent | bed79f523bd64d900a4e615efe7eb3e0cfc0abd8 (diff) | |
download | redmine-27049b848dd48eca4df160e6024d66215230d260.tar.gz redmine-27049b848dd48eca4df160e6024d66215230d260.zip |
Use File#expand_path for require's in script/* for Ruby 1.9.2 compatibility. #4050
Since Ruby 1.9.2, LOAD_PATH does not include "." directory anymore, so
we should use absolute paths instead to ensure both 1.8.x and 1.9.x
compatibility. It has been included in railties 2.3.x branch since
july 2009, see http://github.com/rails/rails/commit/7a427a83ca4da92c70760007aaf313638a5d8374
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4359 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'script/breakpointer')
-rwxr-xr-x | script/breakpointer | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/script/breakpointer b/script/breakpointer index 64af76edd..d7db15af9 100755 --- a/script/breakpointer +++ b/script/breakpointer @@ -1,3 +1,3 @@ #!/usr/bin/env ruby -require File.dirname(__FILE__) + '/../config/boot' -require 'commands/breakpointer'
\ No newline at end of file +require File.expand_path('../../config/boot', __FILE__) +require 'commands/breakpointer' |