From 576b58803635de9d16dd7cd1c2a68b692ba11743 Mon Sep 17 00:00:00 2001 From: Louise Crow Date: Fri, 15 May 2015 13:26:50 +0100 Subject: Add source file encoding for all ruby files. This is important under ruby 1.9 in order to determine the encoding that will be used for new strings created in the code in the file. --- lib/attachment_to_html/adapters/could_not_convert.rb | 3 ++- lib/attachment_to_html/adapters/google_docs_viewer.rb | 1 + lib/attachment_to_html/adapters/pdf.rb | 1 + lib/attachment_to_html/adapters/rtf.rb | 1 + lib/attachment_to_html/adapters/text.rb | 1 + lib/attachment_to_html/attachment_to_html.rb | 1 + lib/attachment_to_html/view.rb | 1 + 7 files changed, 8 insertions(+), 1 deletion(-) (limited to 'lib/attachment_to_html') diff --git a/lib/attachment_to_html/adapters/could_not_convert.rb b/lib/attachment_to_html/adapters/could_not_convert.rb index 8e4bf39dc..f23583590 100644 --- a/lib/attachment_to_html/adapters/could_not_convert.rb +++ b/lib/attachment_to_html/adapters/could_not_convert.rb @@ -1,3 +1,4 @@ +# -*- encoding : utf-8 -*- module AttachmentToHTML module Adapters class CouldNotConvert @@ -46,4 +47,4 @@ module AttachmentToHTML end end -end \ No newline at end of file +end diff --git a/lib/attachment_to_html/adapters/google_docs_viewer.rb b/lib/attachment_to_html/adapters/google_docs_viewer.rb index 991fbb757..343a89791 100644 --- a/lib/attachment_to_html/adapters/google_docs_viewer.rb +++ b/lib/attachment_to_html/adapters/google_docs_viewer.rb @@ -1,3 +1,4 @@ +# -*- encoding : utf-8 -*- module AttachmentToHTML module Adapters # Renders the attachment in a Google Docs Viewer diff --git a/lib/attachment_to_html/adapters/pdf.rb b/lib/attachment_to_html/adapters/pdf.rb index a010b0342..f99bdc78b 100644 --- a/lib/attachment_to_html/adapters/pdf.rb +++ b/lib/attachment_to_html/adapters/pdf.rb @@ -1,3 +1,4 @@ +# -*- encoding : utf-8 -*- module AttachmentToHTML module Adapters # Convert application/pdf documents in to HTML diff --git a/lib/attachment_to_html/adapters/rtf.rb b/lib/attachment_to_html/adapters/rtf.rb index 95f499689..90478d9ca 100644 --- a/lib/attachment_to_html/adapters/rtf.rb +++ b/lib/attachment_to_html/adapters/rtf.rb @@ -1,3 +1,4 @@ +# -*- encoding : utf-8 -*- module AttachmentToHTML module Adapters # Convert application/rtf documents in to HTML diff --git a/lib/attachment_to_html/adapters/text.rb b/lib/attachment_to_html/adapters/text.rb index e99183f0e..7e22422e2 100644 --- a/lib/attachment_to_html/adapters/text.rb +++ b/lib/attachment_to_html/adapters/text.rb @@ -1,3 +1,4 @@ +# -*- encoding : utf-8 -*- module AttachmentToHTML module Adapters # Convert text/plain documents in to HTML diff --git a/lib/attachment_to_html/attachment_to_html.rb b/lib/attachment_to_html/attachment_to_html.rb index 2f7c08264..e95f67262 100644 --- a/lib/attachment_to_html/attachment_to_html.rb +++ b/lib/attachment_to_html/attachment_to_html.rb @@ -1,3 +1,4 @@ +# -*- encoding : utf-8 -*- require 'view' Dir[File.dirname(__FILE__) + '/adapters/*.rb'].each do |file| diff --git a/lib/attachment_to_html/view.rb b/lib/attachment_to_html/view.rb index e6991d44e..0d5b205b7 100644 --- a/lib/attachment_to_html/view.rb +++ b/lib/attachment_to_html/view.rb @@ -1,3 +1,4 @@ +# -*- encoding : utf-8 -*- module AttachmentToHTML class View < ERB -- cgit v1.2.3