jarib-celerity 0.0.6.4 → 0.0.6.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/celerity/browser.rb +11 -6
- data/lib/celerity/htmlunit/htmlunit-2.5.jar +0 -0
- data/lib/celerity/htmlunit/htmlunit-core-js-2.5.jar +0 -0
- data/lib/celerity/htmlunit/{nekohtml-1.9.12-20090308.130127-11.jar → nekohtml-1.9.12.jar} +0 -0
- data/lib/celerity/version.rb +1 -1
- metadata +7 -7
- data/lib/celerity/htmlunit/htmlunit-2.5-SNAPSHOT.jar +0 -0
- data/lib/celerity/htmlunit/htmlunit-core-js-2.5-SNAPSHOT.jar +0 -0
data/lib/celerity/browser.rb
CHANGED
@@ -45,6 +45,7 @@ module Celerity
|
|
45
45
|
# @option opts :render [:html, :xml] (:html) What DOM representation to send to connected viewers.
|
46
46
|
# @option opts :charset [String] ("UTF-8") Specify the charset that webclient will use by default.
|
47
47
|
# @option opts :proxy [String] (nil) Proxy server to use, in address:port format.
|
48
|
+
# @option opts :user_agent [String] Override the User-Agent set by the :browser option
|
48
49
|
#
|
49
50
|
# @return [Celerity::Browser] An instance of the browser.
|
50
51
|
#
|
@@ -558,13 +559,12 @@ module Celerity
|
|
558
559
|
def log_level=(level)
|
559
560
|
log_level = java.util.logging.Level.const_get(level.to_s.upcase)
|
560
561
|
|
561
|
-
|
562
|
-
|
563
|
-
|
564
|
-
|
565
|
-
# loggers.each { |logger| logger.level = log_level }
|
562
|
+
[ logger_for('com.gargoylesoftware.htmlunit'),
|
563
|
+
logger_for("org.apache.commons.htmlunit.html"),
|
564
|
+
logger_for("org.apache.commons.httpclient")
|
565
|
+
].each { |logger| logger.level = log_level }
|
566
566
|
|
567
|
-
|
567
|
+
level
|
568
568
|
end
|
569
569
|
|
570
570
|
#
|
@@ -705,6 +705,11 @@ module Celerity
|
|
705
705
|
raise ArgumentError, "unknown browser: #{browser.inspect}"
|
706
706
|
end
|
707
707
|
|
708
|
+
if ua = opts.delete(:user_agent)
|
709
|
+
browser_version.setUserAgent(ua)
|
710
|
+
end
|
711
|
+
|
712
|
+
|
708
713
|
if proxy = opts.delete(:proxy)
|
709
714
|
phost, pport = proxy.split(":")
|
710
715
|
@webclient = ::HtmlUnit::WebClient.new(browser_version, phost, pport.to_i)
|
Binary file
|
Binary file
|
Binary file
|
data/lib/celerity/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jarib-celerity
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.6.
|
4
|
+
version: 0.0.6.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jari Bakken
|
@@ -11,7 +11,7 @@ autorequire:
|
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
13
|
|
14
|
-
date: 2009-04-
|
14
|
+
date: 2009-04-22 00:00:00 -07:00
|
15
15
|
default_executable:
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|
@@ -38,7 +38,6 @@ files:
|
|
38
38
|
- History.txt
|
39
39
|
- lib
|
40
40
|
- lib/celerity
|
41
|
-
- lib/celerity.rb
|
42
41
|
- lib/celerity/browser.rb
|
43
42
|
- lib/celerity/clickable_element.rb
|
44
43
|
- lib/celerity/collections.rb
|
@@ -70,7 +69,6 @@ files:
|
|
70
69
|
- lib/celerity/extra
|
71
70
|
- lib/celerity/extra/method_generator.rb
|
72
71
|
- lib/celerity/htmlunit
|
73
|
-
- lib/celerity/htmlunit.rb
|
74
72
|
- lib/celerity/htmlunit/commons-codec-1.3.jar
|
75
73
|
- lib/celerity/htmlunit/commons-collections-3.2.1.jar
|
76
74
|
- lib/celerity/htmlunit/commons-httpclient-3.1.jar
|
@@ -78,14 +76,15 @@ files:
|
|
78
76
|
- lib/celerity/htmlunit/commons-lang-2.4.jar
|
79
77
|
- lib/celerity/htmlunit/commons-logging-1.1.1.jar
|
80
78
|
- lib/celerity/htmlunit/cssparser-0.9.5.jar
|
81
|
-
- lib/celerity/htmlunit/htmlunit-2.5
|
82
|
-
- lib/celerity/htmlunit/htmlunit-core-js-2.5
|
83
|
-
- lib/celerity/htmlunit/nekohtml-1.9.12
|
79
|
+
- lib/celerity/htmlunit/htmlunit-2.5.jar
|
80
|
+
- lib/celerity/htmlunit/htmlunit-core-js-2.5.jar
|
81
|
+
- lib/celerity/htmlunit/nekohtml-1.9.12.jar
|
84
82
|
- lib/celerity/htmlunit/sac-1.3.jar
|
85
83
|
- lib/celerity/htmlunit/serializer-2.7.1.jar
|
86
84
|
- lib/celerity/htmlunit/xalan-2.7.1.jar
|
87
85
|
- lib/celerity/htmlunit/xercesImpl-2.8.1.jar
|
88
86
|
- lib/celerity/htmlunit/xml-apis-1.3.04.jar
|
87
|
+
- lib/celerity/htmlunit.rb
|
89
88
|
- lib/celerity/identifier.rb
|
90
89
|
- lib/celerity/input_element.rb
|
91
90
|
- lib/celerity/listener.rb
|
@@ -95,6 +94,7 @@ files:
|
|
95
94
|
- lib/celerity/util.rb
|
96
95
|
- lib/celerity/version.rb
|
97
96
|
- lib/celerity/watir_compatibility.rb
|
97
|
+
- lib/celerity.rb
|
98
98
|
- License.txt
|
99
99
|
- Rakefile
|
100
100
|
- README.txt
|
Binary file
|
Binary file
|