Skip to content

Commit 291894f

Browse files
committed
Silence rubocop warnings
1 parent 334c361 commit 291894f

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

cuprite.gemspec

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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"

lib/capybara/cuprite/driver.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
module 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
422424
end

lib/capybara/cuprite/page.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff 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)

0 commit comments

Comments
 (0)