File tree Expand file tree Collapse file tree 3 files changed +10
-1
lines changed Expand file tree Collapse file tree 3 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,8 @@ Gem::Specification.new do |s|
21
21
"homepage_uri" => "https://cuprite.rubycdp.com/" ,
22
22
"bug_tracker_uri" => "https://github.com/rubycdp/cuprite/issues" ,
23
23
"documentation_uri" => "https://github.com/rubycdp/cuprite/blob/master/README.md" ,
24
- "source_code_uri" => "https://github.com/rubycdp/cuprite"
24
+ "source_code_uri" => "https://github.com/rubycdp/cuprite" ,
25
+ "rubygems_mfa_required" => "true"
25
26
}
26
27
27
28
s . required_ruby_version = ">= 2.6.0"
Original file line number Diff line number Diff line change 5
5
6
6
module Capybara
7
7
module Cuprite
8
+ # rubocop:disable Metrics/ClassLength
8
9
class Driver < Capybara ::Driver ::Base
9
10
DEFAULT_MAXIMIZE_SCREEN_SIZE = [ 1366 , 768 ] . freeze
10
11
EXTENSION = File . expand_path ( "javascripts/index.js" , __dir__ )
@@ -418,5 +419,6 @@ def pdf?(path, options)
418
419
options [ :format ] . to_s == "pdf"
419
420
end
420
421
end
422
+ # rubocop:enable Metrics/ClassLength
421
423
end
422
424
end
Original file line number Diff line number Diff line change @@ -130,6 +130,9 @@ def title
130
130
131
131
private
132
132
133
+ # rubocop:disable Metrics/CyclomaticComplexity
134
+ # rubocop:disable Metrics/PerceivedComplexity
135
+ # rubocop:disable Style/GuardClause
133
136
def prepare_page
134
137
super
135
138
@@ -178,6 +181,9 @@ def prepare_page
178
181
command ( "Page.handleJavaScriptDialog" , **options )
179
182
end
180
183
end
184
+ # rubocop:enable Metrics/CyclomaticComplexity
185
+ # rubocop:enable Metrics/PerceivedComplexity
186
+ # rubocop:enable Style/GuardClause
181
187
182
188
def find_position ( node , **options )
183
189
node . find_position ( **options )
You can’t perform that action at this time.
0 commit comments