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 7a427a83ca

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4359 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Baptiste Barth 2010-11-02 00:20:21 +00:00
parent bed79f523b
commit 27049b848d
16 changed files with 23 additions and 23 deletions

View File

@ -1,5 +1,5 @@
#!/usr/bin/env ruby #!/usr/bin/env ruby
require File.dirname(__FILE__) + '/../config/boot' require File.expand_path('../../config/boot', __FILE__)
$LOAD_PATH.unshift "#{RAILTIES_PATH}/builtin/rails_info" $LOAD_PATH.unshift "#{RAILTIES_PATH}/builtin/rails_info"
require 'commands/about' require 'commands/about'

View File

@ -1,3 +1,3 @@
#!/usr/bin/env ruby #!/usr/bin/env ruby
require File.dirname(__FILE__) + '/../config/boot' require File.expand_path('../../config/boot', __FILE__)
require 'commands/breakpointer' require 'commands/breakpointer'

View File

@ -1,3 +1,3 @@
#!/usr/bin/env ruby #!/usr/bin/env ruby
require File.dirname(__FILE__) + '/../config/boot' require File.expand_path('../../config/boot', __FILE__)
require 'commands/console' require 'commands/console'

View File

@ -1,3 +1,3 @@
#!/usr/bin/env ruby #!/usr/bin/env ruby
require File.dirname(__FILE__) + '/../config/boot' require File.expand_path('../../config/boot', __FILE__)
require 'commands/dbconsole' require 'commands/dbconsole'

View File

@ -1,3 +1,3 @@
#!/usr/bin/env ruby #!/usr/bin/env ruby
require File.dirname(__FILE__) + '/../config/boot' require File.expand_path('../../config/boot', __FILE__)
require 'commands/destroy' require 'commands/destroy'

View File

@ -1,3 +1,3 @@
#!/usr/bin/env ruby #!/usr/bin/env ruby
require File.dirname(__FILE__) + '/../config/boot' require File.expand_path('../../config/boot', __FILE__)
require 'commands/generate' require 'commands/generate'

View File

@ -1,3 +1,3 @@
#!/usr/bin/env ruby #!/usr/bin/env ruby
require File.dirname(__FILE__) + '/../../config/boot' require File.expand_path('../../../config/boot', __FILE__)
require 'commands/performance/benchmarker' require 'commands/performance/benchmarker'

View File

@ -1,3 +1,3 @@
#!/usr/bin/env ruby #!/usr/bin/env ruby
require File.dirname(__FILE__) + '/../../config/boot' require File.expand_path('../../../config/boot', __FILE__)
require 'commands/performance/profiler' require 'commands/performance/profiler'

View File

@ -1,3 +1,3 @@
#!/usr/bin/env ruby #!/usr/bin/env ruby
require File.dirname(__FILE__) + '/../../config/boot' require File.expand_path('../../config/boot', __FILE__)
require 'commands/performance/request' require 'commands/performance/request'

View File

@ -1,3 +1,3 @@
#!/usr/bin/env ruby #!/usr/bin/env ruby
require File.dirname(__FILE__) + '/../config/boot' require File.expand_path('../../config/boot', __FILE__)
require 'commands/plugin' require 'commands/plugin'

View File

@ -1,3 +1,3 @@
#!/usr/bin/env ruby #!/usr/bin/env ruby
require File.dirname(__FILE__) + '/../../config/boot' require File.expand_path('../../config/boot', __FILE__)
require 'commands/process/inspector' require 'commands/process/inspector'

View File

@ -1,3 +1,3 @@
#!/usr/bin/env ruby #!/usr/bin/env ruby
require File.dirname(__FILE__) + '/../../config/boot' require File.expand_path('../../config/boot', __FILE__)
require 'commands/process/reaper' require 'commands/process/reaper'

View File

@ -1,3 +1,3 @@
#!/usr/bin/env ruby #!/usr/bin/env ruby
require File.dirname(__FILE__) + '/../../config/boot' require File.expand_path('../../config/boot', __FILE__)
require 'commands/process/spawner' require 'commands/process/spawner'

View File

@ -1,3 +1,3 @@
#!/usr/bin/env ruby #!/usr/bin/env ruby
require File.dirname(__FILE__) + '/../../config/boot' require File.expand_path('../../config/boot', __FILE__)
require 'commands/process/spinner' require 'commands/process/spinner'

View File

@ -1,3 +1,3 @@
#!/usr/bin/env ruby #!/usr/bin/env ruby
require File.dirname(__FILE__) + '/../config/boot' require File.expand_path('../../config/boot', __FILE__)
require 'commands/runner' require 'commands/runner'

View File

@ -1,3 +1,3 @@
#!/usr/bin/env ruby #!/usr/bin/env ruby
require File.dirname(__FILE__) + '/../config/boot' require File.expand_path('../../config/boot', __FILE__)
require 'commands/server' require 'commands/server'