capybara-mechanize 1.7.0 → 1.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/capybara/mechanize/browser.rb +12 -0
- data/lib/capybara/mechanize/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 491552a5494391cfbb9d3e28707cc1586f39b7b8
|
4
|
+
data.tar.gz: b9cc4123d82577ed2f8daabbb3c96087671227a2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 09fdcf5d2d5addcbb8c67a6792addb7cd84fac6e6cf6f8b35e9aaf04e427585098361bcba177932343a76a1dbe01d7e209ff2e795667a20f40e3251814a72245
|
7
|
+
data.tar.gz: 3ca37587af71ae0206d95e8bf0f926998ea0fda5de778439ffa0d92b37ed69380d04bd0a86cac72f963d18b1f7f852898f20e1982eb032e2ee7f0c347b2934f9
|
@@ -47,6 +47,18 @@ class Capybara::Mechanize::Browser < Capybara::RackTest::Browser
|
|
47
47
|
end
|
48
48
|
|
49
49
|
@last_path = path
|
50
|
+
@last_method = method
|
51
|
+
@last_params = params
|
52
|
+
@last_env = env
|
53
|
+
end
|
54
|
+
end
|
55
|
+
|
56
|
+
def refresh
|
57
|
+
if last_request_remote?
|
58
|
+
process_remote_request(@last_method, @last_remote_uri.to_s, @last_params, @last_env)
|
59
|
+
else
|
60
|
+
register_local_request
|
61
|
+
super
|
50
62
|
end
|
51
63
|
end
|
52
64
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capybara-mechanize
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.8.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jeroen van Dijk
|
@@ -47,7 +47,7 @@ dependencies:
|
|
47
47
|
version: 2.4.4
|
48
48
|
- - "<"
|
49
49
|
- !ruby/object:Gem::Version
|
50
|
-
version: '2.
|
50
|
+
version: '2.16'
|
51
51
|
type: :runtime
|
52
52
|
prerelease: false
|
53
53
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -57,7 +57,7 @@ dependencies:
|
|
57
57
|
version: 2.4.4
|
58
58
|
- - "<"
|
59
59
|
- !ruby/object:Gem::Version
|
60
|
-
version: '2.
|
60
|
+
version: '2.16'
|
61
61
|
description: RackTest driver for Capybara, but with remote request support thanks
|
62
62
|
to mechanize
|
63
63
|
email: jeroen@jeevidee.nl
|