Permalink
Browse files

Added magic encoding strings

  • Loading branch information...
1 parent f28f154 commit a66ee25566eeeac288f97ec1443ece5e1e19900f @dagbrown committed Feb 6, 2013
View
@@ -1,3 +1,4 @@
+# -*- encoding : utf-8 -*-
SCRIPT_LINES__ = {} unless defined? SCRIPT_LINES__
module COVERAGE__
@@ -45,3 +46,4 @@ def self.trace_func(event, file, line, id, binding, klass)
set_trace_func(COVERAGE__.method(:trace_func).to_proc)
end
+
View
@@ -1,4 +1,5 @@
#!/opt/bin/ruby
+# -*- encoding : utf-8 -*-
#------------------------------------------------------------------------
# Mail filter package
#------------------------------------------------------------------------
View
@@ -1,3 +1,4 @@
+# -*- encoding : utf-8 -*-
#------------------------------------------------------------------------
# Mail filter invocation script
#------------------------------------------------------------------------
@@ -50,3 +51,4 @@
rescue CouldNotProcessMailError
exit 75
end
+
View
@@ -1,4 +1,5 @@
#!/opt/bin/ruby -w
+# -*- encoding : utf-8 -*-
#------------------------------------------------------------------------
# Code to handle saving a message to a mailbox (and a framework for detecting
View
@@ -1,4 +1,5 @@
#!/opt/bin/ruby -w
+# -*- encoding : utf-8 -*-
module Gurgitate
class IllegalHeader < RuntimeError ; end
View
@@ -1,4 +1,5 @@
#!/opt/bin/ruby -w
+# -*- encoding : utf-8 -*-
require "gurgitate/header"
@@ -1,4 +1,5 @@
#!/opt/bin/ruby -w
+# -*- encoding : utf-8 -*-
require "gurgitate/headers"
View
@@ -1,3 +1,4 @@
+# -*- encoding : utf-8 -*-
# Contains the class Gurgitate::Mailmessage, used to handle the parsing
# of existing messages and the creation of new messages.
View
@@ -1,4 +1,5 @@
#!/opt/bin/ruby -w
+# -*- encoding : utf-8 -*-
#------------------------------------------------------------------------
# Handles a complete mail message
View
@@ -1,3 +1,4 @@
+# -*- encoding : utf-8 -*-
#!/usr/bin/ruby -w
require "rbconfig"
@@ -101,3 +102,4 @@ def self.install(prefix=nil)
if __FILE__ == $0 then
Gurgitate::Install.install()
end
+
View
@@ -1,3 +1,4 @@
+# -*- encoding : utf-8 -*-
#!/opt/bin/ruby -w
#------------------------------------------------------------------------
@@ -27,3 +28,4 @@ def runtests(testcases)
end
runtests testcases
end
+
View
@@ -1,3 +1,4 @@
+# -*- encoding : utf-8 -*-
builddir = File.dirname(File.dirname(__FILE__))
unless $:[0] == builddir
@@ -60,3 +61,4 @@ def test_truth
assert true
end
end
+
View
@@ -1,3 +1,4 @@
+# -*- encoding : utf-8 -*-
require 'rubygems'
gem 'test-unit'
require 'test/unit'
@@ -32,3 +33,4 @@ def runtests(testcases)
end
runtests testcases
end
+
@@ -1,3 +1,4 @@
+# -*- encoding : utf-8 -*-
builddir = File.dirname(File.dirname(__FILE__))
unless $:[0] == builddir
@@ -39,3 +40,4 @@ def test_illegal_folderstyle_syntax
end
end
end
+
View
@@ -1,3 +1,4 @@
+# -*- encoding : utf-8 -*-
builddir = File.dirname(File.dirname(__FILE__))
unless $:[0] == builddir
@@ -99,3 +100,4 @@ def test_basic_delivery_mh
assert_equal File.read(seq), "unseen: 1\n"
end
end
+
View
@@ -1,3 +1,4 @@
+# -*- encoding : utf-8 -*-
builddir = File.dirname(File.dirname(__FILE__))
unless $:[0] == builddir
@@ -219,3 +220,4 @@ def test_message_written_correctly
end
end
+
@@ -1,3 +1,4 @@
+# -*- encoding : utf-8 -*-
builddir = File.join(File.dirname(__FILE__),"..")
unless $:[0] == builddir
@@ -41,3 +42,4 @@ def test_process_rules_not_found
assert File.exists?(@spoolfile)
end
end
+
@@ -1,3 +1,4 @@
+# -*- encoding : utf-8 -*-
builddir = File.dirname(File.dirname(__FILE__))
unless $:[0] == builddir
@@ -295,3 +296,4 @@ def test_message_written_correctly
assert_equal("Subject: test", mess.header("Subject"), "Subject header wrong")
end
end
+
View
@@ -1,3 +1,4 @@
+# -*- encoding : utf-8 -*-
builddir = File.join(File.dirname(__FILE__),"..")
unless $:[0] == builddir
@@ -168,3 +169,4 @@ def test_string_match
end
end
+
View
@@ -1,3 +1,4 @@
+# -*- encoding : utf-8 -*-
require 'rubygems'
gem 'test-unit'
require 'test/unit'
@@ -508,3 +509,4 @@ def test_match_string
end
+
@@ -1,3 +1,4 @@
+# -*- encoding : utf-8 -*-
builddir = File.join(File.dirname(__FILE__),"..")
unless $:[0] == builddir
@@ -16,3 +17,4 @@ def setup
:subject => "Subject line"
end
end
+
@@ -1,3 +1,4 @@
+# -*- encoding : utf-8 -*-
require 'rubygems'
gem 'test-unit'
require 'test/unit'
@@ -57,3 +58,4 @@ def test_match_string
assert !result
end
end
+
@@ -1,3 +1,4 @@
+# -*- encoding : utf-8 -*-
require 'rubygems'
gem 'test-unit'
require 'test/unit'
@@ -429,3 +430,4 @@ def test_broken_spam
"There should be no Lunar Linux mailing list in Cc line")
end
end
+
@@ -1,3 +1,4 @@
+# -*- encoding : utf-8 -*-
require 'rubygems'
gem 'test-unit'
require 'test/unit'
@@ -60,3 +61,4 @@ def test_match_string
end
end
+
View
@@ -1,3 +1,4 @@
+# -*- encoding : utf-8 -*-
builddir = File.dirname(File.dirname(__FILE__))
unless $:[0] == builddir
@@ -83,3 +84,4 @@ def test_filter
end
end
+
View
@@ -1,3 +1,4 @@
+# -*- encoding : utf-8 -*-
builddir = File.join(File.dirname(__FILE__),"..")
puts builddir
@@ -113,3 +114,4 @@ def test_process_rules_not_found
assert File.exists?(@spoolfile)
end
end
+
View
@@ -1,3 +1,4 @@
+# -*- encoding : utf-8 -*-
builddir = File.join(File.dirname(__FILE__),"..")
unless $:[0] == builddir
@@ -116,3 +117,4 @@ def test_creation_incrementally
assert_equal "To: to@test", (mess.headers["To"]).to_s
end
end
+

0 comments on commit a66ee25

Please sign in to comment.