summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Allen <dan.j.allen@gmail.com>2014-11-23 02:06:13 -0700
committerDan Allen <dan.j.allen@gmail.com>2014-11-23 02:25:58 -0700
commit4d0ae51641c773004355879f5642eb18b6046dce (patch)
tree12493c2213005910ce845678a13cb484666233e5
parent30a50f89ae864a22cd386c5269b1863182815588 (diff)
add UTF-8 encoding header to all Ruby files with logic
-rw-r--r--features/step_definitions.rb1
-rw-r--r--lib/asciidoctor.rb1
-rw-r--r--lib/asciidoctor/abstract_block.rb1
-rw-r--r--lib/asciidoctor/abstract_node.rb1
-rw-r--r--lib/asciidoctor/attribute_list.rb1
-rw-r--r--lib/asciidoctor/block.rb1
-rw-r--r--lib/asciidoctor/callouts.rb1
-rw-r--r--lib/asciidoctor/cli/invoker.rb1
-rw-r--r--lib/asciidoctor/cli/options.rb1
-rw-r--r--lib/asciidoctor/converter.rb1
-rw-r--r--lib/asciidoctor/converter/base.rb1
-rw-r--r--lib/asciidoctor/converter/composite.rb1
-rw-r--r--lib/asciidoctor/converter/docbook45.rb1
-rw-r--r--lib/asciidoctor/converter/docbook5.rb1
-rw-r--r--lib/asciidoctor/converter/factory.rb1
-rw-r--r--lib/asciidoctor/converter/html5.rb1
-rw-r--r--lib/asciidoctor/converter/template.rb1
-rw-r--r--lib/asciidoctor/document.rb1
-rw-r--r--lib/asciidoctor/extensions.rb1
-rw-r--r--lib/asciidoctor/helpers.rb1
-rw-r--r--lib/asciidoctor/inline.rb1
-rw-r--r--lib/asciidoctor/list.rb1
-rw-r--r--lib/asciidoctor/parser.rb1
-rw-r--r--lib/asciidoctor/path_resolver.rb1
-rw-r--r--lib/asciidoctor/reader.rb1
-rw-r--r--lib/asciidoctor/section.rb1
-rw-r--r--lib/asciidoctor/stylesheets.rb1
-rw-r--r--lib/asciidoctor/substitutors.rb1
-rw-r--r--lib/asciidoctor/table.rb1
-rw-r--r--lib/asciidoctor/timings.rb1
-rw-r--r--test/test_helper.rb1
31 files changed, 31 insertions, 0 deletions
diff --git a/features/step_definitions.rb b/features/step_definitions.rb
index d334b2c6..3c0ae6f5 100644
--- a/features/step_definitions.rb
+++ b/features/step_definitions.rb
@@ -1,3 +1,4 @@
+# encoding: UTF-8
ASCIIDOCTOR_PROJECT_DIR = File.dirname File.dirname(__FILE__)
Dir.chdir ASCIIDOCTOR_PROJECT_DIR
diff --git a/lib/asciidoctor.rb b/lib/asciidoctor.rb
index 99414d84..02d8c296 100644
--- a/lib/asciidoctor.rb
+++ b/lib/asciidoctor.rb
@@ -1,3 +1,4 @@
+# encoding: UTF-8
RUBY_ENGINE = 'unknown' unless defined? RUBY_ENGINE
RUBY_ENGINE_OPAL = (RUBY_ENGINE == 'opal')
RUBY_ENGINE_JRUBY = (RUBY_ENGINE == 'jruby')
diff --git a/lib/asciidoctor/abstract_block.rb b/lib/asciidoctor/abstract_block.rb
index d25a981a..3efb2456 100644
--- a/lib/asciidoctor/abstract_block.rb
+++ b/lib/asciidoctor/abstract_block.rb
@@ -1,3 +1,4 @@
+# encoding: UTF-8
module Asciidoctor
class AbstractBlock < AbstractNode
# Public: The types of content that this block can accomodate
diff --git a/lib/asciidoctor/abstract_node.rb b/lib/asciidoctor/abstract_node.rb
index 5925fe36..2c351761 100644
--- a/lib/asciidoctor/abstract_node.rb
+++ b/lib/asciidoctor/abstract_node.rb
@@ -1,3 +1,4 @@
+# encoding: UTF-8
module Asciidoctor
# Public: An abstract base class that provides state and methods for managing a
# node of AsciiDoc content. The state and methods on this class are comment to
diff --git a/lib/asciidoctor/attribute_list.rb b/lib/asciidoctor/attribute_list.rb
index 61552c29..8beb51fa 100644
--- a/lib/asciidoctor/attribute_list.rb
+++ b/lib/asciidoctor/attribute_list.rb
@@ -1,3 +1,4 @@
+# encoding: UTF-8
module Asciidoctor
# Public: Handles parsing AsciiDoc attribute lists into a Hash of key/value
# pairs. By default, attributes must each be separated by a comma and quotes
diff --git a/lib/asciidoctor/block.rb b/lib/asciidoctor/block.rb
index 42850e81..5d656290 100644
--- a/lib/asciidoctor/block.rb
+++ b/lib/asciidoctor/block.rb
@@ -1,3 +1,4 @@
+# encoding: UTF-8
module Asciidoctor
# Public: Methods for managing blocks of Asciidoc content in a section.
#
diff --git a/lib/asciidoctor/callouts.rb b/lib/asciidoctor/callouts.rb
index c6f9bb71..35f7ac4f 100644
--- a/lib/asciidoctor/callouts.rb
+++ b/lib/asciidoctor/callouts.rb
@@ -1,3 +1,4 @@
+# encoding: UTF-8
module Asciidoctor
# Public: Maintains a catalog of callouts and their associations.
class Callouts
diff --git a/lib/asciidoctor/cli/invoker.rb b/lib/asciidoctor/cli/invoker.rb
index 67bd6a54..08a687da 100644
--- a/lib/asciidoctor/cli/invoker.rb
+++ b/lib/asciidoctor/cli/invoker.rb
@@ -1,3 +1,4 @@
+# encoding: UTF-8
module Asciidoctor
module Cli
# Public Invocation class for starting Asciidoctor via CLI
diff --git a/lib/asciidoctor/cli/options.rb b/lib/asciidoctor/cli/options.rb
index a2facf25..324aa55f 100644
--- a/lib/asciidoctor/cli/options.rb
+++ b/lib/asciidoctor/cli/options.rb
@@ -1,3 +1,4 @@
+# encoding: UTF-8
module Asciidoctor
module Cli
diff --git a/lib/asciidoctor/converter.rb b/lib/asciidoctor/converter.rb
index 678ae29b..d4c7f147 100644
--- a/lib/asciidoctor/converter.rb
+++ b/lib/asciidoctor/converter.rb
@@ -1,3 +1,4 @@
+# encoding: UTF-8
module Asciidoctor
# A base module for defining converters that can be used to convert {AbstractNode}
# objects in a parsed AsciiDoc document to a backend format such as HTML or
diff --git a/lib/asciidoctor/converter/base.rb b/lib/asciidoctor/converter/base.rb
index e74d81d8..64bf76d6 100644
--- a/lib/asciidoctor/converter/base.rb
+++ b/lib/asciidoctor/converter/base.rb
@@ -1,3 +1,4 @@
+# encoding: UTF-8
module Asciidoctor
module Converter; end # required for Opal
diff --git a/lib/asciidoctor/converter/composite.rb b/lib/asciidoctor/converter/composite.rb
index a04e2166..d6cf8e78 100644
--- a/lib/asciidoctor/converter/composite.rb
+++ b/lib/asciidoctor/converter/composite.rb
@@ -1,3 +1,4 @@
+# encoding: UTF-8
module Asciidoctor
# A {Converter} implementation that delegates to the chain of {Converter}
# objects passed to the constructor. Selects the first {Converter} that
diff --git a/lib/asciidoctor/converter/docbook45.rb b/lib/asciidoctor/converter/docbook45.rb
index 3fd41d10..31457c7a 100644
--- a/lib/asciidoctor/converter/docbook45.rb
+++ b/lib/asciidoctor/converter/docbook45.rb
@@ -1,3 +1,4 @@
+# encoding: UTF-8
require 'asciidoctor/converter/docbook5'
module Asciidoctor
diff --git a/lib/asciidoctor/converter/docbook5.rb b/lib/asciidoctor/converter/docbook5.rb
index 1c270726..983de3dc 100644
--- a/lib/asciidoctor/converter/docbook5.rb
+++ b/lib/asciidoctor/converter/docbook5.rb
@@ -1,3 +1,4 @@
+# encoding: UTF-8
module Asciidoctor
# A built-in {Converter} implementation that generates DocBook 5 output
# similar to the docbook45 backend from AsciiDoc Python, but migrated to the
diff --git a/lib/asciidoctor/converter/factory.rb b/lib/asciidoctor/converter/factory.rb
index 6f71ad77..9719659b 100644
--- a/lib/asciidoctor/converter/factory.rb
+++ b/lib/asciidoctor/converter/factory.rb
@@ -1,3 +1,4 @@
+# encoding: UTF-8
module Asciidoctor
module Converter
# A factory for instantiating converters that are used to convert a
diff --git a/lib/asciidoctor/converter/html5.rb b/lib/asciidoctor/converter/html5.rb
index d5adc5c7..3fbe70cd 100644
--- a/lib/asciidoctor/converter/html5.rb
+++ b/lib/asciidoctor/converter/html5.rb
@@ -1,3 +1,4 @@
+# encoding: UTF-8
module Asciidoctor
# A built-in {Converter} implementation that generates HTML 5 output
# consistent with the html5 backend from AsciiDoc Python.
diff --git a/lib/asciidoctor/converter/template.rb b/lib/asciidoctor/converter/template.rb
index f54bffc7..dd103107 100644
--- a/lib/asciidoctor/converter/template.rb
+++ b/lib/asciidoctor/converter/template.rb
@@ -1,3 +1,4 @@
+# encoding: UTF-8
module Asciidoctor
# A {Converter} implementation that uses templates composed in template
# languages supported by {https://github.com/rtomayko/tilt Tilt} to convert
diff --git a/lib/asciidoctor/document.rb b/lib/asciidoctor/document.rb
index a4903f06..f261506f 100644
--- a/lib/asciidoctor/document.rb
+++ b/lib/asciidoctor/document.rb
@@ -1,3 +1,4 @@
+# encoding: UTF-8
module Asciidoctor
# Public: Methods for parsing and converting AsciiDoc documents.
#
diff --git a/lib/asciidoctor/extensions.rb b/lib/asciidoctor/extensions.rb
index 75442109..600256ca 100644
--- a/lib/asciidoctor/extensions.rb
+++ b/lib/asciidoctor/extensions.rb
@@ -1,3 +1,4 @@
+# encoding: UTF-8
module Asciidoctor
# Extensions provide a way to participate in the parsing and converting
# phases of the AsciiDoc processor or extend the AsciiDoc syntax.
diff --git a/lib/asciidoctor/helpers.rb b/lib/asciidoctor/helpers.rb
index 59fecb11..a705d59e 100644
--- a/lib/asciidoctor/helpers.rb
+++ b/lib/asciidoctor/helpers.rb
@@ -1,3 +1,4 @@
+# encoding: UTF-8
module Asciidoctor
module Helpers
# Internal: Require the specified library using Kernel#require.
diff --git a/lib/asciidoctor/inline.rb b/lib/asciidoctor/inline.rb
index 5f6e0745..dcf1633b 100644
--- a/lib/asciidoctor/inline.rb
+++ b/lib/asciidoctor/inline.rb
@@ -1,3 +1,4 @@
+# encoding: UTF-8
module Asciidoctor
# Public: Methods for managing inline elements in AsciiDoc block
class Inline < AbstractNode
diff --git a/lib/asciidoctor/list.rb b/lib/asciidoctor/list.rb
index e5adf56b..26dc632e 100644
--- a/lib/asciidoctor/list.rb
+++ b/lib/asciidoctor/list.rb
@@ -1,3 +1,4 @@
+# encoding: UTF-8
module Asciidoctor
# Public: Methods for managing AsciiDoc lists (ordered, unordered and labeled lists)
class List < AbstractBlock
diff --git a/lib/asciidoctor/parser.rb b/lib/asciidoctor/parser.rb
index 1510e82f..9912b6e5 100644
--- a/lib/asciidoctor/parser.rb
+++ b/lib/asciidoctor/parser.rb
@@ -1,3 +1,4 @@
+# encoding: UTF-8
module Asciidoctor
# Public: Methods to parse lines of AsciiDoc into an object hierarchy
# representing the structure of the document. All methods are class methods and
diff --git a/lib/asciidoctor/path_resolver.rb b/lib/asciidoctor/path_resolver.rb
index 53c38cc2..2fbabee1 100644
--- a/lib/asciidoctor/path_resolver.rb
+++ b/lib/asciidoctor/path_resolver.rb
@@ -1,3 +1,4 @@
+# encoding: UTF-8
module Asciidoctor
# Public: Handles all operations for resolving, cleaning and joining paths.
# This class includes operations for handling both web paths (request URIs) and
diff --git a/lib/asciidoctor/reader.rb b/lib/asciidoctor/reader.rb
index 199331e9..3f544ba5 100644
--- a/lib/asciidoctor/reader.rb
+++ b/lib/asciidoctor/reader.rb
@@ -1,3 +1,4 @@
+# encoding: UTF-8
module Asciidoctor
# Public: Methods for retrieving lines from AsciiDoc source files
class Reader
diff --git a/lib/asciidoctor/section.rb b/lib/asciidoctor/section.rb
index b672de46..38f935f0 100644
--- a/lib/asciidoctor/section.rb
+++ b/lib/asciidoctor/section.rb
@@ -1,3 +1,4 @@
+# encoding: UTF-8
module Asciidoctor
# Public: Methods for managing sections of AsciiDoc content in a document.
# The section responds as an Array of content blocks by delegating
diff --git a/lib/asciidoctor/stylesheets.rb b/lib/asciidoctor/stylesheets.rb
index bc1d577c..943990fe 100644
--- a/lib/asciidoctor/stylesheets.rb
+++ b/lib/asciidoctor/stylesheets.rb
@@ -1,3 +1,4 @@
+# encoding: UTF-8
module Asciidoctor
# A utility class for working with the built-in stylesheets.
#--
diff --git a/lib/asciidoctor/substitutors.rb b/lib/asciidoctor/substitutors.rb
index 88361030..818d596b 100644
--- a/lib/asciidoctor/substitutors.rb
+++ b/lib/asciidoctor/substitutors.rb
@@ -1,3 +1,4 @@
+# encoding: UTF-8
module Asciidoctor
# Public: Methods to perform substitutions on lines of AsciiDoc text. This module
# is intented to be mixed-in to Section and Block to provide operations for performing
diff --git a/lib/asciidoctor/table.rb b/lib/asciidoctor/table.rb
index 71301876..587fc279 100644
--- a/lib/asciidoctor/table.rb
+++ b/lib/asciidoctor/table.rb
@@ -1,3 +1,4 @@
+# encoding: UTF-8
module Asciidoctor
# Public: Methods and constants for managing AsciiDoc table content in a document.
# It supports all three of AsciiDoc's table formats: psv, dsv and csv.
diff --git a/lib/asciidoctor/timings.rb b/lib/asciidoctor/timings.rb
index 19eb628c..ebae5619 100644
--- a/lib/asciidoctor/timings.rb
+++ b/lib/asciidoctor/timings.rb
@@ -1,3 +1,4 @@
+# encoding: UTF-8
module Asciidoctor
class Timings
def initialize
diff --git a/test/test_helper.rb b/test/test_helper.rb
index 0e9a0f35..63f18260 100644
--- a/test/test_helper.rb
+++ b/test/test_helper.rb
@@ -1,3 +1,4 @@
+# encoding: UTF-8
ASCIIDOCTOR_PROJECT_DIR = File.dirname File.dirname(__FILE__)
Dir.chdir ASCIIDOCTOR_PROJECT_DIR