capybara-mechanize 1.9.0 → 1.10.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5fd29837c2d4f566f1f35d184f8584a4c256f2fa
4
- data.tar.gz: 9c6a4d06fb0cff50e7dd952f77edb4bfd45e9b6e
3
+ metadata.gz: 91311ec7ef5ab26f9d2ba0034417b65db6421f5a
4
+ data.tar.gz: 9e28f01f78b708523ed166734248d2fcadb7dc8c
5
5
  SHA512:
6
- metadata.gz: b266dd4341fa77deb312ea6f5b79161633194ac46ea43b93c2bc7983ea4f97fa9fa54e0aecf4bd3339f12d924224d29c40b3631599c2f70011e27679993a8d51
7
- data.tar.gz: a0f2cac4fd0798947bae55ab71efdea5809ef70755c1f745e2baf4bd9dac168890da70814d5203df0bfe7991ee8e6431850e3f85f81ccba6bbe28addbad2d145
6
+ metadata.gz: 7fa75aa260c0d2908bc6919c65c38beabce4da86ef06a7679d2ac5992c5b8d0c6e994046a9a190fec6361960ca10b6a9ff91a912aece1178a469068479009662
7
+ data.tar.gz: b942267ca1af811b1883c1b3559d8af06dab78965eeebbf7fb486b04bb7f281c6cfb96b7440b265a855dfcdad1013f4e2a909d022faa01649de863c6d2a70e5c
@@ -1,8 +1,14 @@
1
1
  class Capybara::Mechanize::Node < Capybara::RackTest::Node
2
- def click
2
+ def click(keys = [], offset = {})
3
+ raise ArgumentError, "The mechanize driver does not support click options" unless keys.empty? && offset.empty?
4
+
3
5
  if tag_name == 'a' or tag_name == 'label' or
4
6
  (tag_name == 'input' and %w(checkbox radio).include?(type))
5
- super
7
+ if Capybara::VERSION > '3.0.0'
8
+ super
9
+ else
10
+ super()
11
+ end
6
12
  elsif (tag_name == 'input' and %w(submit image).include?(type)) or
7
13
  ((tag_name == 'button') and type.nil? or type == "submit")
8
14
  associated_form = form
@@ -1,5 +1,5 @@
1
1
  module Capybara
2
2
  module Mechanize
3
- VERSION = '1.9.0'
3
+ VERSION = '1.10.0'
4
4
  end
5
5
  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.9.0
4
+ version: 1.10.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: 2018-05-21 00:00:00.000000000 Z
11
+ date: 2018-05-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mechanize
@@ -47,7 +47,7 @@ dependencies:
47
47
  version: 2.4.4
48
48
  - - "<"
49
49
  - !ruby/object:Gem::Version
50
- version: '2.19'
50
+ version: '4'
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.19'
60
+ version: '4'
61
61
  description: RackTest driver for Capybara, but with remote request support thanks
62
62
  to mechanize
63
63
  email: jeroen@jeevidee.nl