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:
parent
bed79f523b
commit
27049b848d
|
@ -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'
|
||||||
|
|
||||||
|
|
|
@ -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'
|
||||||
|
|
|
@ -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'
|
||||||
|
|
|
@ -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'
|
||||||
|
|
|
@ -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'
|
||||||
|
|
|
@ -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'
|
||||||
|
|
|
@ -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'
|
||||||
|
|
|
@ -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'
|
||||||
|
|
|
@ -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'
|
||||||
|
|
|
@ -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'
|
||||||
|
|
|
@ -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'
|
||||||
|
|
|
@ -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'
|
||||||
|
|
|
@ -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'
|
||||||
|
|
|
@ -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'
|
||||||
|
|
|
@ -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'
|
||||||
|
|
|
@ -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'
|
||||||
|
|
Loading…
Reference in New Issue