Permalink
Browse files

Make encoding directives consistent

  • Loading branch information...
sferik committed Sep 27, 2011
1 parent dc83986 commit 135da04007bad23b70f56d46c2b505b608c8b988
View
@@ -1,6 +1,5 @@
-#encoding: UTF-8
-# require File.dirname(__FILE__) + '/spec_helper'
-require 'spec_helper'
+# encoding: utf-8
+require File.dirname(__FILE__) + '/spec_helper'
class TestAutolink
include Twitter::Autolink
View
@@ -1,4 +1,4 @@
-#encoding: UTF-8
+# encoding: utf-8
require File.dirname(__FILE__) + '/spec_helper'
class TestExtractor
@@ -1,4 +1,4 @@
-#encoding: UTF-8
+# encoding: utf-8
require File.dirname(__FILE__) + '/spec_helper'
class TestHitHighlighter
View
@@ -1,6 +1,5 @@
-# encoding: UTF-8
-
-require 'spec_helper'
+# encoding: utf-8
+require File.dirname(__FILE__) + '/spec_helper'
describe Twitter::Rewriter do
def original_text; end
View
@@ -1,4 +1,5 @@
-#encoding: UTF-8
+# encoding: utf-8
+
module TestUrls
VALID = [
"http://google.com",
@@ -1,3 +1,4 @@
+# encoding: utf-8
require File.dirname(__FILE__) + '/spec_helper'
major, minor, patch = RUBY_VERSION.split('.')
View
@@ -1,4 +1,4 @@
-#encoding: UTF-8
+# encoding: utf-8
require File.dirname(__FILE__) + '/spec_helper'
describe Twitter::Unicode do
@@ -28,4 +28,4 @@
lambda { Twitter::Unicode::FFFFFF }.should raise_error(NameError)
end
-end
+end
View
@@ -1,4 +1,4 @@
-#encoding: BINARY
+# encoding: binary
require File.dirname(__FILE__) + '/spec_helper'
class TestValidation
@@ -40,4 +40,4 @@ class TestValidation
TestValidation.new.tweet_invalid?(char * 141).should == :too_long
end
-end
+end
View
@@ -1,4 +1,6 @@
-spec = Gem::Specification.new do |s|
+# encoding: utf-8
+
+Gem::Specification.new do |s|
s.name = "twitter-text"
s.version = "1.4.11"
s.authors = ["Matt Sanford", "Patrick Ewing", "Ben Cherry", "Britt Selvitelle",

0 comments on commit 135da04

Please sign in to comment.