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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 750a95641edb191dd4ce2bfb1edd6bbe537e387e
4
- data.tar.gz: 9b057b5cd8c56ee92d0477c05149e3b7cf5b83fd
2
+ SHA256:
3
+ metadata.gz: 2a6f7f8a8105dc8094b53fcd28781b794691000cce8e1e1dbd15c248156d5c58
4
+ data.tar.gz: a00303b32121319a3c1a819d62b161cff30944750d3b8497061806bd81ab4111
5
5
  SHA512:
6
- metadata.gz: 2af8028584aa99a0f5aee8cacff0534abd689ea30d67e2f326504090fa4c2e5326639039c65b1d259565068066a8e1f7ad7cdc7ba075e2400d0427eb3e4c5dba
7
- data.tar.gz: 4f7de51d3ccef95d6851c7dfec266357bc9035c1a7ee7acc4cb0d7e3e22a93d75a473bb404fe895e2c1c63ae20031f9e406a7fdfe3d134b0ccdb339eda946189
6
+ metadata.gz: 92c657479c1baa2fbf5c50cf91a3e45b5af7155ef2560563aa33cc2b48b829a7e88e9c2cf36c195834fa91ef050b5d017cfbab2f8261ed0bf7480f72ffbcde80
7
+ data.tar.gz: e76b8e630dd2fe9a41292b2a2243d9eeaf56e424e8df468b808f952e6466aac2b7f3ab654c132718ec413170d0a0f45732bb9475cce7479f5faf0922f8a12214
@@ -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
@@ -1,5 +1,5 @@
1
1
  module Capybara
2
2
  module UI
3
- VERSION = '1.0.3'
3
+ VERSION = '1.2.0'
4
4
  end
5
5
  end
@@ -29,7 +29,7 @@ module Capybara
29
29
  def Decimal(*selector)
30
30
  Widget(selector) { |text|
31
31
  # ensure we can convert to float first
32
- Float(text) && BigDecimal.new(text)
32
+ Float(text) && BigDecimal(text)
33
33
  }
34
34
  end
35
35
  end
@@ -2,7 +2,7 @@ module Capybara
2
2
  module UI
3
3
  module CucumberMethods
4
4
  begin
5
- require 'cucumber/ast/table'
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 = downcase_table(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
@@ -313,7 +313,7 @@ module Capybara
313
313
  end
314
314
 
315
315
  # Converts the current field group into a table suitable for diff'ing
316
- # with Cucumber::Ast::Table.
316
+ # with Cucumber::MultilineArgument::DataTable.
317
317
  #
318
318
  # Field labels are determined by the widget name.
319
319
  #
@@ -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::Ast::Table. By default, it simply returns an array with a single
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::Ast::Table#diff!.
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.3
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: 2019-06-07 00:00:00.000000000 Z
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: capybara-webkit
57
+ name: selenium-webdriver
58
58
  requirement: !ruby/object:Gem::Requirement
59
59
  requirements:
60
- - - "~>"
60
+ - - ">="
61
61
  - !ruby/object:Gem::Version
62
- version: 1.7.0
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: 1.7.0
69
+ version: '0'
70
70
  - !ruby/object:Gem::Dependency
71
- name: poltergeist
71
+ name: webdrivers
72
72
  requirement: !ruby/object:Gem::Requirement
73
73
  requirements:
74
- - - "~>"
74
+ - - ">="
75
75
  - !ruby/object:Gem::Version
76
- version: 1.17.0
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: 1.17.0
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: 1.3.0
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: 1.3.0
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: 4.2.9
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: 4.2.9
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
- - ags@mojotech.com
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.14.3
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