diff options
author | Louise Crow <louise.crow@gmail.com> | 2015-05-15 13:26:50 +0100 |
---|---|---|
committer | Louise Crow <louise.crow@gmail.com> | 2015-05-15 13:26:50 +0100 |
commit | 576b58803635de9d16dd7cd1c2a68b692ba11743 (patch) | |
tree | bfddbeaad716b5eeabebb0dc28e11370ba7f89f0 /lib/attachment_to_html | |
parent | 7d9de8a5ffe67e6bc49271a082c1d8e43dbb0f03 (diff) |
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.
Diffstat (limited to 'lib/attachment_to_html')
-rw-r--r-- | lib/attachment_to_html/adapters/could_not_convert.rb | 3 | ||||
-rw-r--r-- | lib/attachment_to_html/adapters/google_docs_viewer.rb | 1 | ||||
-rw-r--r-- | lib/attachment_to_html/adapters/pdf.rb | 1 | ||||
-rw-r--r-- | lib/attachment_to_html/adapters/rtf.rb | 1 | ||||
-rw-r--r-- | lib/attachment_to_html/adapters/text.rb | 1 | ||||
-rw-r--r-- | lib/attachment_to_html/attachment_to_html.rb | 1 | ||||
-rw-r--r-- | lib/attachment_to_html/view.rb | 1 |
7 files changed, 8 insertions, 1 deletions
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 |