You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by Sebastian Bazley <se...@apache.org> on 2016/03/20 01:58:06 UTC
[whimsy.git] [1/1] Commit 0114d4f: __dir__ requires 2.0
Commit 0114d4fff2b019ef3348ca0400d57ccc8f34bc2f:
__dir__ requires 2.0
Branch: refs/heads/master
Author: Sebb <se...@apache.org>
Committer: Sebb <se...@apache.org>
Pusher: sebb <se...@apache.org>
------------------------------------------------------------
www/board/test.cgi | +++ -
www/committers/test.cgi | +++ -
www/members/test.cgi | +++ -
------------------------------------------------------------
12 changes: 9 additions, 3 deletions.
------------------------------------------------------------
diff --git a/www/board/test.cgi b/www/board/test.cgi
index 7fa132d..f3d862e 100755
--- a/www/board/test.cgi
+++ b/www/board/test.cgi
@@ -1,2 +1,4 @@
#!/usr/bin/env ruby
-load "#{__dir__}/../test.cgi"
+# __dir__ requires 2.0
+#load "#{__dir__}/../test.cgi"
+load File.expand_path('../../test.cgi',__FILE__)
diff --git a/www/committers/test.cgi b/www/committers/test.cgi
index 7fa132d..f3d862e 100755
--- a/www/committers/test.cgi
+++ b/www/committers/test.cgi
@@ -1,2 +1,4 @@
#!/usr/bin/env ruby
-load "#{__dir__}/../test.cgi"
+# __dir__ requires 2.0
+#load "#{__dir__}/../test.cgi"
+load File.expand_path('../../test.cgi',__FILE__)
diff --git a/www/members/test.cgi b/www/members/test.cgi
index 7fa132d..f3d862e 100755
--- a/www/members/test.cgi
+++ b/www/members/test.cgi
@@ -1,2 +1,4 @@
#!/usr/bin/env ruby
-load "#{__dir__}/../test.cgi"
+# __dir__ requires 2.0
+#load "#{__dir__}/../test.cgi"
+load File.expand_path('../../test.cgi',__FILE__)