diff --git a/benchmark/benchmark_helper.rb b/benchmark/benchmark_helper.rb index cf8a5d9..fc1c117 100644 --- a/benchmark/benchmark_helper.rb +++ b/benchmark/benchmark_helper.rb @@ -1,3 +1,4 @@ +require 'bundler/setup' require 'stringio' require 'benchmark' require 'benchmark/ips' diff --git a/lib/oga.rb b/lib/oga.rb index acf4b44..ff53482 100644 --- a/lib/oga.rb +++ b/lib/oga.rb @@ -3,19 +3,19 @@ require 'set' require 'stringio' require 'thread' -require_relative 'oga/version' -require_relative 'oga/oga' -require_relative 'oga/lru' -require_relative 'oga/entity_decoder' -require_relative 'oga/blacklist' -require_relative 'oga/whitelist' +require 'oga/version' +require 'oga/oga' +require 'oga/lru' +require 'oga/entity_decoder' +require 'oga/blacklist' +require 'oga/whitelist' # Load these first so that the native extensions don't have to define the # Oga::XML namespace. -require_relative 'oga/xml/lexer' -require_relative 'oga/xml/parser' +require 'oga/xml/lexer' +require 'oga/xml/parser' -require_relative 'liboga' +require 'liboga' #:nocov: if RUBY_PLATFORM == 'java' @@ -23,35 +23,35 @@ if RUBY_PLATFORM == 'java' end #:nocov: -require_relative 'oga/xml/html_void_elements' -require_relative 'oga/xml/entities' -require_relative 'oga/xml/querying' -require_relative 'oga/xml/traversal' -require_relative 'oga/xml/node' -require_relative 'oga/xml/document' -require_relative 'oga/xml/character_node' -require_relative 'oga/xml/text' -require_relative 'oga/xml/comment' -require_relative 'oga/xml/cdata' -require_relative 'oga/xml/xml_declaration' -require_relative 'oga/xml/processing_instruction' -require_relative 'oga/xml/doctype' -require_relative 'oga/xml/namespace' -require_relative 'oga/xml/default_namespace' -require_relative 'oga/xml/attribute' -require_relative 'oga/xml/element' -require_relative 'oga/xml/node_set' +require 'oga/xml/html_void_elements' +require 'oga/xml/entities' +require 'oga/xml/querying' +require 'oga/xml/traversal' +require 'oga/xml/node' +require 'oga/xml/document' +require 'oga/xml/character_node' +require 'oga/xml/text' +require 'oga/xml/comment' +require 'oga/xml/cdata' +require 'oga/xml/xml_declaration' +require 'oga/xml/processing_instruction' +require 'oga/xml/doctype' +require 'oga/xml/namespace' +require 'oga/xml/default_namespace' +require 'oga/xml/attribute' +require 'oga/xml/element' +require 'oga/xml/node_set' -require_relative 'oga/xml/sax_parser' -require_relative 'oga/xml/pull_parser' +require 'oga/xml/sax_parser' +require 'oga/xml/pull_parser' -require_relative 'oga/html/parser' -require_relative 'oga/html/sax_parser' -require_relative 'oga/html/entities' +require 'oga/html/parser' +require 'oga/html/sax_parser' +require 'oga/html/entities' -require_relative 'oga/xpath/lexer' -require_relative 'oga/xpath/parser' -require_relative 'oga/xpath/evaluator' +require 'oga/xpath/lexer' +require 'oga/xpath/parser' +require 'oga/xpath/evaluator' -require_relative 'oga/css/lexer' -require_relative 'oga/css/parser' +require 'oga/css/lexer' +require 'oga/css/parser' diff --git a/profile/profile_helper.rb b/profile/profile_helper.rb index ea98355..1fdc1eb 100644 --- a/profile/profile_helper.rb +++ b/profile/profile_helper.rb @@ -1,3 +1,4 @@ +require 'bundler/setup' require 'timeout' require 'stringio'