lib/watir/generator/base/spec_extractor.rb in watir-6.14.0 vs lib/watir/generator/base/spec_extractor.rb in watir-6.15.0

- old
+ new

@@ -1,8 +1,8 @@ module Watir module Generator - module Base + class Base class SpecExtractor IDL_SELECTOR = "//pre[contains(@class, 'idl')]".freeze class InterfaceNotFound < StandardError; end @@ -47,10 +47,10 @@ end private def download_and_parse - URI.open(@uri) { |io| @doc = Nokogiri.HTML(io) } + File.open(@uri) { |io| @doc = Nokogiri.HTML(io) } end def extract_idl_parts parsed = @doc.search(IDL_SELECTOR).map { |e| parse_idl(e.inner_text) }.compact