2014-06-01 21:02:28 +00:00
|
|
|
require 'ast'
|
2014-04-10 10:28:47 +00:00
|
|
|
require 'set'
|
2014-07-01 07:37:52 +00:00
|
|
|
require 'stringio'
|
2015-03-05 22:00:43 +00:00
|
|
|
require 'thread'
|
2014-02-26 18:54:11 +00:00
|
|
|
|
2014-09-03 07:30:56 +00:00
|
|
|
require_relative 'oga/version'
|
|
|
|
require_relative 'oga/oga'
|
2015-03-22 23:21:52 +00:00
|
|
|
require_relative 'oga/lru'
|
2015-04-07 19:17:46 +00:00
|
|
|
require_relative 'oga/entity_decoder'
|
2015-04-21 22:54:29 +00:00
|
|
|
require_relative 'oga/node_name_set'
|
2014-09-03 07:30:56 +00:00
|
|
|
|
2014-05-06 18:45:26 +00:00
|
|
|
# Load these first so that the native extensions don't have to define the
|
|
|
|
# Oga::XML namespace.
|
2014-03-25 08:34:38 +00:00
|
|
|
require_relative 'oga/xml/lexer'
|
|
|
|
require_relative 'oga/xml/parser'
|
2014-04-28 15:22:17 +00:00
|
|
|
|
2014-05-07 20:32:34 +00:00
|
|
|
require_relative 'liboga'
|
2014-05-06 17:06:04 +00:00
|
|
|
|
2014-06-23 07:42:14 +00:00
|
|
|
#:nocov:
|
2014-05-07 20:32:34 +00:00
|
|
|
if RUBY_PLATFORM == 'java'
|
|
|
|
org.liboga.Liboga.load(JRuby.runtime)
|
|
|
|
end
|
2014-06-23 07:42:14 +00:00
|
|
|
#:nocov:
|
2014-05-06 18:45:26 +00:00
|
|
|
|
2014-09-15 22:44:38 +00:00
|
|
|
require_relative 'oga/xml/html_void_elements'
|
2014-09-28 19:35:00 +00:00
|
|
|
require_relative 'oga/xml/entities'
|
2014-09-02 18:16:52 +00:00
|
|
|
require_relative 'oga/xml/querying'
|
2014-09-05 17:42:38 +00:00
|
|
|
require_relative 'oga/xml/traversal'
|
2014-03-26 17:12:00 +00:00
|
|
|
require_relative 'oga/xml/node'
|
2014-03-28 07:59:48 +00:00
|
|
|
require_relative 'oga/xml/document'
|
2014-08-15 08:43:16 +00:00
|
|
|
require_relative 'oga/xml/character_node'
|
2014-03-28 08:27:53 +00:00
|
|
|
require_relative 'oga/xml/text'
|
|
|
|
require_relative 'oga/xml/comment'
|
|
|
|
require_relative 'oga/xml/cdata'
|
2014-04-02 20:30:45 +00:00
|
|
|
require_relative 'oga/xml/xml_declaration'
|
2014-08-15 20:23:26 +00:00
|
|
|
require_relative 'oga/xml/processing_instruction'
|
2014-04-03 20:44:00 +00:00
|
|
|
require_relative 'oga/xml/doctype'
|
2014-08-07 18:01:14 +00:00
|
|
|
require_relative 'oga/xml/namespace'
|
2015-03-25 23:35:28 +00:00
|
|
|
require_relative 'oga/xml/default_namespace'
|
2014-08-27 18:24:40 +00:00
|
|
|
require_relative 'oga/xml/attribute'
|
2014-08-07 19:10:01 +00:00
|
|
|
require_relative 'oga/xml/element'
|
2014-06-26 17:52:03 +00:00
|
|
|
require_relative 'oga/xml/node_set'
|
2014-03-25 08:40:24 +00:00
|
|
|
|
2014-09-16 12:30:46 +00:00
|
|
|
require_relative 'oga/xml/sax_parser'
|
2014-09-13 13:09:52 +00:00
|
|
|
require_relative 'oga/xml/pull_parser'
|
2014-09-16 12:30:46 +00:00
|
|
|
|
2014-03-25 08:40:24 +00:00
|
|
|
require_relative 'oga/html/parser'
|
2014-09-16 12:30:46 +00:00
|
|
|
require_relative 'oga/html/sax_parser'
|
2015-03-05 22:00:43 +00:00
|
|
|
require_relative 'oga/html/entities'
|
2014-05-14 06:48:49 +00:00
|
|
|
|
|
|
|
require_relative 'oga/xpath/lexer'
|
2014-06-01 21:02:28 +00:00
|
|
|
require_relative 'oga/xpath/parser'
|
2014-07-07 17:41:09 +00:00
|
|
|
require_relative 'oga/xpath/evaluator'
|
2014-09-16 14:32:57 +00:00
|
|
|
|
|
|
|
require_relative 'oga/css/lexer'
|
2014-10-02 21:31:58 +00:00
|
|
|
require_relative 'oga/css/parser'
|