Skip to content

Commit

Permalink
Add in # encoding: utf-8 comments to the top of ruby file.
Browse files Browse the repository at this point in the history
  • Loading branch information
quamen committed Oct 13, 2011
1 parent f4f4ee6 commit 008f857
Show file tree
Hide file tree
Showing 16 changed files with 40 additions and 5 deletions.
2 changes: 2 additions & 0 deletions lib/postmark.rb
@@ -1,3 +1,5 @@
# encoding: utf-8

require "postmark/version"

def require_local(file)
Expand Down
4 changes: 3 additions & 1 deletion lib/postmark/attachments_fix_for_mail.rb
@@ -1,3 +1,5 @@
# encoding: utf-8

module Postmark

#
Expand Down Expand Up @@ -40,4 +42,4 @@ def remove_postmark_attachments_from_standard_fields

end

end
end
2 changes: 2 additions & 0 deletions lib/postmark/bounce.rb
@@ -1,3 +1,5 @@
# encoding: utf-8

require 'time'

module Postmark
Expand Down
4 changes: 3 additions & 1 deletion lib/postmark/handlers/mail.rb
@@ -1,3 +1,5 @@
# encoding: utf-8

module Mail
class Postmark

Expand All @@ -13,4 +15,4 @@ def deliver!(mail)
end

end
end
end
2 changes: 2 additions & 0 deletions lib/postmark/http_client.rb
@@ -1,3 +1,5 @@
# encoding: utf-8

require 'cgi'

module Postmark
Expand Down
2 changes: 2 additions & 0 deletions lib/postmark/json.rb
@@ -1,3 +1,5 @@
# encoding: utf-8

module Postmark
module Json

Expand Down
4 changes: 3 additions & 1 deletion lib/postmark/message_extensions/mail.rb
@@ -1,3 +1,5 @@
# encoding: utf-8

module Mail
class Message

Expand All @@ -24,4 +26,4 @@ def body_text
end

end
end
end
4 changes: 3 additions & 1 deletion lib/postmark/message_extensions/shared.rb
@@ -1,3 +1,5 @@
# encoding: utf-8

module Postmark
module SharedMessageExtensions

Expand Down Expand Up @@ -30,4 +32,4 @@ def postmark_attachments
end

end
end
end
2 changes: 2 additions & 0 deletions lib/postmark/message_extensions/tmail.rb
@@ -1,3 +1,5 @@
# encoding: utf-8

##
# author: http://fernandoguillen.info
# date: 2008-08-27
Expand Down
2 changes: 2 additions & 0 deletions lib/postmark/response_parsers/active_support.rb
@@ -1,3 +1,5 @@
# encoding: utf-8

# assume activesupport is already loaded
module Postmark
module ResponseParsers
Expand Down
3 changes: 3 additions & 0 deletions lib/postmark/response_parsers/json.rb
@@ -1,4 +1,7 @@
# encoding: utf-8

require 'json'

module Postmark
module ResponseParsers
module Json
Expand Down
6 changes: 5 additions & 1 deletion lib/postmark/response_parsers/yajl.rb
@@ -1,5 +1,9 @@
# encoding: utf-8

require 'yajl'

Yajl::Encoder.enable_json_gem_compatability

module Postmark
module ResponseParsers
module Yajl
Expand All @@ -8,4 +12,4 @@ def self.decode(data)
end
end
end
end
end
2 changes: 2 additions & 0 deletions lib/postmark/version.rb
@@ -1,3 +1,5 @@
# encoding: utf-8

module Postmark
VERSION = "0.0.1"
end
2 changes: 2 additions & 0 deletions spec/bounce_spec.rb
@@ -1,3 +1,5 @@
# encoding: utf-8

require 'spec_helper'

describe "Bounce" do
Expand Down
2 changes: 2 additions & 0 deletions spec/postmark_spec.rb
@@ -1,3 +1,5 @@
# encoding: utf-8

require 'spec_helper'

describe "Postmark" do
Expand Down
2 changes: 2 additions & 0 deletions spec/spec_helper.rb
@@ -1,3 +1,5 @@
# encoding: utf-8

$LOAD_PATH.unshift(File.dirname(__FILE__))
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
require 'rubygems'
Expand Down

0 comments on commit 008f857

Please sign in to comment.