1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
|
Description: fix paths wrt Debian package
The original source assumes the package was installed with rubygems, which is
not the case with Debian packages.
.
This patch is probably, but not certainly, Debian-specific
Author: Antonio Terceiro <terceiro@debian.org>
--- ruby-spring-1.1.3.orig/lib/spring/application_manager.rb
+++ ruby-spring-1.1.3/lib/spring/application_manager.rb
@@ -101,7 +101,6 @@ module Spring
"SPRING_PRELOAD" => preload ? "1" : "0"
},
"ruby",
- "-I", File.expand_path("../..", __FILE__),
"-e", "require 'spring/application/boot'",
3 => child_socket
)
--- ruby-spring-1.1.3.orig/lib/spring/binstub.rb
+++ ruby-spring-1.1.3/lib/spring/binstub.rb
@@ -1,5 +1,5 @@
command = File.basename($0)
-bin_path = File.expand_path("../../../bin/spring", __FILE__)
+bin_path = '/usr/bin/spring'
if command == "spring"
load bin_path
|