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|
2121 "homepage_uri" => "https://cuprite.rubycdp.com/" ,
2222 "bug_tracker_uri" => "https://github.com/rubycdp/cuprite/issues" ,
2323 "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"
2526 }
2627
2728 s . required_ruby_version = ">= 2.6.0"
Original file line number Diff line number Diff line change 55
66module Capybara
77 module Cuprite
8+ # rubocop:disable Metrics/ClassLength
89 class Driver < Capybara ::Driver ::Base
910 DEFAULT_MAXIMIZE_SCREEN_SIZE = [ 1366 , 768 ] . freeze
1011 EXTENSION = File . expand_path ( "javascripts/index.js" , __dir__ )
@@ -418,5 +419,6 @@ def pdf?(path, options)
418419 options [ :format ] . to_s == "pdf"
419420 end
420421 end
422+ # rubocop:enable Metrics/ClassLength
421423 end
422424end
Original file line number Diff line number Diff line change @@ -130,6 +130,9 @@ def title
130130
131131 private
132132
133+ # rubocop:disable Metrics/CyclomaticComplexity
134+ # rubocop:disable Metrics/PerceivedComplexity
135+ # rubocop:disable Style/GuardClause
133136 def prepare_page
134137 super
135138
@@ -178,6 +181,9 @@ def prepare_page
178181 command ( "Page.handleJavaScriptDialog" , **options )
179182 end
180183 end
184+ # rubocop:enable Metrics/CyclomaticComplexity
185+ # rubocop:enable Metrics/PerceivedComplexity
186+ # rubocop:enable Style/GuardClause
181187
182188 def find_position ( node , **options )
183189 node . find_position ( **options )
You can’t perform that action at this time.
0 commit comments