celerity 0.8.0.beta.2 → 0.8.0.beta.3
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION.yml +1 -1
- data/celerity.gemspec +4 -4
- data/lib/celerity/browser.rb +1 -1
- data/lib/celerity/htmlunit/htmlunit-2.8-SNAPSHOT.jar +0 -0
- data/lib/celerity/util.rb +2 -1
- data/tasks/snapshot.rake +23 -20
- metadata +152 -165
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.0.beta.
|
8
|
+
s.version = "0.8.0.beta.3"
|
9
9
|
|
10
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-07-
|
12
|
+
s.date = %q{2010-07-26}
|
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 = [
|
@@ -98,14 +98,14 @@ Gem::Specification.new do |s|
|
|
98
98
|
s.rdoc_options = ["--charset=UTF-8"]
|
99
99
|
s.require_paths = ["lib"]
|
100
100
|
s.rubyforge_project = %q{celerity}
|
101
|
-
s.rubygems_version = %q{1.3.
|
101
|
+
s.rubygems_version = %q{1.3.6}
|
102
102
|
s.summary = %q{Celerity is a JRuby library for easy and fast functional test automation for web applications.}
|
103
103
|
|
104
104
|
if s.respond_to? :specification_version then
|
105
105
|
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
106
106
|
s.specification_version = 3
|
107
107
|
|
108
|
-
if Gem::Version.new(Gem::
|
108
|
+
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
|
109
109
|
s.add_development_dependency(%q<rspec>, [">= 0"])
|
110
110
|
s.add_development_dependency(%q<yard>, [">= 0"])
|
111
111
|
s.add_development_dependency(%q<sinatra>, [">= 1.0"])
|
data/lib/celerity/browser.rb
CHANGED
@@ -34,7 +34,7 @@ module Celerity
|
|
34
34
|
#
|
35
35
|
# @option opts :browser [:internet_explorer, :firefox, :firefox3] (:firefox3) Set the BrowserVersion used by HtmlUnit. Defaults to Firefox 3.
|
36
36
|
# @option opts :charset [String] ("UTF-8") Specify the charset that webclient will use for requests.
|
37
|
-
# @option opts :css [Boolean] (
|
37
|
+
# @option opts :css [Boolean] (true) Enable/disable CSS. Enabled by default.
|
38
38
|
# @option opts :ignore_pattern [Regexp] See Browser#ignore_pattern=
|
39
39
|
# @option opts :javascript_enabled [Boolean] (true) Enable/disable JavaScript evaluation. Enabled by default.
|
40
40
|
# @option opts :javascript_exceptions [Boolean] (false) Raise exceptions on script errors. Disabled by default.
|
Binary file
|
data/lib/celerity/util.rb
CHANGED
@@ -41,6 +41,7 @@ module Celerity
|
|
41
41
|
HtmlUnit::Html::HtmlTable => Celerity::Table,
|
42
42
|
HtmlUnit::Html::HtmlTableBody => Celerity::TableBody,
|
43
43
|
HtmlUnit::Html::HtmlTableCell => Celerity::TableCell,
|
44
|
+
HtmlUnit::Html::HtmlTableDataCell => Celerity::TableCell,
|
44
45
|
HtmlUnit::Html::HtmlTableFooter => Celerity::TableFooter,
|
45
46
|
HtmlUnit::Html::HtmlTableHeader => Celerity::TableHeader,
|
46
47
|
HtmlUnit::Html::HtmlTableRow => Celerity::TableRow,
|
@@ -123,4 +124,4 @@ module Celerity
|
|
123
124
|
end
|
124
125
|
|
125
126
|
end
|
126
|
-
end
|
127
|
+
end
|
data/tasks/snapshot.rake
CHANGED
@@ -1,22 +1,25 @@
|
|
1
1
|
desc 'Download and unpack the latest HtmlUnit assembly'
|
2
|
-
task :snapshot do
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
2
|
+
task :snapshot, :file do |t, args|
|
3
|
+
if args.file
|
4
|
+
sh "cp #{args.file} ./"
|
5
|
+
basename = File.basename(args.file)
|
6
|
+
else
|
7
|
+
url = "http://build.canoo.com/htmlunit/artifacts/htmlunit-2.8-SNAPSHOT-with-dependencies.zip"
|
8
8
|
sh "curl -O #{url}"
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
9
|
+
basename = File.basename(url)
|
10
|
+
end
|
11
|
+
|
12
|
+
shortname = basename[/(.+?)\.zip/, 1].sub("-with-dependencies", '')
|
13
|
+
sh "rm -rf lib/celerity/htmlunit/*.jar"
|
14
|
+
sh "unzip -tq #{basename}"
|
15
|
+
sh %Q{unzip -C #{basename} "#{shortname}/lib/*.jar" -d lib/celerity/htmlunit }
|
16
|
+
|
17
|
+
puts "Fixing paths..."
|
18
|
+
sh "cp -R lib/celerity/htmlunit/#{shortname}/lib/*.jar lib/celerity/htmlunit/"
|
19
|
+
|
20
|
+
puts "Cleaning..."
|
21
|
+
rm_r "lib/celerity/htmlunit/#{shortname}/"
|
22
|
+
rm basename
|
23
|
+
|
24
|
+
puts "...done!"
|
25
|
+
end
|
metadata
CHANGED
@@ -1,84 +1,75 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: celerity
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash: -571274620
|
5
4
|
prerelease: true
|
6
5
|
segments:
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
version: 0.8.0.beta.
|
6
|
+
- 0
|
7
|
+
- 8
|
8
|
+
- 0
|
9
|
+
- beta
|
10
|
+
- 3
|
11
|
+
version: 0.8.0.beta.3
|
13
12
|
platform: ruby
|
14
13
|
authors:
|
15
|
-
- Jari Bakken
|
16
|
-
- T. Alexander Lystad
|
17
|
-
- Knut Johannes Dahle
|
14
|
+
- Jari Bakken
|
15
|
+
- T. Alexander Lystad
|
16
|
+
- Knut Johannes Dahle
|
18
17
|
autorequire:
|
19
18
|
bindir: bin
|
20
19
|
cert_chain: []
|
21
20
|
|
22
|
-
date: 2010-07-
|
21
|
+
date: 2010-07-26 00:00:00 +02:00
|
23
22
|
default_executable:
|
24
23
|
dependencies:
|
25
|
-
- !ruby/object:Gem::Dependency
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
- !ruby/object:Gem::
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
- - ">="
|
75
|
-
- !ruby/object:Gem::Version
|
76
|
-
hash: 3
|
77
|
-
segments:
|
78
|
-
- 0
|
79
|
-
version: "0"
|
80
|
-
type: :development
|
81
|
-
version_requirements: *id004
|
24
|
+
- !ruby/object:Gem::Dependency
|
25
|
+
name: rspec
|
26
|
+
prerelease: false
|
27
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
28
|
+
requirements:
|
29
|
+
- - ">="
|
30
|
+
- !ruby/object:Gem::Version
|
31
|
+
segments:
|
32
|
+
- 0
|
33
|
+
version: "0"
|
34
|
+
type: :development
|
35
|
+
version_requirements: *id001
|
36
|
+
- !ruby/object:Gem::Dependency
|
37
|
+
name: yard
|
38
|
+
prerelease: false
|
39
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
40
|
+
requirements:
|
41
|
+
- - ">="
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
segments:
|
44
|
+
- 0
|
45
|
+
version: "0"
|
46
|
+
type: :development
|
47
|
+
version_requirements: *id002
|
48
|
+
- !ruby/object:Gem::Dependency
|
49
|
+
name: sinatra
|
50
|
+
prerelease: false
|
51
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
52
|
+
requirements:
|
53
|
+
- - ">="
|
54
|
+
- !ruby/object:Gem::Version
|
55
|
+
segments:
|
56
|
+
- 1
|
57
|
+
- 0
|
58
|
+
version: "1.0"
|
59
|
+
type: :development
|
60
|
+
version_requirements: *id003
|
61
|
+
- !ruby/object:Gem::Dependency
|
62
|
+
name: mongrel
|
63
|
+
prerelease: false
|
64
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
segments:
|
69
|
+
- 0
|
70
|
+
version: "0"
|
71
|
+
type: :development
|
72
|
+
version_requirements: *id004
|
82
73
|
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."
|
83
74
|
email: jari.bakken@gmail.com
|
84
75
|
executables: []
|
@@ -86,118 +77,114 @@ executables: []
|
|
86
77
|
extensions: []
|
87
78
|
|
88
79
|
extra_rdoc_files:
|
89
|
-
- LICENSE
|
90
|
-
- README.rdoc
|
80
|
+
- LICENSE
|
81
|
+
- README.rdoc
|
91
82
|
files:
|
92
|
-
- HISTORY
|
93
|
-
- LICENSE
|
94
|
-
- README.rdoc
|
95
|
-
- Rakefile
|
96
|
-
- VERSION.yml
|
97
|
-
- celerity.gemspec
|
98
|
-
- lib/celerity.rb
|
99
|
-
- lib/celerity/browser.rb
|
100
|
-
- lib/celerity/clickable_element.rb
|
101
|
-
- lib/celerity/collections.rb
|
102
|
-
- lib/celerity/container.rb
|
103
|
-
- lib/celerity/default_viewer.rb
|
104
|
-
- lib/celerity/disabled_element.rb
|
105
|
-
- lib/celerity/element.rb
|
106
|
-
- lib/celerity/element_collection.rb
|
107
|
-
- lib/celerity/element_locator.rb
|
108
|
-
- lib/celerity/elements/button.rb
|
109
|
-
- lib/celerity/elements/file_field.rb
|
110
|
-
- lib/celerity/elements/form.rb
|
111
|
-
- lib/celerity/elements/frame.rb
|
112
|
-
- lib/celerity/elements/image.rb
|
113
|
-
- lib/celerity/elements/label.rb
|
114
|
-
- lib/celerity/elements/link.rb
|
115
|
-
- lib/celerity/elements/meta.rb
|
116
|
-
- lib/celerity/elements/non_control_elements.rb
|
117
|
-
- lib/celerity/elements/option.rb
|
118
|
-
- lib/celerity/elements/radio_check.rb
|
119
|
-
- lib/celerity/elements/select_list.rb
|
120
|
-
- lib/celerity/elements/table.rb
|
121
|
-
- lib/celerity/elements/table_cell.rb
|
122
|
-
- lib/celerity/elements/table_elements.rb
|
123
|
-
- lib/celerity/elements/table_row.rb
|
124
|
-
- lib/celerity/elements/text_field.rb
|
125
|
-
- lib/celerity/exception.rb
|
126
|
-
- lib/celerity/htmlunit.rb
|
127
|
-
- lib/celerity/htmlunit/apache-mime4j-0.6.jar
|
128
|
-
- lib/celerity/htmlunit/commons-codec-1.4.jar
|
129
|
-
- lib/celerity/htmlunit/commons-collections-3.2.1.jar
|
130
|
-
- lib/celerity/htmlunit/commons-io-1.4.jar
|
131
|
-
- lib/celerity/htmlunit/commons-lang-2.4.jar
|
132
|
-
- lib/celerity/htmlunit/commons-logging-1.1.1.jar
|
133
|
-
- lib/celerity/htmlunit/cssparser-0.9.5.jar
|
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
|
140
|
-
- lib/celerity/htmlunit/sac-1.3.jar
|
141
|
-
- lib/celerity/htmlunit/serializer-2.7.1.jar
|
142
|
-
- lib/celerity/htmlunit/xalan-2.7.1.jar
|
143
|
-
- lib/celerity/htmlunit/xercesImpl-2.9.1.jar
|
144
|
-
- lib/celerity/htmlunit/xml-apis-1.3.04.jar
|
145
|
-
- lib/celerity/identifier.rb
|
146
|
-
- lib/celerity/ignoring_web_connection.rb
|
147
|
-
- lib/celerity/input_element.rb
|
148
|
-
- lib/celerity/javascript_debugger.rb
|
149
|
-
- lib/celerity/listener.rb
|
150
|
-
- lib/celerity/resources/no_viewer.png
|
151
|
-
- lib/celerity/short_inspect.rb
|
152
|
-
- lib/celerity/util.rb
|
153
|
-
- lib/celerity/version.rb
|
154
|
-
- lib/celerity/viewer_connection.rb
|
155
|
-
- lib/celerity/watir_compatibility.rb
|
156
|
-
- lib/celerity/xpath_support.rb
|
157
|
-
- tasks/benchmark.rake
|
158
|
-
- tasks/check.rake
|
159
|
-
- tasks/clean.rake
|
160
|
-
- tasks/fix.rake
|
161
|
-
- tasks/jar.rake
|
162
|
-
- tasks/jeweler.rake
|
163
|
-
- tasks/rdoc.rake
|
164
|
-
- tasks/snapshot.rake
|
165
|
-
- tasks/spec.rake
|
166
|
-
- tasks/website.rake
|
167
|
-
- tasks/yard.rake
|
83
|
+
- HISTORY
|
84
|
+
- LICENSE
|
85
|
+
- README.rdoc
|
86
|
+
- Rakefile
|
87
|
+
- VERSION.yml
|
88
|
+
- celerity.gemspec
|
89
|
+
- lib/celerity.rb
|
90
|
+
- lib/celerity/browser.rb
|
91
|
+
- lib/celerity/clickable_element.rb
|
92
|
+
- lib/celerity/collections.rb
|
93
|
+
- lib/celerity/container.rb
|
94
|
+
- lib/celerity/default_viewer.rb
|
95
|
+
- lib/celerity/disabled_element.rb
|
96
|
+
- lib/celerity/element.rb
|
97
|
+
- lib/celerity/element_collection.rb
|
98
|
+
- lib/celerity/element_locator.rb
|
99
|
+
- lib/celerity/elements/button.rb
|
100
|
+
- lib/celerity/elements/file_field.rb
|
101
|
+
- lib/celerity/elements/form.rb
|
102
|
+
- lib/celerity/elements/frame.rb
|
103
|
+
- lib/celerity/elements/image.rb
|
104
|
+
- lib/celerity/elements/label.rb
|
105
|
+
- lib/celerity/elements/link.rb
|
106
|
+
- lib/celerity/elements/meta.rb
|
107
|
+
- lib/celerity/elements/non_control_elements.rb
|
108
|
+
- lib/celerity/elements/option.rb
|
109
|
+
- lib/celerity/elements/radio_check.rb
|
110
|
+
- lib/celerity/elements/select_list.rb
|
111
|
+
- lib/celerity/elements/table.rb
|
112
|
+
- lib/celerity/elements/table_cell.rb
|
113
|
+
- lib/celerity/elements/table_elements.rb
|
114
|
+
- lib/celerity/elements/table_row.rb
|
115
|
+
- lib/celerity/elements/text_field.rb
|
116
|
+
- lib/celerity/exception.rb
|
117
|
+
- lib/celerity/htmlunit.rb
|
118
|
+
- lib/celerity/htmlunit/apache-mime4j-0.6.jar
|
119
|
+
- lib/celerity/htmlunit/commons-codec-1.4.jar
|
120
|
+
- lib/celerity/htmlunit/commons-collections-3.2.1.jar
|
121
|
+
- lib/celerity/htmlunit/commons-io-1.4.jar
|
122
|
+
- lib/celerity/htmlunit/commons-lang-2.4.jar
|
123
|
+
- lib/celerity/htmlunit/commons-logging-1.1.1.jar
|
124
|
+
- lib/celerity/htmlunit/cssparser-0.9.5.jar
|
125
|
+
- lib/celerity/htmlunit/htmlunit-2.8-SNAPSHOT.jar
|
126
|
+
- lib/celerity/htmlunit/htmlunit-core-js-2.8-SNAPSHOT.jar
|
127
|
+
- lib/celerity/htmlunit/httpclient-4.0.1.jar
|
128
|
+
- lib/celerity/htmlunit/httpcore-4.0.1.jar
|
129
|
+
- lib/celerity/htmlunit/httpmime-4.0.1.jar
|
130
|
+
- lib/celerity/htmlunit/nekohtml-1.9.14.jar
|
131
|
+
- lib/celerity/htmlunit/sac-1.3.jar
|
132
|
+
- lib/celerity/htmlunit/serializer-2.7.1.jar
|
133
|
+
- lib/celerity/htmlunit/xalan-2.7.1.jar
|
134
|
+
- lib/celerity/htmlunit/xercesImpl-2.9.1.jar
|
135
|
+
- lib/celerity/htmlunit/xml-apis-1.3.04.jar
|
136
|
+
- lib/celerity/identifier.rb
|
137
|
+
- lib/celerity/ignoring_web_connection.rb
|
138
|
+
- lib/celerity/input_element.rb
|
139
|
+
- lib/celerity/javascript_debugger.rb
|
140
|
+
- lib/celerity/listener.rb
|
141
|
+
- lib/celerity/resources/no_viewer.png
|
142
|
+
- lib/celerity/short_inspect.rb
|
143
|
+
- lib/celerity/util.rb
|
144
|
+
- lib/celerity/version.rb
|
145
|
+
- lib/celerity/viewer_connection.rb
|
146
|
+
- lib/celerity/watir_compatibility.rb
|
147
|
+
- lib/celerity/xpath_support.rb
|
148
|
+
- tasks/benchmark.rake
|
149
|
+
- tasks/check.rake
|
150
|
+
- tasks/clean.rake
|
151
|
+
- tasks/fix.rake
|
152
|
+
- tasks/jar.rake
|
153
|
+
- tasks/jeweler.rake
|
154
|
+
- tasks/rdoc.rake
|
155
|
+
- tasks/snapshot.rake
|
156
|
+
- tasks/spec.rake
|
157
|
+
- tasks/website.rake
|
158
|
+
- tasks/yard.rake
|
168
159
|
has_rdoc: true
|
169
160
|
homepage: http://github.com/jarib/celerity
|
170
161
|
licenses: []
|
171
162
|
|
172
163
|
post_install_message:
|
173
164
|
rdoc_options:
|
174
|
-
- --charset=UTF-8
|
165
|
+
- --charset=UTF-8
|
175
166
|
require_paths:
|
176
|
-
- lib
|
167
|
+
- lib
|
177
168
|
required_ruby_version: !ruby/object:Gem::Requirement
|
178
|
-
none: false
|
179
169
|
requirements:
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
version: "0"
|
170
|
+
- - ">="
|
171
|
+
- !ruby/object:Gem::Version
|
172
|
+
segments:
|
173
|
+
- 0
|
174
|
+
version: "0"
|
186
175
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
187
|
-
none: false
|
188
176
|
requirements:
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
version: 1.3.1
|
177
|
+
- - ">"
|
178
|
+
- !ruby/object:Gem::Version
|
179
|
+
segments:
|
180
|
+
- 1
|
181
|
+
- 3
|
182
|
+
- 1
|
183
|
+
version: 1.3.1
|
197
184
|
requirements: []
|
198
185
|
|
199
186
|
rubyforge_project: celerity
|
200
|
-
rubygems_version: 1.3.
|
187
|
+
rubygems_version: 1.3.6
|
201
188
|
signing_key:
|
202
189
|
specification_version: 3
|
203
190
|
summary: Celerity is a JRuby library for easy and fast functional test automation for web applications.
|