celerity 0.8.4 → 0.8.5
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 +79 -80
- data/lib/celerity/browser.rb +4 -4
- data/lib/celerity/container.rb +2 -0
- data/lib/celerity/htmlunit/htmlunit-2.9-SNAPSHOT.jar +0 -0
- metadata +5 -5
data/VERSION.yml
CHANGED
data/celerity.gemspec
CHANGED
@@ -1,101 +1,100 @@
|
|
1
1
|
# Generated by jeweler
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
-
# Instead, edit Jeweler::Tasks in Rakefile, and run
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{celerity}
|
8
|
-
s.version = "0.8.
|
8
|
+
s.version = "0.8.5"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") 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-12-07}
|
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 = [
|
16
16
|
"LICENSE",
|
17
|
-
|
17
|
+
"README.rdoc"
|
18
18
|
]
|
19
19
|
s.files = [
|
20
20
|
"HISTORY",
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
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
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
21
|
+
"LICENSE",
|
22
|
+
"README.rdoc",
|
23
|
+
"Rakefile",
|
24
|
+
"VERSION.yml",
|
25
|
+
"celerity.gemspec",
|
26
|
+
"lib/celerity.rb",
|
27
|
+
"lib/celerity/browser.rb",
|
28
|
+
"lib/celerity/clickable_element.rb",
|
29
|
+
"lib/celerity/collections.rb",
|
30
|
+
"lib/celerity/container.rb",
|
31
|
+
"lib/celerity/default_viewer.rb",
|
32
|
+
"lib/celerity/disabled_element.rb",
|
33
|
+
"lib/celerity/element.rb",
|
34
|
+
"lib/celerity/element_collection.rb",
|
35
|
+
"lib/celerity/element_locator.rb",
|
36
|
+
"lib/celerity/elements/button.rb",
|
37
|
+
"lib/celerity/elements/file_field.rb",
|
38
|
+
"lib/celerity/elements/form.rb",
|
39
|
+
"lib/celerity/elements/frame.rb",
|
40
|
+
"lib/celerity/elements/image.rb",
|
41
|
+
"lib/celerity/elements/label.rb",
|
42
|
+
"lib/celerity/elements/link.rb",
|
43
|
+
"lib/celerity/elements/meta.rb",
|
44
|
+
"lib/celerity/elements/non_control_elements.rb",
|
45
|
+
"lib/celerity/elements/option.rb",
|
46
|
+
"lib/celerity/elements/radio_check.rb",
|
47
|
+
"lib/celerity/elements/select_list.rb",
|
48
|
+
"lib/celerity/elements/table.rb",
|
49
|
+
"lib/celerity/elements/table_cell.rb",
|
50
|
+
"lib/celerity/elements/table_elements.rb",
|
51
|
+
"lib/celerity/elements/table_row.rb",
|
52
|
+
"lib/celerity/elements/text_field.rb",
|
53
|
+
"lib/celerity/exception.rb",
|
54
|
+
"lib/celerity/htmlunit.rb",
|
55
|
+
"lib/celerity/htmlunit/apache-mime4j-0.6.jar",
|
56
|
+
"lib/celerity/htmlunit/commons-codec-1.4.jar",
|
57
|
+
"lib/celerity/htmlunit/commons-collections-3.2.1.jar",
|
58
|
+
"lib/celerity/htmlunit/commons-io-2.0.jar",
|
59
|
+
"lib/celerity/htmlunit/commons-lang-2.5.jar",
|
60
|
+
"lib/celerity/htmlunit/commons-logging-1.1.1.jar",
|
61
|
+
"lib/celerity/htmlunit/cssparser-0.9.5.jar",
|
62
|
+
"lib/celerity/htmlunit/htmlunit-2.9-SNAPSHOT.jar",
|
63
|
+
"lib/celerity/htmlunit/htmlunit-core-js-2.9-SNAPSHOT.jar",
|
64
|
+
"lib/celerity/htmlunit/httpclient-4.0.3.jar",
|
65
|
+
"lib/celerity/htmlunit/httpcore-4.0.1.jar",
|
66
|
+
"lib/celerity/htmlunit/httpmime-4.0.3.jar",
|
67
|
+
"lib/celerity/htmlunit/nekohtml-1.9.15-20101026.093020-2.jar",
|
68
|
+
"lib/celerity/htmlunit/sac-1.3.jar",
|
69
|
+
"lib/celerity/htmlunit/serializer-2.7.1.jar",
|
70
|
+
"lib/celerity/htmlunit/xalan-2.7.1.jar",
|
71
|
+
"lib/celerity/htmlunit/xercesImpl-2.9.1.jar",
|
72
|
+
"lib/celerity/htmlunit/xml-apis-1.3.04.jar",
|
73
|
+
"lib/celerity/identifier.rb",
|
74
|
+
"lib/celerity/ignoring_web_connection.rb",
|
75
|
+
"lib/celerity/input_element.rb",
|
76
|
+
"lib/celerity/javascript_debugger.rb",
|
77
|
+
"lib/celerity/listener.rb",
|
78
|
+
"lib/celerity/resources/no_viewer.png",
|
79
|
+
"lib/celerity/short_inspect.rb",
|
80
|
+
"lib/celerity/util.rb",
|
81
|
+
"lib/celerity/version.rb",
|
82
|
+
"lib/celerity/viewer_connection.rb",
|
83
|
+
"lib/celerity/watir_compatibility.rb",
|
84
|
+
"lib/celerity/xpath_support.rb",
|
85
|
+
"tasks/benchmark.rake",
|
86
|
+
"tasks/check.rake",
|
87
|
+
"tasks/clean.rake",
|
88
|
+
"tasks/fix.rake",
|
89
|
+
"tasks/jar.rake",
|
90
|
+
"tasks/jeweler.rake",
|
91
|
+
"tasks/rdoc.rake",
|
92
|
+
"tasks/snapshot.rake",
|
93
|
+
"tasks/spec.rake",
|
94
|
+
"tasks/website.rake",
|
95
|
+
"tasks/yard.rake"
|
96
96
|
]
|
97
97
|
s.homepage = %q{http://github.com/jarib/celerity}
|
98
|
-
s.rdoc_options = ["--charset=UTF-8"]
|
99
98
|
s.require_paths = ["lib"]
|
100
99
|
s.rubyforge_project = %q{celerity}
|
101
100
|
s.rubygems_version = %q{1.3.7}
|
data/lib/celerity/browser.rb
CHANGED
@@ -306,15 +306,15 @@ module Celerity
|
|
306
306
|
def clear_cache
|
307
307
|
@webclient.cache.clear
|
308
308
|
end
|
309
|
-
|
309
|
+
|
310
310
|
#
|
311
311
|
# Set the maximum number of files to cache.
|
312
312
|
#
|
313
|
-
|
313
|
+
|
314
314
|
def cache_limit=(size)
|
315
315
|
@webclient.cache.setMaxSize(size)
|
316
316
|
end
|
317
|
-
|
317
|
+
|
318
318
|
def cache_limit
|
319
319
|
@webclient.cache.getMaxSize
|
320
320
|
end
|
@@ -853,7 +853,7 @@ module Celerity
|
|
853
853
|
|
854
854
|
self.javascript_exceptions = false unless opts.delete(:javascript_exceptions)
|
855
855
|
self.status_code_exceptions = false unless opts.delete(:status_code_exceptions)
|
856
|
-
self.css = opts.delete(:css) if opts
|
856
|
+
self.css = !!opts.delete(:css) if opts.has_key?(:css)
|
857
857
|
self.javascript_enabled = opts.delete(:javascript_enabled) != false
|
858
858
|
self.secure_ssl = opts.delete(:secure_ssl) != false
|
859
859
|
self.ignore_pattern = opts.delete(:ignore_pattern) if opts[:ignore_pattern]
|
data/lib/celerity/container.rb
CHANGED
@@ -481,6 +481,7 @@ module Celerity
|
|
481
481
|
def link(*args)
|
482
482
|
Link.new(self, *args)
|
483
483
|
end
|
484
|
+
alias_method :a, :link
|
484
485
|
|
485
486
|
#
|
486
487
|
# @return [Celerity::Links]
|
@@ -489,6 +490,7 @@ module Celerity
|
|
489
490
|
def links
|
490
491
|
Links.new(self)
|
491
492
|
end
|
493
|
+
alias_method :as, :links
|
492
494
|
|
493
495
|
#
|
494
496
|
# @return [Celerity::Map]
|
Binary file
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 8
|
8
|
-
-
|
9
|
-
version: 0.8.
|
8
|
+
- 5
|
9
|
+
version: 0.8.5
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Jari Bakken
|
@@ -16,7 +16,7 @@ autorequire:
|
|
16
16
|
bindir: bin
|
17
17
|
cert_chain: []
|
18
18
|
|
19
|
-
date: 2010-
|
19
|
+
date: 2010-12-07 00:00:00 +01:00
|
20
20
|
default_executable:
|
21
21
|
dependencies:
|
22
22
|
- !ruby/object:Gem::Dependency
|
@@ -165,8 +165,8 @@ homepage: http://github.com/jarib/celerity
|
|
165
165
|
licenses: []
|
166
166
|
|
167
167
|
post_install_message:
|
168
|
-
rdoc_options:
|
169
|
-
|
168
|
+
rdoc_options: []
|
169
|
+
|
170
170
|
require_paths:
|
171
171
|
- lib
|
172
172
|
required_ruby_version: !ruby/object:Gem::Requirement
|