celerity 0.7.9 → 0.8.0.beta.1
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/VERSION.yml +3 -3
- data/celerity.gemspec +18 -12
- data/lib/celerity/browser.rb +9 -10
- data/lib/celerity/elements/table.rb +6 -1
- data/lib/celerity/htmlunit/apache-mime4j-0.6.jar +0 -0
- data/lib/celerity/htmlunit/htmlunit-2.8-SNAPSHOT.jar +0 -0
- data/lib/celerity/htmlunit/{htmlunit-core-js-2.7-SNAPSHOT.jar → htmlunit-core-js-2.8-SNAPSHOT.jar} +0 -0
- data/lib/celerity/htmlunit/httpclient-4.0.1.jar +0 -0
- data/lib/celerity/htmlunit/httpcore-4.0.1.jar +0 -0
- data/lib/celerity/htmlunit/httpmime-4.0.1.jar +0 -0
- data/lib/celerity/htmlunit/{nekohtml-1.9.14-20100122.114035-12.jar → nekohtml-1.9.14.jar} +0 -0
- data/lib/celerity/version.rb +1 -1
- data/tasks/jeweler.rake +10 -7
- data/tasks/snapshot.rake +1 -1
- metadata +69 -23
- data/lib/celerity/htmlunit/commons-httpclient-3.1.jar +0 -0
- data/lib/celerity/htmlunit/htmlunit-2.7-SNAPSHOT.jar +0 -0
data/VERSION.yml
CHANGED
data/celerity.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{celerity}
|
8
|
-
s.version = "0.
|
8
|
+
s.version = "0.8.0.beta.1"
|
9
9
|
|
10
|
-
s.required_rubygems_version = Gem::Requirement.new("
|
10
|
+
s.required_rubygems_version = Gem::Requirement.new("> 1.3.1") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Jari Bakken", "T. Alexander Lystad", "Knut Johannes Dahle"]
|
12
|
-
s.date = %q{2010-
|
12
|
+
s.date = %q{2010-07-06}
|
13
13
|
s.description = %q{Celerity is a JRuby wrapper around HtmlUnit – a headless Java browser with JavaScript support. It provides a simple API for programmatic navigation through web applications. Celerity provides a superset of Watir's API.}
|
14
14
|
s.email = %q{jari.bakken@gmail.com}
|
15
15
|
s.extra_rdoc_files = [
|
@@ -52,16 +52,19 @@ Gem::Specification.new do |s|
|
|
52
52
|
"lib/celerity/elements/text_field.rb",
|
53
53
|
"lib/celerity/exception.rb",
|
54
54
|
"lib/celerity/htmlunit.rb",
|
55
|
+
"lib/celerity/htmlunit/apache-mime4j-0.6.jar",
|
55
56
|
"lib/celerity/htmlunit/commons-codec-1.4.jar",
|
56
57
|
"lib/celerity/htmlunit/commons-collections-3.2.1.jar",
|
57
|
-
"lib/celerity/htmlunit/commons-httpclient-3.1.jar",
|
58
58
|
"lib/celerity/htmlunit/commons-io-1.4.jar",
|
59
59
|
"lib/celerity/htmlunit/commons-lang-2.4.jar",
|
60
60
|
"lib/celerity/htmlunit/commons-logging-1.1.1.jar",
|
61
61
|
"lib/celerity/htmlunit/cssparser-0.9.5.jar",
|
62
|
-
"lib/celerity/htmlunit/htmlunit-2.
|
63
|
-
"lib/celerity/htmlunit/htmlunit-core-js-2.
|
64
|
-
"lib/celerity/htmlunit/
|
62
|
+
"lib/celerity/htmlunit/htmlunit-2.8-SNAPSHOT.jar",
|
63
|
+
"lib/celerity/htmlunit/htmlunit-core-js-2.8-SNAPSHOT.jar",
|
64
|
+
"lib/celerity/htmlunit/httpclient-4.0.1.jar",
|
65
|
+
"lib/celerity/htmlunit/httpcore-4.0.1.jar",
|
66
|
+
"lib/celerity/htmlunit/httpmime-4.0.1.jar",
|
67
|
+
"lib/celerity/htmlunit/nekohtml-1.9.14.jar",
|
65
68
|
"lib/celerity/htmlunit/sac-1.3.jar",
|
66
69
|
"lib/celerity/htmlunit/serializer-2.7.1.jar",
|
67
70
|
"lib/celerity/htmlunit/xalan-2.7.1.jar",
|
@@ -95,26 +98,29 @@ Gem::Specification.new do |s|
|
|
95
98
|
s.rdoc_options = ["--charset=UTF-8"]
|
96
99
|
s.require_paths = ["lib"]
|
97
100
|
s.rubyforge_project = %q{celerity}
|
98
|
-
s.rubygems_version = %q{1.3.
|
101
|
+
s.rubygems_version = %q{1.3.7}
|
99
102
|
s.summary = %q{Celerity is a JRuby library for easy and fast functional test automation for web applications.}
|
100
103
|
|
101
104
|
if s.respond_to? :specification_version then
|
102
105
|
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
103
106
|
s.specification_version = 3
|
104
107
|
|
105
|
-
if Gem::Version.new(Gem::
|
108
|
+
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
106
109
|
s.add_development_dependency(%q<rspec>, [">= 0"])
|
107
110
|
s.add_development_dependency(%q<yard>, [">= 0"])
|
108
|
-
s.add_development_dependency(%q<sinatra>, [">= 0
|
111
|
+
s.add_development_dependency(%q<sinatra>, [">= 1.0"])
|
112
|
+
s.add_development_dependency(%q<mongrel>, [">= 0"])
|
109
113
|
else
|
110
114
|
s.add_dependency(%q<rspec>, [">= 0"])
|
111
115
|
s.add_dependency(%q<yard>, [">= 0"])
|
112
|
-
s.add_dependency(%q<sinatra>, [">= 0
|
116
|
+
s.add_dependency(%q<sinatra>, [">= 1.0"])
|
117
|
+
s.add_dependency(%q<mongrel>, [">= 0"])
|
113
118
|
end
|
114
119
|
else
|
115
120
|
s.add_dependency(%q<rspec>, [">= 0"])
|
116
121
|
s.add_dependency(%q<yard>, [">= 0"])
|
117
|
-
s.add_dependency(%q<sinatra>, [">= 0
|
122
|
+
s.add_dependency(%q<sinatra>, [">= 1.0"])
|
123
|
+
s.add_dependency(%q<mongrel>, [">= 0"])
|
118
124
|
end
|
119
125
|
end
|
120
126
|
|
data/lib/celerity/browser.rb
CHANGED
@@ -159,7 +159,9 @@ module Celerity
|
|
159
159
|
#
|
160
160
|
|
161
161
|
def html
|
162
|
-
|
162
|
+
return '' unless @page
|
163
|
+
|
164
|
+
@page.getWebResponse.getContentAsString(@charset)
|
163
165
|
end
|
164
166
|
|
165
167
|
#
|
@@ -179,16 +181,13 @@ module Celerity
|
|
179
181
|
def text
|
180
182
|
return '' unless @page
|
181
183
|
|
182
|
-
if @page.respond_to?(
|
183
|
-
|
184
|
-
elsif doc = @page.
|
185
|
-
|
184
|
+
if @page.respond_to?(:getContent)
|
185
|
+
@page.getContent.strip
|
186
|
+
elsif @page.respond_to?(:getDocumentElement) && doc = @page.getDocumentElement
|
187
|
+
doc.asText.strip
|
186
188
|
else
|
187
|
-
|
189
|
+
''
|
188
190
|
end
|
189
|
-
|
190
|
-
# Celerity::Util.normalize_text(string)
|
191
|
-
string
|
192
191
|
end
|
193
192
|
|
194
193
|
#
|
@@ -838,7 +837,7 @@ module Celerity
|
|
838
837
|
|
839
838
|
self.javascript_exceptions = false unless opts.delete(:javascript_exceptions)
|
840
839
|
self.status_code_exceptions = false unless opts.delete(:status_code_exceptions)
|
841
|
-
self.css =
|
840
|
+
self.css = opts.delete(:css) if opts[:css]
|
842
841
|
self.javascript_enabled = opts.delete(:javascript_enabled) != false
|
843
842
|
self.secure_ssl = opts.delete(:secure_ssl) != false
|
844
843
|
self.ignore_pattern = opts.delete(:ignore_pattern) if opts[:ignore_pattern]
|
@@ -21,7 +21,12 @@ module Celerity
|
|
21
21
|
|
22
22
|
def locate
|
23
23
|
super
|
24
|
-
if @object
|
24
|
+
if @object
|
25
|
+
|
26
|
+
unless @object.kind_of?(HtmlUnit::Html::HtmlTable)
|
27
|
+
raise TypeError, "expected HtmlTable, got #{@object.class}"
|
28
|
+
end
|
29
|
+
|
25
30
|
@rows = @object.getRows
|
26
31
|
@cells = []
|
27
32
|
@rows.each do |row|
|
Binary file
|
Binary file
|
data/lib/celerity/htmlunit/{htmlunit-core-js-2.7-SNAPSHOT.jar → htmlunit-core-js-2.8-SNAPSHOT.jar}
RENAMED
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
data/lib/celerity/version.rb
CHANGED
data/tasks/jeweler.rake
CHANGED
@@ -1,23 +1,26 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
|
1
3
|
begin
|
2
4
|
require 'jeweler'
|
3
5
|
Jeweler::Tasks.new do |gem|
|
4
6
|
# see http://www.rubygems.org/read/chapter/20 for additional settings
|
5
7
|
gem.name = "celerity"
|
6
8
|
gem.summary = "Celerity is a JRuby library for easy and fast functional test automation for web applications."
|
7
|
-
gem.description =
|
9
|
+
gem.description = "Celerity is a JRuby wrapper around HtmlUnit – a headless Java browser with JavaScript support. It provides a simple API for programmatic navigation through web applications. Celerity provides a superset of Watir's API."
|
8
10
|
gem.email = "jari.bakken@gmail.com"
|
9
11
|
gem.homepage = "http://github.com/jarib/celerity"
|
10
12
|
gem.authors = ["Jari Bakken", "T. Alexander Lystad", "Knut Johannes Dahle"]
|
11
13
|
gem.rubyforge_project = "celerity"
|
12
14
|
gem.test_files = [] # the gem is big enough as it is
|
13
|
-
|
15
|
+
|
14
16
|
gem.files.reject! { |f| f =~ /^(website|doc|benchmark|log|spec|\.)/}
|
15
|
-
|
16
|
-
gem.add_development_dependency
|
17
|
-
gem.add_development_dependency
|
18
|
-
gem.add_development_dependency 'sinatra', '>= 0
|
17
|
+
|
18
|
+
gem.add_development_dependency 'rspec'
|
19
|
+
gem.add_development_dependency 'yard'
|
20
|
+
gem.add_development_dependency 'sinatra', '>= 1.0'
|
21
|
+
gem.add_development_dependency 'mongrel'
|
19
22
|
end
|
20
|
-
|
23
|
+
|
21
24
|
Jeweler::GemcutterTasks.new
|
22
25
|
Jeweler::RubyforgeTasks.new { |rf| rf.doc_task = "yardoc" }
|
23
26
|
rescue LoadError
|
data/tasks/snapshot.rake
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
desc 'Download and unpack the latest HtmlUnit assembly'
|
2
2
|
task :snapshot do
|
3
|
-
files = %w[ http://build.canoo.com/htmlunit/artifacts/htmlunit-2.
|
3
|
+
files = %w[ http://build.canoo.com/htmlunit/artifacts/htmlunit-2.8-SNAPSHOT-with-dependencies.zip ]
|
4
4
|
|
5
5
|
files.each do |url|
|
6
6
|
basename = File.basename(url)
|
metadata
CHANGED
@@ -1,7 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: celerity
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
4
|
+
hash: -724544884
|
5
|
+
prerelease: true
|
6
|
+
segments:
|
7
|
+
- 0
|
8
|
+
- 8
|
9
|
+
- 0
|
10
|
+
- beta
|
11
|
+
- 1
|
12
|
+
version: 0.8.0.beta.1
|
5
13
|
platform: ruby
|
6
14
|
authors:
|
7
15
|
- Jari Bakken
|
@@ -11,39 +19,66 @@ autorequire:
|
|
11
19
|
bindir: bin
|
12
20
|
cert_chain: []
|
13
21
|
|
14
|
-
date: 2010-
|
22
|
+
date: 2010-07-06 00:00:00 +02:00
|
15
23
|
default_executable:
|
16
24
|
dependencies:
|
17
25
|
- !ruby/object:Gem::Dependency
|
18
26
|
name: rspec
|
19
|
-
|
20
|
-
|
21
|
-
|
27
|
+
prerelease: false
|
28
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
29
|
+
none: false
|
22
30
|
requirements:
|
23
31
|
- - ">="
|
24
32
|
- !ruby/object:Gem::Version
|
33
|
+
hash: 3
|
34
|
+
segments:
|
35
|
+
- 0
|
25
36
|
version: "0"
|
26
|
-
|
37
|
+
type: :development
|
38
|
+
version_requirements: *id001
|
27
39
|
- !ruby/object:Gem::Dependency
|
28
40
|
name: yard
|
29
|
-
|
30
|
-
|
31
|
-
|
41
|
+
prerelease: false
|
42
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
43
|
+
none: false
|
32
44
|
requirements:
|
33
45
|
- - ">="
|
34
46
|
- !ruby/object:Gem::Version
|
47
|
+
hash: 3
|
48
|
+
segments:
|
49
|
+
- 0
|
35
50
|
version: "0"
|
36
|
-
|
51
|
+
type: :development
|
52
|
+
version_requirements: *id002
|
37
53
|
- !ruby/object:Gem::Dependency
|
38
54
|
name: sinatra
|
55
|
+
prerelease: false
|
56
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
hash: 15
|
62
|
+
segments:
|
63
|
+
- 1
|
64
|
+
- 0
|
65
|
+
version: "1.0"
|
39
66
|
type: :development
|
40
|
-
|
41
|
-
|
67
|
+
version_requirements: *id003
|
68
|
+
- !ruby/object:Gem::Dependency
|
69
|
+
name: mongrel
|
70
|
+
prerelease: false
|
71
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
72
|
+
none: false
|
42
73
|
requirements:
|
43
74
|
- - ">="
|
44
75
|
- !ruby/object:Gem::Version
|
45
|
-
|
46
|
-
|
76
|
+
hash: 3
|
77
|
+
segments:
|
78
|
+
- 0
|
79
|
+
version: "0"
|
80
|
+
type: :development
|
81
|
+
version_requirements: *id004
|
47
82
|
description: "Celerity is a JRuby wrapper around HtmlUnit \xE2\x80\x93 a headless Java browser with JavaScript support. It provides a simple API for programmatic navigation through web applications. Celerity provides a superset of Watir's API."
|
48
83
|
email: jari.bakken@gmail.com
|
49
84
|
executables: []
|
@@ -89,16 +124,19 @@ files:
|
|
89
124
|
- lib/celerity/elements/text_field.rb
|
90
125
|
- lib/celerity/exception.rb
|
91
126
|
- lib/celerity/htmlunit.rb
|
127
|
+
- lib/celerity/htmlunit/apache-mime4j-0.6.jar
|
92
128
|
- lib/celerity/htmlunit/commons-codec-1.4.jar
|
93
129
|
- lib/celerity/htmlunit/commons-collections-3.2.1.jar
|
94
|
-
- lib/celerity/htmlunit/commons-httpclient-3.1.jar
|
95
130
|
- lib/celerity/htmlunit/commons-io-1.4.jar
|
96
131
|
- lib/celerity/htmlunit/commons-lang-2.4.jar
|
97
132
|
- lib/celerity/htmlunit/commons-logging-1.1.1.jar
|
98
133
|
- lib/celerity/htmlunit/cssparser-0.9.5.jar
|
99
|
-
- lib/celerity/htmlunit/htmlunit-2.
|
100
|
-
- lib/celerity/htmlunit/htmlunit-core-js-2.
|
101
|
-
- lib/celerity/htmlunit/
|
134
|
+
- lib/celerity/htmlunit/htmlunit-2.8-SNAPSHOT.jar
|
135
|
+
- lib/celerity/htmlunit/htmlunit-core-js-2.8-SNAPSHOT.jar
|
136
|
+
- lib/celerity/htmlunit/httpclient-4.0.1.jar
|
137
|
+
- lib/celerity/htmlunit/httpcore-4.0.1.jar
|
138
|
+
- lib/celerity/htmlunit/httpmime-4.0.1.jar
|
139
|
+
- lib/celerity/htmlunit/nekohtml-1.9.14.jar
|
102
140
|
- lib/celerity/htmlunit/sac-1.3.jar
|
103
141
|
- lib/celerity/htmlunit/serializer-2.7.1.jar
|
104
142
|
- lib/celerity/htmlunit/xalan-2.7.1.jar
|
@@ -137,21 +175,29 @@ rdoc_options:
|
|
137
175
|
require_paths:
|
138
176
|
- lib
|
139
177
|
required_ruby_version: !ruby/object:Gem::Requirement
|
178
|
+
none: false
|
140
179
|
requirements:
|
141
180
|
- - ">="
|
142
181
|
- !ruby/object:Gem::Version
|
182
|
+
hash: 3
|
183
|
+
segments:
|
184
|
+
- 0
|
143
185
|
version: "0"
|
144
|
-
version:
|
145
186
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
187
|
+
none: false
|
146
188
|
requirements:
|
147
|
-
- - "
|
189
|
+
- - ">"
|
148
190
|
- !ruby/object:Gem::Version
|
149
|
-
|
150
|
-
|
191
|
+
hash: 25
|
192
|
+
segments:
|
193
|
+
- 1
|
194
|
+
- 3
|
195
|
+
- 1
|
196
|
+
version: 1.3.1
|
151
197
|
requirements: []
|
152
198
|
|
153
199
|
rubyforge_project: celerity
|
154
|
-
rubygems_version: 1.3.
|
200
|
+
rubygems_version: 1.3.7
|
155
201
|
signing_key:
|
156
202
|
specification_version: 3
|
157
203
|
summary: Celerity is a JRuby library for easy and fast functional test automation for web applications.
|
Binary file
|
Binary file
|