From 97857409a984a2a99348fcff75381b41143b1d4a Mon Sep 17 00:00:00 2001
From: Alexey Verkhovsky
Date: Thu, 20 Jan 2005 00:05:23 +0000
Subject: [PATCH] Added -w to all shebangs [Florian Gross]
---
instiki | 2 +-
instiki.rb | 2 +-
test/functional/wiki_controller_test.rb | 2 +-
test/unit/diff_test.rb | 2 +-
test/unit/page_test.rb | 2 +-
test/unit/redcloth_for_tex_test.rb | 2 +-
test/unit/revision_test.rb | 15 ++++++++++++++-
test/unit/uri_test.rb | 2 +-
test/unit/url_rewriting_hack_test.rb | 2 +-
test/unit/web_test.rb | 2 +-
test/unit/wiki_service_test.rb | 2 +-
test/unit/wiki_words_test.rb | 2 +-
12 files changed, 25 insertions(+), 12 deletions(-)
diff --git a/instiki b/instiki
index 0d054884..c004932c 100755
--- a/instiki
+++ b/instiki
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby
+#!/usr/bin/ruby -w
# Executable file for a gem
# must be same as ./instiki.rb
diff --git a/instiki.rb b/instiki.rb
index 522e84d2..55960d02 100755
--- a/instiki.rb
+++ b/instiki.rb
@@ -1,3 +1,3 @@
-#!/usr/bin/ruby
+#!/usr/bin/ruby -w
load File.dirname(__FILE__) + "/script/server"
diff --git a/test/functional/wiki_controller_test.rb b/test/functional/wiki_controller_test.rb
index 06d7555c..b477a0d1 100755
--- a/test/functional/wiki_controller_test.rb
+++ b/test/functional/wiki_controller_test.rb
@@ -1,4 +1,4 @@
-#!/bin/env ruby
+#!/bin/env ruby -w
# Uncomment the line below to enable pdflatex tests; don't forget to comment them again
# commiting to SVN
diff --git a/test/unit/diff_test.rb b/test/unit/diff_test.rb
index c79e387b..21e9d98f 100755
--- a/test/unit/diff_test.rb
+++ b/test/unit/diff_test.rb
@@ -1,4 +1,4 @@
-#!/bin/env ruby
+#!/bin/env ruby -w
require File.dirname(__FILE__) + '/../test_helper'
require 'diff'
diff --git a/test/unit/page_test.rb b/test/unit/page_test.rb
index fe1b513f..d61089d8 100755
--- a/test/unit/page_test.rb
+++ b/test/unit/page_test.rb
@@ -1,4 +1,4 @@
-#!/bin/env ruby
+#!/bin/env ruby -w
require File.dirname(__FILE__) + '/../test_helper'
require 'web'
diff --git a/test/unit/redcloth_for_tex_test.rb b/test/unit/redcloth_for_tex_test.rb
index e5a69eb1..d9237ed0 100755
--- a/test/unit/redcloth_for_tex_test.rb
+++ b/test/unit/redcloth_for_tex_test.rb
@@ -1,4 +1,4 @@
-#!/bin/env ruby
+#!/bin/env ruby -w
require File.dirname(__FILE__) + '/../test_helper'
require 'redcloth_for_tex'
diff --git a/test/unit/revision_test.rb b/test/unit/revision_test.rb
index fe9a17c1..251b00a0 100755
--- a/test/unit/revision_test.rb
+++ b/test/unit/revision_test.rb
@@ -1,4 +1,4 @@
-#!/bin/env ruby
+#!/bin/env ruby -w
require File.dirname(__FILE__) + '/../test_helper'
require 'web'
@@ -210,6 +210,19 @@ class RevisionTest < Test::Unit::TestCase
"today
", @page.revisions.last.display_diff
end
+ def test_list_with_tildas
+ list_with_tildas = <<-EOL
+ * "a":~b
+ * c~ d
+ EOL
+
+ assert_markup_parsed_as(
+ "a\n" +
+ "c~ d\n",
+ list_with_tildas)
+ end
+
+
def assert_markup_parsed_as(expected_output, input)
revision = Revision.new(@page, 1, input, Time.local(2004, 4, 4, 16, 50), 'AnAuthor')
diff --git a/test/unit/uri_test.rb b/test/unit/uri_test.rb
index 1b252fc9..f8c49f95 100755
--- a/test/unit/uri_test.rb
+++ b/test/unit/uri_test.rb
@@ -1,4 +1,4 @@
-#!/bin/env ruby
+#!/bin/env ruby -w
require File.dirname(__FILE__) + '/../test_helper'
require 'chunks/uri'
diff --git a/test/unit/url_rewriting_hack_test.rb b/test/unit/url_rewriting_hack_test.rb
index d29d34d9..7b018364 100755
--- a/test/unit/url_rewriting_hack_test.rb
+++ b/test/unit/url_rewriting_hack_test.rb
@@ -1,4 +1,4 @@
-#!/bin/env ruby
+#!/bin/env ruby -w
require File.dirname(__FILE__) + '/../test_helper'
require 'url_rewriting_hack'
diff --git a/test/unit/web_test.rb b/test/unit/web_test.rb
index 9de65c32..53acc5e3 100755
--- a/test/unit/web_test.rb
+++ b/test/unit/web_test.rb
@@ -1,4 +1,4 @@
-#!/bin/env ruby
+#!/bin/env ruby -w
require File.dirname(__FILE__) + '/../test_helper'
require 'wiki_service'
diff --git a/test/unit/wiki_service_test.rb b/test/unit/wiki_service_test.rb
index f1673caa..6246df97 100755
--- a/test/unit/wiki_service_test.rb
+++ b/test/unit/wiki_service_test.rb
@@ -1,4 +1,4 @@
-#!/bin/env ruby
+#!/bin/env ruby -w
require File.dirname(__FILE__) + '/../test_helper'
require 'wiki_service'
diff --git a/test/unit/wiki_words_test.rb b/test/unit/wiki_words_test.rb
index 2b2433d5..bde3eeac 100755
--- a/test/unit/wiki_words_test.rb
+++ b/test/unit/wiki_words_test.rb
@@ -1,4 +1,4 @@
-#!/bin/env ruby
+#!/bin/env ruby -w
require File.dirname(__FILE__) + '/../test_helper'
require 'wiki_words'