public
Description: Ruby on Rails
Homepage: http://rubyonrails.org
Clone URL: git://github.com/rails/rails.git
Use "/usr/bin/env ruby" instead of "/usr/local/bin/ruby"

Signed-off-by: Joshua Peek <josh@joshpeek.com>
Tarmo Tänav (author)
Thu Jul 31 14:39:48 -0700 2008
josh (committer)
Thu Jul 31 14:39:48 -0700 2008
commit  0b9bfbdebf402f4a149359a069dbeb05ea989b14
tree    dfadf0b8f1048d55eb987be62a2f449a0fca268a
parent  656f0e7c6c9a305abaf9f9b7fb80479b6f94efce
...
1
2
3
 
 
 
4
5
 
6
7
8
...
14
15
16
17
 
18
19
20
21
22
23
 
24
25
26
...
29
30
31
32
33
 
...
 
 
 
1
2
3
4
 
5
6
7
8
...
14
15
16
 
17
18
19
20
21
22
 
23
24
25
26
...
29
30
31
 
32
33
0
@@ -1,8 +1,8 @@
0
-#!/usr/local/bin/ruby -w
0
-                                                                                
0
-# This is a really simple session storage daemon, basically just a hash, 
0
+#!/usr/bin/env ruby
0
+
0
+# This is a really simple session storage daemon, basically just a hash,
0
 # which is enabled for DRb access.
0
-                                                                                
0
+
0
 require 'drb'
0
 
0
 session_hash = Hash.new
0
@@ -14,13 +14,13 @@ class <<session_hash
0
       super(key, value)
0
     end
0
   end
0
-  
0
+
0
   def [](key)
0
     @mutex.synchronize do
0
       super(key)
0
     end
0
   end
0
-  
0
+
0
   def delete(key)
0
     @mutex.synchronize do
0
       super(key)
0
@@ -29,4 +29,4 @@ class <<session_hash
0
 end
0
 
0
 DRb.start_service('druby://127.0.0.1:9192', session_hash)
0
-DRb.thread.join
0
\ No newline at end of file
0
+DRb.thread.join
...
1
 
2
3
4
...
 
1
2
3
4
0
@@ -1,4 +1,4 @@
0
-#!/usr/local/bin/ruby
0
+#!/usr/bin/env ruby
0
 #
0
 # You may specify the path to the FastCGI crash log (a log of unhandled
0
 # exceptions which forced the FastCGI instance to exit, great for debugging)
...
1
 
2
3
4
...
7
8
9
10
11
 
...
 
1
2
3
4
...
7
8
9
 
10
11
0
@@ -1,4 +1,4 @@
0
-#!/usr/local/bin/ruby
0
+#!/usr/bin/env ruby
0
 
0
 require File.dirname(__FILE__) + "/../config/environment" unless defined?(RAILS_ROOT)
0
 
0
@@ -7,4 +7,4 @@ require File.dirname(__FILE__) + "/../config/environment" unless defined?(RAILS_
0
 require "dispatcher"
0
 
0
 ADDITIONAL_LOAD_PATHS.reverse.each { |dir| $:.unshift(dir) if File.directory?(dir) } if defined?(Apache::RubyRun)
0
-Dispatcher.dispatch
0
\ No newline at end of file
0
+Dispatcher.dispatch
...
1
 
2
3
4
...
94
95
96
97
98
 
...
 
1
2
3
4
...
94
95
96
 
97
98
0
@@ -1,4 +1,4 @@
0
-#!/usr/local/bin/ruby
0
+#!/usr/bin/env ruby
0
 
0
 require 'drb'
0
 
0
@@ -94,4 +94,4 @@ end
0
 
0
 $stdout.write output
0
 $stdout.flush
0
-$stdout.close
0
\ No newline at end of file
0
+$stdout.close
...
1
 
2
3
4
...
83
84
85
86
87
 
...
 
1
2
3
4
...
83
84
85
 
86
87
0
@@ -1,4 +1,4 @@
0
-#!/usr/local/bin/ruby
0
+#!/usr/bin/env ruby
0
 
0
 require 'stringio'
0
 require 'fileutils'
0
@@ -83,4 +83,4 @@ end
0
 socket_path = ARGV.shift
0
 timeout = (ARGV.shift || 90).to_i
0
 
0
-Listener.new(timeout, socket_path)
0
\ No newline at end of file
0
+Listener.new(timeout, socket_path)
...
1
 
2
3
4
...
66
67
68
69
70
 
...
 
1
2
3
4
...
66
67
68
 
69
70
0
@@ -1,4 +1,4 @@
0
-#!/usr/local/bin/ruby
0
+#!/usr/bin/env ruby
0
 
0
 require 'drb'
0
 require 'thread'
0
@@ -66,4 +66,4 @@ end
0
 socket_path = ARGV.shift
0
 instances = ARGV.shift.to_i
0
 t = Tracker.new(instances, socket_path)
0
-t.background(ARGV.first ? ARGV.shift.to_i : 90)
0
\ No newline at end of file
0
+t.background(ARGV.first ? ARGV.shift.to_i : 90)

Comments