lib/akephalos/htmlunit.rb in akephalos2-2.0.1 vs lib/akephalos/htmlunit.rb in akephalos2-2.0.2
- old
+ new
@@ -1,11 +1,11 @@
require "pathname"
require "java"
-dependency_directory = $:.detect { |path| Dir[File.join(path, 'html-unit/htmlunit-*.jar')].any? }
+dependency_directory = $LOAD_PATH.detect { |path| Dir[File.join(path, 'html-unit/htmlunit-*.jar')].any? }
-raise "Could not find htmlunit/htmlunit-VERSION.jar in load path:\n [ #{$:.join(",\n ")}\n ]" unless dependency_directory
+raise "Could not find html-unit/htmlunit-VERSION.jar in load path:\n [ #{$LOAD_PATH.join(",\n ")}\n ]" unless dependency_directory
Dir[File.join(dependency_directory, "html-unit/*.jar")].each do |jar|
require jar
end
@@ -21,10 +21,10 @@
java_import 'com.gargoylesoftware.htmlunit.ConfirmHandler'
java_import "com.gargoylesoftware.htmlunit.NicelyResynchronizingAjaxController"
java_import "com.gargoylesoftware.htmlunit.SilentCssErrorHandler"
java_import "com.gargoylesoftware.htmlunit.WebClient"
java_import "com.gargoylesoftware.htmlunit.WebResponseData"
- java_import "com.gargoylesoftware.htmlunit.WebResponseImpl"
+ java_import "com.gargoylesoftware.htmlunit.WebResponse"
# Container module for com.gargoylesoftware.htmlunit.util namespace.
module Util
java_import "com.gargoylesoftware.htmlunit.util.NameValuePair"
java_import "com.gargoylesoftware.htmlunit.util.WebConnectionWrapper"