capybara-webkit 1.6.0 → 1.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +3 -3
- data/Appraisals +4 -4
- data/Gemfile.lock +6 -6
- data/NEWS.md +5 -0
- data/capybara-webkit.gemspec +1 -1
- data/gemfiles/2.4.gemfile.lock +3 -3
- data/gemfiles/{2.3.gemfile → 2.5.gemfile} +1 -1
- data/gemfiles/{2.3.gemfile.lock → 2.5.gemfile.lock} +23 -25
- data/lib/capybara/webkit/version.rb +1 -1
- data/spec/spec_helper.rb +4 -14
- data/src/UnknownUrlHandler.cpp +9 -3
- data/src/capybara.js +3 -0
- metadata +9 -24
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 136473d447fe1a0b1d9f8885d80067fc93cbadf5
|
4
|
+
data.tar.gz: 1e397271112f1be272c0db39caeb4f2ee34e4e3d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cb3737cb219aef7fe7da7b9e3fd6ffdbcc52e6dc5ba3970edfa1186e209e6f93384e5ca210217a7ff6217c2d4803cc0f1dc1c51145af018627a46540c7ba0aa4
|
7
|
+
data.tar.gz: 534a003c460631a0804ce7edc9972d6a1812e001a3b060398cf2641621c1435104055e628976b812d34996681e9485b0ec4252d9c41f8a6803251b0775423aca
|
data/.travis.yml
CHANGED
@@ -14,14 +14,14 @@ env:
|
|
14
14
|
matrix:
|
15
15
|
include:
|
16
16
|
- rvm: 1.9.3
|
17
|
-
gemfile: gemfiles/2.
|
17
|
+
gemfile: gemfiles/2.4.gemfile
|
18
18
|
env: QMAKE=/usr/lib/x86_64-linux-gnu/qt5/bin/qmake
|
19
19
|
- rvm: 1.9.3
|
20
|
-
gemfile: gemfiles/2.
|
20
|
+
gemfile: gemfiles/2.5.gemfile
|
21
21
|
env: QMAKE=/usr/lib/x86_64-linux-gnu/qt5/bin/qmake
|
22
22
|
gemfile:
|
23
|
-
- gemfiles/2.3.gemfile
|
24
23
|
- gemfiles/2.4.gemfile
|
24
|
+
- gemfiles/2.5.gemfile
|
25
25
|
before_install:
|
26
26
|
- sh -c 'if [ -n "$QMAKE" ]; then sudo apt-add-repository -y ppa:ubuntu-sdk-team/ppa && sudo apt-get update && sudo apt-get install libqt5webkit5-dev qtdeclarative5-dev; fi'
|
27
27
|
install: bundle
|
data/Appraisals
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
capybara-webkit (1.
|
5
|
-
capybara (>= 2.3.0, < 2.
|
4
|
+
capybara-webkit (1.7.0)
|
5
|
+
capybara (>= 2.3.0, < 2.6.0)
|
6
6
|
json
|
7
7
|
|
8
8
|
GEM
|
@@ -12,7 +12,7 @@ GEM
|
|
12
12
|
appraisal (0.4.0)
|
13
13
|
bundler
|
14
14
|
rake
|
15
|
-
capybara (2.
|
15
|
+
capybara (2.5.0)
|
16
16
|
mime-types (>= 1.16)
|
17
17
|
nokogiri (>= 1.3.3)
|
18
18
|
rack (>= 1.0.0)
|
@@ -24,20 +24,20 @@ GEM
|
|
24
24
|
ffi (1.9.8)
|
25
25
|
ffi (1.9.8-java)
|
26
26
|
ffi (1.9.8-x86-mingw32)
|
27
|
-
json (1.8.
|
27
|
+
json (1.8.3)
|
28
28
|
launchy (2.4.2)
|
29
29
|
addressable (~> 2.3)
|
30
30
|
launchy (2.4.2-java)
|
31
31
|
addressable (~> 2.3)
|
32
32
|
spoon (~> 0.0.1)
|
33
|
-
mime-types (2.
|
33
|
+
mime-types (2.6.1)
|
34
34
|
mini_magick (3.2.1)
|
35
35
|
subexec (~> 0.0.4)
|
36
36
|
mini_portile (0.6.2)
|
37
37
|
multi_json (1.11.0)
|
38
38
|
nokogiri (1.6.6.2)
|
39
39
|
mini_portile (~> 0.6.0)
|
40
|
-
rack (1.
|
40
|
+
rack (1.6.4)
|
41
41
|
rack-protection (1.3.2)
|
42
42
|
rack
|
43
43
|
rack-test (0.6.3)
|
data/NEWS.md
CHANGED
data/capybara-webkit.gemspec
CHANGED
@@ -19,7 +19,7 @@ Gem::Specification.new do |s|
|
|
19
19
|
|
20
20
|
s.required_ruby_version = ">= 1.9.0"
|
21
21
|
|
22
|
-
s.add_runtime_dependency("capybara", ">= 2.3.0", "< 2.
|
22
|
+
s.add_runtime_dependency("capybara", ">= 2.3.0", "< 2.6.0")
|
23
23
|
s.add_runtime_dependency("json")
|
24
24
|
|
25
25
|
s.add_development_dependency("rspec", "~> 2.14.0")
|
data/gemfiles/2.4.gemfile.lock
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
PATH
|
2
2
|
remote: ../
|
3
3
|
specs:
|
4
|
-
capybara-webkit (1.
|
5
|
-
capybara (>= 2.3.0, < 2.
|
4
|
+
capybara-webkit (1.7.0)
|
5
|
+
capybara (>= 2.3.0, < 2.6.0)
|
6
6
|
json
|
7
7
|
|
8
8
|
GEM
|
@@ -22,7 +22,7 @@ GEM
|
|
22
22
|
ffi (~> 1.0, >= 1.0.11)
|
23
23
|
diff-lcs (1.2.5)
|
24
24
|
ffi (1.9.8)
|
25
|
-
json (1.8.
|
25
|
+
json (1.8.3)
|
26
26
|
launchy (2.4.2)
|
27
27
|
addressable (~> 2.3)
|
28
28
|
mime-types (2.4.3)
|
@@ -1,43 +1,42 @@
|
|
1
1
|
PATH
|
2
2
|
remote: ../
|
3
3
|
specs:
|
4
|
-
capybara-webkit (1.
|
5
|
-
capybara (>= 2.3.0, < 2.
|
4
|
+
capybara-webkit (1.7.0)
|
5
|
+
capybara (>= 2.3.0, < 2.6.0)
|
6
6
|
json
|
7
7
|
|
8
8
|
GEM
|
9
9
|
remote: https://rubygems.org/
|
10
10
|
specs:
|
11
|
-
addressable (2.3.
|
11
|
+
addressable (2.3.8)
|
12
12
|
appraisal (0.4.1)
|
13
13
|
bundler
|
14
14
|
rake
|
15
|
-
capybara (2.
|
15
|
+
capybara (2.5.0)
|
16
16
|
mime-types (>= 1.16)
|
17
17
|
nokogiri (>= 1.3.3)
|
18
18
|
rack (>= 1.0.0)
|
19
19
|
rack-test (>= 0.5.4)
|
20
20
|
xpath (~> 2.0)
|
21
|
-
childprocess (0.5.
|
21
|
+
childprocess (0.5.6)
|
22
22
|
ffi (~> 1.0, >= 1.0.11)
|
23
23
|
diff-lcs (1.2.5)
|
24
|
-
ffi (1.9.
|
25
|
-
json (1.8.
|
26
|
-
launchy (2.4.
|
24
|
+
ffi (1.9.10)
|
25
|
+
json (1.8.3)
|
26
|
+
launchy (2.4.3)
|
27
27
|
addressable (~> 2.3)
|
28
|
-
mime-types (2.
|
29
|
-
mini_magick (
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
rack (1.5.2)
|
28
|
+
mime-types (2.6.1)
|
29
|
+
mini_magick (4.2.10)
|
30
|
+
mini_portile (0.6.2)
|
31
|
+
multi_json (1.11.2)
|
32
|
+
nokogiri (1.6.6.2)
|
33
|
+
mini_portile (~> 0.6.0)
|
34
|
+
rack (1.6.4)
|
36
35
|
rack-protection (1.5.3)
|
37
36
|
rack
|
38
|
-
rack-test (0.6.
|
37
|
+
rack-test (0.6.3)
|
39
38
|
rack (>= 1.0)
|
40
|
-
rake (10.
|
39
|
+
rake (10.4.2)
|
41
40
|
rspec (2.14.1)
|
42
41
|
rspec-core (~> 2.14.0)
|
43
42
|
rspec-expectations (~> 2.14.0)
|
@@ -47,18 +46,17 @@ GEM
|
|
47
46
|
diff-lcs (>= 1.1.3, < 2.0)
|
48
47
|
rspec-mocks (2.14.6)
|
49
48
|
rubyzip (1.1.7)
|
50
|
-
selenium-webdriver (2.
|
49
|
+
selenium-webdriver (2.47.1)
|
51
50
|
childprocess (~> 0.5)
|
52
51
|
multi_json (~> 1.0)
|
53
52
|
rubyzip (~> 1.0)
|
54
53
|
websocket (~> 1.0)
|
55
|
-
sinatra (1.4.
|
54
|
+
sinatra (1.4.6)
|
56
55
|
rack (~> 1.4)
|
57
56
|
rack-protection (~> 1.4)
|
58
|
-
tilt (
|
59
|
-
|
60
|
-
|
61
|
-
websocket (1.2.1)
|
57
|
+
tilt (>= 1.3, < 3)
|
58
|
+
tilt (2.0.1)
|
59
|
+
websocket (1.2.2)
|
62
60
|
xpath (2.0.0)
|
63
61
|
nokogiri (~> 1.3)
|
64
62
|
|
@@ -67,7 +65,7 @@ PLATFORMS
|
|
67
65
|
|
68
66
|
DEPENDENCIES
|
69
67
|
appraisal (~> 0.4.0)
|
70
|
-
capybara (~> 2.
|
68
|
+
capybara (~> 2.5.0)
|
71
69
|
capybara-webkit!
|
72
70
|
launchy
|
73
71
|
mini_magick
|
data/spec/spec_helper.rb
CHANGED
@@ -49,20 +49,10 @@ RSpec.configure do |c|
|
|
49
49
|
|
50
50
|
# We can't support outerWidth and outerHeight without a visible window.
|
51
51
|
# We focus the next window instead of failing when closing windows.
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
c.around :requires => :screenshot do |example|
|
57
|
-
old_path = Capybara.save_and_open_page_path
|
58
|
-
Capybara.save_and_open_page_path = File.join(PROJECT_ROOT, 'tmp', 'capybara')
|
59
|
-
|
60
|
-
begin
|
61
|
-
example.run
|
62
|
-
ensure
|
63
|
-
Capybara.save_and_open_page_path = old_path
|
64
|
-
end
|
65
|
-
end
|
52
|
+
# Node #send_keys is not yet implemented.
|
53
|
+
c.filter_run_excluding :full_description => lambda { |description, metadata|
|
54
|
+
description =~ /Capybara::Session webkit Capybara::Window #(size|resize_to|maximize|close.*no_such_window_error|send_keys)/ || description =~ /Capybara::Session webkit node #send_keys/
|
55
|
+
}
|
66
56
|
end
|
67
57
|
|
68
58
|
def with_env_vars(vars)
|
data/src/UnknownUrlHandler.cpp
CHANGED
@@ -24,11 +24,17 @@ QNetworkReply* UnknownUrlHandler::handleRequest(
|
|
24
24
|
QTextStream(stderr) <<
|
25
25
|
"Request to unknown URL: " << url.toString() << endl <<
|
26
26
|
"To block requests to unknown URLs:" << endl <<
|
27
|
-
"
|
27
|
+
" Capybara::Webkit.configure do |config|" << endl <<
|
28
|
+
" config.block_unknown_urls" << endl <<
|
29
|
+
" end" << endl <<
|
28
30
|
"To allow just this URL:" << endl <<
|
29
|
-
"
|
31
|
+
" Capybara::Webkit.configure do |config|" << endl <<
|
32
|
+
" config.allow_url(\"" << url.toString() << "\")" << endl <<
|
33
|
+
" end" << endl <<
|
30
34
|
"To allow requests to URLs from this host:" << endl <<
|
31
|
-
"
|
35
|
+
" Capybara::Webkit.configure do |config|" << endl <<
|
36
|
+
" config.allow_url(\"" << url.host() << "\")" << endl <<
|
37
|
+
" end" << endl;
|
32
38
|
break;
|
33
39
|
case BLOCK:
|
34
40
|
return new NetworkReplyProxy(new NoOpReply(request), this);
|
data/src/capybara.js
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capybara-webkit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- thoughtbot
|
@@ -13,7 +13,7 @@ authors:
|
|
13
13
|
autorequire:
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
|
-
date: 2015-
|
16
|
+
date: 2015-08-30 00:00:00.000000000 Z
|
17
17
|
dependencies:
|
18
18
|
- !ruby/object:Gem::Dependency
|
19
19
|
name: capybara
|
@@ -24,7 +24,7 @@ dependencies:
|
|
24
24
|
version: 2.3.0
|
25
25
|
- - "<"
|
26
26
|
- !ruby/object:Gem::Version
|
27
|
-
version: 2.
|
27
|
+
version: 2.6.0
|
28
28
|
type: :runtime
|
29
29
|
prerelease: false
|
30
30
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -34,7 +34,7 @@ dependencies:
|
|
34
34
|
version: 2.3.0
|
35
35
|
- - "<"
|
36
36
|
- !ruby/object:Gem::Version
|
37
|
-
version: 2.
|
37
|
+
version: 2.6.0
|
38
38
|
- !ruby/object:Gem::Dependency
|
39
39
|
name: json
|
40
40
|
requirement: !ruby/object:Gem::Requirement
|
@@ -170,10 +170,10 @@ files:
|
|
170
170
|
- bin/Info.plist
|
171
171
|
- capybara-webkit.gemspec
|
172
172
|
- extconf.rb
|
173
|
-
- gemfiles/2.3.gemfile
|
174
|
-
- gemfiles/2.3.gemfile.lock
|
175
173
|
- gemfiles/2.4.gemfile
|
176
174
|
- gemfiles/2.4.gemfile.lock
|
175
|
+
- gemfiles/2.5.gemfile
|
176
|
+
- gemfiles/2.5.gemfile.lock
|
177
177
|
- lib/capybara-webkit.rb
|
178
178
|
- lib/capybara/webkit.rb
|
179
179
|
- lib/capybara/webkit/browser.rb
|
@@ -397,24 +397,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
397
397
|
version: '0'
|
398
398
|
requirements: []
|
399
399
|
rubyforge_project:
|
400
|
-
rubygems_version: 2.
|
400
|
+
rubygems_version: 2.2.2
|
401
401
|
signing_key:
|
402
402
|
specification_version: 4
|
403
403
|
summary: Headless Webkit driver for Capybara
|
404
|
-
test_files:
|
405
|
-
|
406
|
-
- spec/capybara_webkit_builder_spec.rb
|
407
|
-
- spec/configuration_spec.rb
|
408
|
-
- spec/connection_spec.rb
|
409
|
-
- spec/cookie_jar_spec.rb
|
410
|
-
- spec/driver_rendering_spec.rb
|
411
|
-
- spec/driver_resize_window_spec.rb
|
412
|
-
- spec/driver_spec.rb
|
413
|
-
- spec/errors_spec.rb
|
414
|
-
- spec/integration/session_spec.rb
|
415
|
-
- spec/selenium_compatibility_spec.rb
|
416
|
-
- spec/self_signed_ssl_cert.rb
|
417
|
-
- spec/spec_helper.rb
|
418
|
-
- spec/support/app_runner.rb
|
419
|
-
- spec/support/matchers/include_response.rb
|
420
|
-
- spec/support/output_writer.rb
|
404
|
+
test_files: []
|
405
|
+
has_rdoc:
|