capybara-mechanize 1.12.0 → 1.13.0

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 964088e52d1773ab930c2e5954ab42aa618526a06fd1c3f80e4ae33bb72c0630
4
- data.tar.gz: '0854756c4a3f907052509229cb682099d18af60adeb7e9c76c5b2375c7e8d946'
3
+ metadata.gz: 71e7a9ea538130766c9767154896ed33b16b9fd6c456d83fa518605f1ec503e6
4
+ data.tar.gz: 8faf6e05b63c36569b60706efe16dde9750315fef161331bf93a230c4b17ea7a
5
5
  SHA512:
6
- metadata.gz: 5c691f96c62e55c408c2b6b235eb6804b1adf4446358f08c0e53e4092f838537e28c235fcd9b0a887828247313ea3b57bf944fa1b872d53a6fc86b3ec4c8e7ae
7
- data.tar.gz: 5d7ecc072aa6f57b3536224e2cb35f1f7915e3758e67cdfaf872ae9ba49f0d07d15bf394b635305f89c0a5b1756233eefe6947e8efac5520f409f7789aeb83b5
6
+ metadata.gz: 4082669d5c99028a56f1aa814914a2a131c8cdf31283b5c647fd5bf54487aaf4544f2a0574067c2496a7b1f55c64eff12686b496a90b05df0fab76a501f06a1e
7
+ data.tar.gz: f0e34a78d34a155ef9c5fca66af1162a562445ba90f3a4e26a78d50f48cc2a812ed09627c3be0c1c0c57de04d2b991a6906f8b79a28f95aa06cbc7bf45dd860b
data/README.mdown CHANGED
@@ -1,9 +1,9 @@
1
1
  Capybara-mechanize
2
2
  ==================
3
3
 
4
- [![Build Status](https://travis-ci.org/jeroenvandijk/capybara-mechanize.png?branch=master)](https://travis-ci.org/jeroenvandijk/capybara-mechanize)
4
+ [![.github/workflows/test_and_release.yml](https://github.com/phillbaker/capybara-mechanize/actions/workflows/test_and_release.yml/badge.svg)](https://github.com/phillbaker/capybara-mechanize/actions/workflows/test_and_release.yml)
5
5
 
6
- This gems makes it possible to use Capybara for (partially) remote testing. It inherits most functionality from the RackTest driver and only uses [Mechanize](https://github.com/sparklemotion/mechanize) for remote requests.
6
+ This gem makes it possible to use Capybara for (partially) remote testing. It inherits most functionality from the RackTest driver and only uses [Mechanize](https://github.com/sparklemotion/mechanize) for remote requests.
7
7
 
8
8
  It is currently in use to test the integration between a Rails application and Twitter authorization and sharing.
9
9
 
@@ -15,6 +15,12 @@ Thanks to [Pinkelstar](http://www.pinkelstar.com) for giving me the time and the
15
15
 
16
16
  gem install capybara-mechanize
17
17
 
18
+ ### Compatibility
19
+
20
+ For support with:
21
+ * Capybara 2.x, use versions of this gem less than or equal 1.11.0
22
+ * Capybara 3.x, use versions of this gem greater than or equal to 1.12.0
23
+
18
24
  ### Usage without Cucumber
19
25
 
20
26
  require 'capybara/mechanize'
@@ -34,7 +34,7 @@ class Capybara::Mechanize::Browser < Capybara::RackTest::Browser
34
34
  end
35
35
 
36
36
  def last_request
37
- last_request_remote? ? OpenStruct.new(request_method: @last_method, params: @last_params) : super
37
+ last_request_remote? ? OpenStruct.new(request_method: @last_method, params: @last_params, url: remote_response.current_url) : super
38
38
  end
39
39
 
40
40
  # For each of these http methods, we want to intercept the method call.
@@ -2,6 +2,7 @@
2
2
 
3
3
  class Capybara::Mechanize::Node < Capybara::RackTest::Node
4
4
  def click(keys = [], **options)
5
+ options.delete(:offset)
5
6
  raise ArgumentError, 'The mechanize driver does not support click options' unless keys.empty? && options.empty?
6
7
 
7
8
  submits = respond_to?(:submits?) ? submits? :
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Capybara
4
4
  module Mechanize
5
- VERSION = '1.12.0'
5
+ VERSION = '1.13.0'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capybara-mechanize
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.12.0
4
+ version: 1.13.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeroen van Dijk
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-04-10 00:00:00.000000000 Z
11
+ date: 2023-03-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capybara
@@ -36,14 +36,14 @@ dependencies:
36
36
  requirements:
37
37
  - - "~>"
38
38
  - !ruby/object:Gem::Version
39
- version: 2.7.0
39
+ version: 2.8.5
40
40
  type: :runtime
41
41
  prerelease: false
42
42
  version_requirements: !ruby/object:Gem::Requirement
43
43
  requirements:
44
44
  - - "~>"
45
45
  - !ruby/object:Gem::Version
46
- version: 2.7.0
46
+ version: 2.8.5
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: launchy
49
49
  requirement: !ruby/object:Gem::Requirement
@@ -143,7 +143,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
143
143
  - !ruby/object:Gem::Version
144
144
  version: '0'
145
145
  requirements: []
146
- rubygems_version: 3.1.6
146
+ rubygems_version: 3.1.4
147
147
  signing_key:
148
148
  specification_version: 4
149
149
  summary: RackTest driver for Capybara with remote request support