capybara-ui 1.2.0 → 1.3.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
  SHA256:
3
- metadata.gz: 2a6f7f8a8105dc8094b53fcd28781b794691000cce8e1e1dbd15c248156d5c58
4
- data.tar.gz: a00303b32121319a3c1a819d62b161cff30944750d3b8497061806bd81ab4111
3
+ metadata.gz: 566be4cd822be8a8a26f04c7158994d224e36c8d47310c13c4197c3673628510
4
+ data.tar.gz: 64cdb5bb0c58acce07a3ed901d1f119b2723abe336aacf54f587e58169c990d6
5
5
  SHA512:
6
- metadata.gz: 92c657479c1baa2fbf5c50cf91a3e45b5af7155ef2560563aa33cc2b48b829a7e88e9c2cf36c195834fa91ef050b5d017cfbab2f8261ed0bf7480f72ffbcde80
7
- data.tar.gz: e76b8e630dd2fe9a41292b2a2243d9eeaf56e424e8df468b808f952e6466aac2b7f3ab654c132718ec413170d0a0f45732bb9475cce7479f5faf0922f8a12214
6
+ metadata.gz: ef9ae00b13c0dc0de05ee6fce7866fe69468a5abb63426e3bc15c34f0f3ed93722fb4c2317ed7fe4461e9759d2d8200f64fc2343e89fc443c16e94a40ebd20a3
7
+ data.tar.gz: c03f740d4457a54f8e29a31aa9d2552073e99641b2de1c4f38044298c9e9510b0bc7a261256f8148596d055b4c32600ea7fb3a4d12c09060b2b5e5bc3880e440
@@ -1,5 +1,5 @@
1
1
  module Capybara
2
2
  module UI
3
- VERSION = '1.2.0'
3
+ VERSION = '1.3.0'
4
4
  end
5
5
  end
@@ -2,7 +2,13 @@ module Capybara
2
2
  module UI
3
3
  class StringValue < String
4
4
  def to_date(format = nil)
5
- format ? Date.strptime(self, format) : super()
5
+ if format
6
+ Date.strptime(self, format)
7
+ elsif defined?(super)
8
+ super()
9
+ else
10
+ Date.parse(self)
11
+ end
6
12
  end
7
13
 
8
14
  def to_key
@@ -9,19 +9,23 @@ module Capybara
9
9
  end
10
10
 
11
11
  def node(parent_widget, *args)
12
- parent_widget.root.find(*capybara_selector(*args))
12
+ a, kw = capybara_selector(*args)
13
+ parent_widget.root.find(*a, **kw)
13
14
  end
14
15
 
15
16
  def node?(parent_widget, *args)
16
- parent_widget.root.has_selector?(*capybara_selector(*args))
17
+ a, kw = capybara_selector(*args)
18
+ parent_widget.root.has_selector?(*a, **kw)
17
19
  end
18
20
 
19
21
  def nodeless?(parent_widget, *args)
20
- parent_widget.root.has_no_selector?(*capybara_selector(*args))
22
+ a, kw = capybara_selector(*args)
23
+ parent_widget.root.has_no_selector?(*a, **kw)
21
24
  end
22
25
 
23
26
  def nodes(parent_widget, *args)
24
- parent_widget.root.all(*capybara_selector(*args))
27
+ a, kw = capybara_selector(*args)
28
+ parent_widget.root.all(*a, **kw)
25
29
  end
26
30
 
27
31
  private
@@ -39,9 +43,9 @@ module Capybara
39
43
  defaults = {:wait => 0}
40
44
 
41
45
  if Hash === selector.last
42
- selector + [defaults.merge(selector.pop)]
46
+ return selector, defaults.merge(selector.pop)
43
47
  else
44
- selector + [defaults]
48
+ return selector, defaults
45
49
  end
46
50
  end
47
51
  end
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.2.0
4
+ version: 1.3.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: 2020-01-28 00:00:00.000000000 Z
12
+ date: 2021-03-18 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: chronic
@@ -39,20 +39,34 @@ dependencies:
39
39
  - - "~>"
40
40
  - !ruby/object:Gem::Version
41
41
  version: '3.0'
42
+ - !ruby/object:Gem::Dependency
43
+ name: rexml
44
+ requirement: !ruby/object:Gem::Requirement
45
+ requirements:
46
+ - - ">="
47
+ - !ruby/object:Gem::Version
48
+ version: '0'
49
+ type: :runtime
50
+ prerelease: false
51
+ version_requirements: !ruby/object:Gem::Requirement
52
+ requirements:
53
+ - - ">="
54
+ - !ruby/object:Gem::Version
55
+ version: '0'
42
56
  - !ruby/object:Gem::Dependency
43
57
  name: rspec-given
44
58
  requirement: !ruby/object:Gem::Requirement
45
59
  requirements:
46
- - - "~>"
60
+ - - ">="
47
61
  - !ruby/object:Gem::Version
48
- version: 3.5.0
62
+ version: '3.8'
49
63
  type: :development
50
64
  prerelease: false
51
65
  version_requirements: !ruby/object:Gem::Requirement
52
66
  requirements:
53
- - - "~>"
67
+ - - ">="
54
68
  - !ruby/object:Gem::Version
55
- version: 3.5.0
69
+ version: '3.8'
56
70
  - !ruby/object:Gem::Dependency
57
71
  name: selenium-webdriver
58
72
  requirement: !ruby/object:Gem::Requirement
@@ -99,16 +113,16 @@ dependencies:
99
113
  name: cucumber
100
114
  requirement: !ruby/object:Gem::Requirement
101
115
  requirements:
102
- - - "~>"
116
+ - - ">="
103
117
  - !ruby/object:Gem::Version
104
- version: '2.0'
118
+ version: '5.3'
105
119
  type: :development
106
120
  prerelease: false
107
121
  version_requirements: !ruby/object:Gem::Requirement
108
122
  requirements:
109
- - - "~>"
123
+ - - ">="
110
124
  - !ruby/object:Gem::Version
111
- version: '2.0'
125
+ version: '5.3'
112
126
  - !ruby/object:Gem::Dependency
113
127
  name: pry
114
128
  requirement: !ruby/object:Gem::Requirement
@@ -171,14 +185,14 @@ dependencies:
171
185
  requirements:
172
186
  - - "~>"
173
187
  - !ruby/object:Gem::Version
174
- version: 5.2.0
188
+ version: 6.1.0
175
189
  type: :development
176
190
  prerelease: false
177
191
  version_requirements: !ruby/object:Gem::Requirement
178
192
  requirements:
179
193
  - - "~>"
180
194
  - !ruby/object:Gem::Version
181
- version: 5.2.0
195
+ version: 6.1.0
182
196
  - !ruby/object:Gem::Dependency
183
197
  name: simplecov
184
198
  requirement: !ruby/object:Gem::Requirement
@@ -265,8 +279,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
265
279
  - !ruby/object:Gem::Version
266
280
  version: '0'
267
281
  requirements: []
268
- rubyforge_project: "[none]"
269
- rubygems_version: 2.7.6.2
282
+ rubygems_version: 3.0.3
270
283
  signing_key:
271
284
  specification_version: 4
272
285
  summary: A set of helpers to ease integration testing