capybara_table 0.2.0 → 0.2.1

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: f0225ad6584887972a2c73cd71bd53af28e67162
4
- data.tar.gz: 3ac1dd181c45f3708fd71298bf4897c7f9d928f0
3
+ metadata.gz: 6ce5c8d64685e896c47435625a57d50f58ce1b27
4
+ data.tar.gz: 2a7b836a1c7518ae06cbff98c243d8746966bf8f
5
5
  SHA512:
6
- metadata.gz: f2ad30ecc236c246ecccfd1bc365c639c523e8ce9c93f9b48281a05cb3418d173d649e77138e6f48ea9e4c70df857bed09b7c862047c8b33e29d8784df995aa1
7
- data.tar.gz: 54f454091ebaa878197007423a95a77e40e7761a58a1d31d4031e63a7294024f7ec95ba7437fb5e7d1ad1647cdbaea3251012352fad725aae41953e18b622111
6
+ metadata.gz: 55a93ceffc540f487962fa96381daced77fa03c42471113f1c2e9043270134c88772cb0feb28fbdf14b4bbb75641f430014ee2442d75ccc0bb91eaf2b4e15cf8
7
+ data.tar.gz: b412c7eb862d26b5eca760bb1a22c78603b54ed45b207014355e3827389c1dedc81f01568fad3cea80cec0ef1627c02135340f231597a3c136aedfbca1cf8e8b
@@ -24,6 +24,6 @@ Gem::Specification.new do |spec|
24
24
  spec.add_development_dependency "rake", "~> 10.0"
25
25
  spec.add_development_dependency "rspec", "~> 3.0"
26
26
  spec.add_dependency "capybara", ">= 2.0"
27
- spec.add_dependency "xpath", "~> 2.1"
27
+ spec.add_dependency "xpath", ">= 2.1"
28
28
  spec.add_dependency "terminal-table"
29
29
  end
@@ -10,7 +10,13 @@ module CapybaraTable
10
10
 
11
11
  matcher :have_table_row do |fields_and_options|
12
12
  fields, options = fields_and_options.partition { |k, v| k.is_a?(String) }.map(&:to_h)
13
- selector = Capybara::RSpecMatchers::HaveSelector.new(:table_row, fields, options)
13
+
14
+ klass = begin
15
+ Capybara::RSpecMatchers::Matchers::HaveSelector
16
+ rescue NameError
17
+ Capybara::RSpecMatchers::HaveSelector
18
+ end
19
+ selector = klass.new(:table_row, fields, options)
14
20
 
15
21
  match do |node|
16
22
  selector.matches?(node)
@@ -1,3 +1,3 @@
1
1
  module CapybaraTable
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capybara_table
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonas Nicklas
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-08-22 00:00:00.000000000 Z
11
+ date: 2019-01-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -70,14 +70,14 @@ dependencies:
70
70
  name: xpath
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - "~>"
73
+ - - ">="
74
74
  - !ruby/object:Gem::Version
75
75
  version: '2.1'
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - "~>"
80
+ - - ">="
81
81
  - !ruby/object:Gem::Version
82
82
  version: '2.1'
83
83
  - !ruby/object:Gem::Dependency