Commit ae00e800 authored by jbbarth's avatar jbbarth

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: https://svn.redmine.org/redmine/trunk@4359 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 8e32a11c
#!/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"
require 'commands/about'
......
#!/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'
#!/usr/bin/env ruby
require File.dirname(__FILE__) + '/../config/boot'
require 'commands/console'
\ No newline at end of file
require File.expand_path('../../config/boot', __FILE__)
require 'commands/console'
#!/usr/bin/env ruby
require File.dirname(__FILE__) + '/../config/boot'
require File.expand_path('../../config/boot', __FILE__)
require 'commands/dbconsole'
#!/usr/bin/env ruby
require File.dirname(__FILE__) + '/../config/boot'
require 'commands/destroy'
\ No newline at end of file
require File.expand_path('../../config/boot', __FILE__)
require 'commands/destroy'
#!/usr/bin/env ruby
require File.dirname(__FILE__) + '/../config/boot'
require 'commands/generate'
\ No newline at end of file
require File.expand_path('../../config/boot', __FILE__)
require 'commands/generate'
#!/usr/bin/env ruby
require File.dirname(__FILE__) + '/../../config/boot'
require File.expand_path('../../../config/boot', __FILE__)
require 'commands/performance/benchmarker'
#!/usr/bin/env ruby
require File.dirname(__FILE__) + '/../../config/boot'
require File.expand_path('../../../config/boot', __FILE__)
require 'commands/performance/profiler'
#!/usr/bin/env ruby
require File.dirname(__FILE__) + '/../../config/boot'
require File.expand_path('../../config/boot', __FILE__)
require 'commands/performance/request'
#!/usr/bin/env ruby
require File.dirname(__FILE__) + '/../config/boot'
require 'commands/plugin'
\ No newline at end of file
require File.expand_path('../../config/boot', __FILE__)
require 'commands/plugin'
#!/usr/bin/env ruby
require File.dirname(__FILE__) + '/../../config/boot'
require File.expand_path('../../config/boot', __FILE__)
require 'commands/process/inspector'
#!/usr/bin/env ruby
require File.dirname(__FILE__) + '/../../config/boot'
require File.expand_path('../../config/boot', __FILE__)
require 'commands/process/reaper'
#!/usr/bin/env ruby
require File.dirname(__FILE__) + '/../../config/boot'
require File.expand_path('../../config/boot', __FILE__)
require 'commands/process/spawner'
#!/usr/bin/env ruby
require File.dirname(__FILE__) + '/../../config/boot'
require File.expand_path('../../config/boot', __FILE__)
require 'commands/process/spinner'
#!/usr/bin/env ruby
require File.dirname(__FILE__) + '/../config/boot'
require 'commands/runner'
\ No newline at end of file
require File.expand_path('../../config/boot', __FILE__)
require 'commands/runner'
#!/usr/bin/env ruby
require File.dirname(__FILE__) + '/../config/boot'
require 'commands/server'
\ No newline at end of file
require File.expand_path('../../config/boot', __FILE__)
require 'commands/server'
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment