capybara-ui 1.0.3 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/capybara/ui/matchers.rb +2 -2
- data/lib/capybara/ui/version.rb +1 -1
- data/lib/capybara/ui/widgets.rb +1 -1
- data/lib/capybara/ui/widgets/cucumber_methods.rb +2 -10
- data/lib/capybara/ui/widgets/field_group.rb +1 -1
- data/lib/capybara/ui/widgets/list_item.rb +2 -2
- metadata +46 -18
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 2a6f7f8a8105dc8094b53fcd28781b794691000cce8e1e1dbd15c248156d5c58
|
4
|
+
data.tar.gz: a00303b32121319a3c1a819d62b161cff30944750d3b8497061806bd81ab4111
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 92c657479c1baa2fbf5c50cf91a3e45b5af7155ef2560563aa33cc2b48b829a7e88e9c2cf36c195834fa91ef050b5d017cfbab2f8261ed0bf7480f72ffbcde80
|
7
|
+
data.tar.gz: e76b8e630dd2fe9a41292b2a2243d9eeaf56e424e8df468b808f952e6466aac2b7f3ab654c132718ec413170d0a0f45732bb9475cce7479f5faf0922f8a12214
|
data/lib/capybara/ui/matchers.rb
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
def permitted_rspec_version?
|
2
|
-
actual_rspec_expectations_version >= required_rspec_expectations_version
|
2
|
+
defined? RSpec && actual_rspec_expectations_version >= required_rspec_expectations_version
|
3
3
|
end
|
4
4
|
|
5
5
|
def actual_rspec_expectations_version
|
6
|
-
Gem::Version.new(RSpec::Expectations::Version::STRING)
|
6
|
+
defined? RSpec && Gem::Version.new(RSpec::Expectations::Version::STRING)
|
7
7
|
end
|
8
8
|
|
9
9
|
def required_rspec_expectations_version
|
data/lib/capybara/ui/version.rb
CHANGED
data/lib/capybara/ui/widgets.rb
CHANGED
@@ -2,7 +2,7 @@ module Capybara
|
|
2
2
|
module UI
|
3
3
|
module CucumberMethods
|
4
4
|
begin
|
5
|
-
require 'cucumber/
|
5
|
+
require 'cucumber/multiline_argument/data_table'
|
6
6
|
|
7
7
|
# Compares this widget with the given Cucumber +table+.
|
8
8
|
#
|
@@ -24,7 +24,7 @@ module Capybara
|
|
24
24
|
to_table = self.to_table
|
25
25
|
|
26
26
|
if ignore_case == true
|
27
|
-
table =
|
27
|
+
table = Cucumber::MultilineArgument::DataTable.from(downcase_array(table.raw))
|
28
28
|
to_table = downcase_array(to_table)
|
29
29
|
end
|
30
30
|
|
@@ -33,10 +33,6 @@ module Capybara
|
|
33
33
|
|
34
34
|
private
|
35
35
|
|
36
|
-
def downcase_table(table)
|
37
|
-
new_cucumber_table downcase_array(table.raw)
|
38
|
-
end
|
39
|
-
|
40
36
|
def downcase_array(array)
|
41
37
|
array.map do |item|
|
42
38
|
case item
|
@@ -63,10 +59,6 @@ module Capybara
|
|
63
59
|
end
|
64
60
|
end
|
65
61
|
|
66
|
-
def new_cucumber_table(table)
|
67
|
-
Cucumber::Ast::Table.new(table)
|
68
|
-
end
|
69
|
-
|
70
62
|
rescue LoadError
|
71
63
|
# *crickets*
|
72
64
|
end
|
@@ -2,7 +2,7 @@ module Capybara
|
|
2
2
|
module UI
|
3
3
|
class ListItem < Widget
|
4
4
|
# Returns this ListItem's contents formatted as a row, for comparison with a
|
5
|
-
# Cucumber::
|
5
|
+
# Cucumber::MultilineArgument::DataTable. By default, it simply returns an array with a single
|
6
6
|
# element--the widget's text.
|
7
7
|
#
|
8
8
|
# In general, this method will be called by List#to_table.
|
@@ -13,7 +13,7 @@ module Capybara
|
|
13
13
|
# Usually, if the default return value isn't what you want, you'll probably
|
14
14
|
# want to return a Hash where both keys and values are strings, so that you
|
15
15
|
# don't need to worry about column order when you pass the table to
|
16
|
-
# Cucumber::
|
16
|
+
# Cucumber::MultilineArgument::DataTable#diff!.
|
17
17
|
#
|
18
18
|
# See List#to_table for more information.
|
19
19
|
def to_row
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capybara-ui
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0
|
4
|
+
version: 1.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Leal
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2020-01-28 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: chronic
|
@@ -54,47 +54,61 @@ dependencies:
|
|
54
54
|
- !ruby/object:Gem::Version
|
55
55
|
version: 3.5.0
|
56
56
|
- !ruby/object:Gem::Dependency
|
57
|
-
name:
|
57
|
+
name: selenium-webdriver
|
58
58
|
requirement: !ruby/object:Gem::Requirement
|
59
59
|
requirements:
|
60
|
-
- - "
|
60
|
+
- - ">="
|
61
61
|
- !ruby/object:Gem::Version
|
62
|
-
version:
|
62
|
+
version: '0'
|
63
63
|
type: :development
|
64
64
|
prerelease: false
|
65
65
|
version_requirements: !ruby/object:Gem::Requirement
|
66
66
|
requirements:
|
67
|
-
- - "
|
67
|
+
- - ">="
|
68
68
|
- !ruby/object:Gem::Version
|
69
|
-
version:
|
69
|
+
version: '0'
|
70
70
|
- !ruby/object:Gem::Dependency
|
71
|
-
name:
|
71
|
+
name: webdrivers
|
72
72
|
requirement: !ruby/object:Gem::Requirement
|
73
73
|
requirements:
|
74
|
-
- - "
|
74
|
+
- - ">="
|
75
75
|
- !ruby/object:Gem::Version
|
76
|
-
version:
|
76
|
+
version: '0'
|
77
77
|
type: :development
|
78
78
|
prerelease: false
|
79
79
|
version_requirements: !ruby/object:Gem::Requirement
|
80
80
|
requirements:
|
81
|
-
- - "
|
81
|
+
- - ">="
|
82
|
+
- !ruby/object:Gem::Version
|
83
|
+
version: '0'
|
84
|
+
- !ruby/object:Gem::Dependency
|
85
|
+
name: cuprite
|
86
|
+
requirement: !ruby/object:Gem::Requirement
|
87
|
+
requirements:
|
88
|
+
- - ">="
|
89
|
+
- !ruby/object:Gem::Version
|
90
|
+
version: '0'
|
91
|
+
type: :development
|
92
|
+
prerelease: false
|
93
|
+
version_requirements: !ruby/object:Gem::Requirement
|
94
|
+
requirements:
|
95
|
+
- - ">="
|
82
96
|
- !ruby/object:Gem::Version
|
83
|
-
version:
|
97
|
+
version: '0'
|
84
98
|
- !ruby/object:Gem::Dependency
|
85
99
|
name: cucumber
|
86
100
|
requirement: !ruby/object:Gem::Requirement
|
87
101
|
requirements:
|
88
102
|
- - "~>"
|
89
103
|
- !ruby/object:Gem::Version
|
90
|
-
version:
|
104
|
+
version: '2.0'
|
91
105
|
type: :development
|
92
106
|
prerelease: false
|
93
107
|
version_requirements: !ruby/object:Gem::Requirement
|
94
108
|
requirements:
|
95
109
|
- - "~>"
|
96
110
|
- !ruby/object:Gem::Version
|
97
|
-
version:
|
111
|
+
version: '2.0'
|
98
112
|
- !ruby/object:Gem::Dependency
|
99
113
|
name: pry
|
100
114
|
requirement: !ruby/object:Gem::Requirement
|
@@ -123,6 +137,20 @@ dependencies:
|
|
123
137
|
- - ">="
|
124
138
|
- !ruby/object:Gem::Version
|
125
139
|
version: '0'
|
140
|
+
- !ruby/object:Gem::Dependency
|
141
|
+
name: puma
|
142
|
+
requirement: !ruby/object:Gem::Requirement
|
143
|
+
requirements:
|
144
|
+
- - ">="
|
145
|
+
- !ruby/object:Gem::Version
|
146
|
+
version: '0'
|
147
|
+
type: :development
|
148
|
+
prerelease: false
|
149
|
+
version_requirements: !ruby/object:Gem::Requirement
|
150
|
+
requirements:
|
151
|
+
- - ">="
|
152
|
+
- !ruby/object:Gem::Version
|
153
|
+
version: '0'
|
126
154
|
- !ruby/object:Gem::Dependency
|
127
155
|
name: sinatra
|
128
156
|
requirement: !ruby/object:Gem::Requirement
|
@@ -143,14 +171,14 @@ dependencies:
|
|
143
171
|
requirements:
|
144
172
|
- - "~>"
|
145
173
|
- !ruby/object:Gem::Version
|
146
|
-
version:
|
174
|
+
version: 5.2.0
|
147
175
|
type: :development
|
148
176
|
prerelease: false
|
149
177
|
version_requirements: !ruby/object:Gem::Requirement
|
150
178
|
requirements:
|
151
179
|
- - "~>"
|
152
180
|
- !ruby/object:Gem::Version
|
153
|
-
version:
|
181
|
+
version: 5.2.0
|
154
182
|
- !ruby/object:Gem::Dependency
|
155
183
|
name: simplecov
|
156
184
|
requirement: !ruby/object:Gem::Requirement
|
@@ -172,7 +200,7 @@ description: Capybara-UI (formerly called Dill) is a Capybara abstraction that m
|
|
172
200
|
easier.
|
173
201
|
email:
|
174
202
|
- dleal@mojotech.com
|
175
|
-
-
|
203
|
+
- ops@mojotech.com
|
176
204
|
executables: []
|
177
205
|
extensions: []
|
178
206
|
extra_rdoc_files: []
|
@@ -238,7 +266,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
238
266
|
version: '0'
|
239
267
|
requirements: []
|
240
268
|
rubyforge_project: "[none]"
|
241
|
-
rubygems_version: 2.6.
|
269
|
+
rubygems_version: 2.7.6.2
|
242
270
|
signing_key:
|
243
271
|
specification_version: 4
|
244
272
|
summary: A set of helpers to ease integration testing
|