Skip to content

Commit e951100

Browse files
committed
[rb] update gems and linting
1 parent 6c27955 commit e951100

5 files changed

Lines changed: 43 additions & 30 deletions

File tree

rb/.rubocop.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ AllCops:
88
Exclude:
99
- !ruby/regexp /lib\/selenium\/devtools\/v\d+/
1010

11+
Gemspec/DevelopmentDependencies:
12+
EnforcedStyle: gemspec
13+
1114
Layout/LineLength:
1215
AllowedPatterns:
1316
- '^\s*#'

rb/Gemfile.lock

Lines changed: 36 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -3,81 +3,91 @@ PATH
33
specs:
44
selenium-devtools (0.114.0)
55
selenium-webdriver (~> 4.2)
6-
selenium-webdriver (4.10.0)
6+
selenium-webdriver (4.11.0)
77
rexml (~> 3.2, >= 3.2.5)
88
rubyzip (>= 1.2.2, < 3.0)
99
websocket (~> 1.0)
1010

1111
GEM
1212
remote: https://rubygems.org/
1313
specs:
14-
addressable (2.8.1)
14+
addressable (2.8.4)
1515
public_suffix (>= 2.0.2, < 6.0)
1616
ast (2.4.2)
1717
crack (0.4.5)
1818
rexml
19-
debug (1.7.2)
19+
debug (1.8.0)
2020
irb (>= 1.5.0)
2121
reline (>= 0.3.1)
2222
diff-lcs (1.5.0)
2323
hashdiff (1.0.1)
2424
io-console (0.6.0)
25-
irb (1.6.4)
25+
irb (1.7.0)
2626
reline (>= 0.3.0)
2727
json (2.6.3)
2828
json (2.6.3-java)
29-
parallel (1.22.1)
30-
parser (3.1.3.0)
29+
language_server-protocol (3.17.0.3)
30+
parallel (1.23.0)
31+
parser (3.2.2.3)
3132
ast (~> 2.4.1)
33+
racc
3234
public_suffix (5.0.1)
33-
rack (2.2.5)
35+
racc (1.7.1)
36+
racc (1.7.1-java)
37+
rack (2.2.7)
3438
rainbow (3.1.1)
3539
rake (13.0.6)
36-
regexp_parser (2.6.1)
37-
reline (0.3.3)
40+
regexp_parser (2.8.1)
41+
reline (0.3.5)
3842
io-console (~> 0.5)
3943
rexml (3.2.5)
4044
rspec (3.12.0)
4145
rspec-core (~> 3.12.0)
4246
rspec-expectations (~> 3.12.0)
4347
rspec-mocks (~> 3.12.0)
44-
rspec-core (3.12.0)
48+
rspec-core (3.12.2)
4549
rspec-support (~> 3.12.0)
46-
rspec-expectations (3.12.1)
50+
rspec-expectations (3.12.3)
4751
diff-lcs (>= 1.2.0, < 2.0)
4852
rspec-support (~> 3.12.0)
49-
rspec-mocks (3.12.1)
53+
rspec-mocks (3.12.5)
5054
diff-lcs (>= 1.2.0, < 2.0)
5155
rspec-support (~> 3.12.0)
52-
rspec-support (3.12.0)
53-
rubocop (1.42.0)
56+
rspec-support (3.12.1)
57+
rubocop (1.54.0)
5458
json (~> 2.3)
59+
language_server-protocol (>= 3.17.0)
5560
parallel (~> 1.10)
56-
parser (>= 3.1.2.1)
61+
parser (>= 3.2.2.3)
5762
rainbow (>= 2.2.2, < 4.0)
5863
regexp_parser (>= 1.8, < 3.0)
5964
rexml (>= 3.2.5, < 4.0)
60-
rubocop-ast (>= 1.24.1, < 2.0)
65+
rubocop-ast (>= 1.28.0, < 2.0)
6166
ruby-progressbar (~> 1.7)
62-
unicode-display_width (>= 1.4.0, < 3.0)
63-
rubocop-ast (1.24.1)
64-
parser (>= 3.1.1.0)
65-
rubocop-performance (1.15.2)
67+
unicode-display_width (>= 2.4.0, < 3.0)
68+
rubocop-ast (1.29.0)
69+
parser (>= 3.2.1.0)
70+
rubocop-capybara (2.18.0)
71+
rubocop (~> 1.41)
72+
rubocop-factory_bot (2.23.1)
73+
rubocop (~> 1.33)
74+
rubocop-performance (1.18.0)
6675
rubocop (>= 1.7.0, < 2.0)
6776
rubocop-ast (>= 0.4.0)
68-
rubocop-rspec (2.16.0)
77+
rubocop-rspec (2.22.0)
6978
rubocop (~> 1.33)
70-
ruby-progressbar (1.11.0)
79+
rubocop-capybara (~> 2.17)
80+
rubocop-factory_bot (~> 2.22)
81+
ruby-progressbar (1.13.0)
7182
rubyzip (2.3.2)
72-
unicode-display_width (2.3.0)
83+
unicode-display_width (2.4.2)
7384
webmock (3.18.1)
7485
addressable (>= 2.8.0)
7586
crack (>= 0.3.2)
7687
hashdiff (>= 0.4.0, < 2.0.0)
77-
webrick (1.7.0)
88+
webrick (1.8.1)
7889
websocket (1.2.9)
79-
yard (0.9.28)
80-
webrick (~> 1.7.0)
90+
yard (0.9.34)
8191

8292
PLATFORMS
8393
java

rb/Rakefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@ end
1414

1515
desc 'Run all integration tests in chrome'
1616
task :spec do
17-
system "bazel test --test_size_filters large //rb/..."
17+
system 'bazel test --test_size_filters large //rb/...'
1818
end

rb/lib/selenium/webdriver/common/child_process.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,11 +81,11 @@ def alive?
8181
end
8282

8383
def exited?
84-
return unless @pid
84+
return false unless @pid
8585

8686
WebDriver.logger.debug("Checking if #{@pid} is exited:", id: :process)
8787
_, @status = Process.waitpid2(@pid, Process::WNOHANG | Process::WUNTRACED) if @status.nil?
88-
return if @status.nil?
88+
return false if @status.nil?
8989

9090
exit_code = @status.exitstatus || @status.termsig
9191
WebDriver.logger.debug(" -> exit code is #{exit_code.inspect}", id: :process)

rb/lib/selenium/webdriver/ie/options.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class Options < WebDriver::Options
4242
use_legacy_file_upload_dialog_handling: 'ie.useLegacyFileUploadDialogHandling',
4343
attach_to_edge_chrome: 'ie.edgechromium',
4444
edge_executable_path: 'ie.edgepath',
45-
ignore_process_match: 'ie.ignoreprocessmatch',
45+
ignore_process_match: 'ie.ignoreprocessmatch'
4646
}.freeze
4747
BROWSER = 'internet explorer'
4848

0 commit comments

Comments
 (0)