Skip to content

Commit fc86c86

Browse files
committed
[rb] bundle and rubocop updates
1 parent 4ff1f62 commit fc86c86

File tree

9 files changed

+35
-35
lines changed

9 files changed

+35
-35
lines changed

rb/Gemfile.lock

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ PATH
1111
GEM
1212
remote: https://rubygems.org/
1313
specs:
14-
abbrev (0.1.1)
14+
abbrev (0.1.2)
1515
activesupport (7.1.2)
1616
base64
1717
bigdecimal
@@ -22,46 +22,46 @@ GEM
2222
minitest (>= 5.1)
2323
mutex_m
2424
tzinfo (~> 2.0)
25-
addressable (2.8.5)
25+
addressable (2.8.6)
2626
public_suffix (>= 2.0.2, < 6.0)
2727
ast (2.4.2)
2828
base64 (0.2.0)
29-
bigdecimal (3.1.4)
29+
bigdecimal (3.1.5)
3030
concurrent-ruby (1.2.2)
3131
connection_pool (2.4.1)
3232
crack (0.4.5)
3333
rexml
3434
csv (3.2.8)
35-
debug (1.8.0)
36-
irb (>= 1.5.0)
37-
reline (>= 0.3.1)
35+
debug (1.9.1)
36+
irb (~> 1.10)
37+
reline (>= 0.3.8)
3838
diff-lcs (1.5.0)
3939
drb (2.2.0)
4040
ruby2_keywords
4141
ffi (1.16.3)
4242
ffi (1.16.3-x64-mingw32)
4343
fileutils (1.7.2)
44-
hashdiff (1.0.1)
44+
hashdiff (1.1.0)
4545
i18n (1.14.1)
4646
concurrent-ruby (~> 1.0)
47-
io-console (0.6.0)
48-
irb (1.9.0)
47+
io-console (0.7.1)
48+
irb (1.11.0)
4949
rdoc
5050
reline (>= 0.3.8)
51-
json (2.6.3)
52-
json (2.6.3-java)
51+
json (2.7.1)
52+
json (2.7.1-java)
5353
language_server-protocol (3.17.0.3)
5454
listen (3.8.0)
5555
rb-fsevent (~> 0.10, >= 0.10.3)
5656
rb-inotify (~> 0.9, >= 0.9.10)
5757
logger (1.6.0)
5858
minitest (5.20.0)
5959
mutex_m (0.2.0)
60-
parallel (1.23.0)
60+
parallel (1.24.0)
6161
parser (3.2.2.4)
6262
ast (~> 2.4.1)
6363
racc
64-
psych (5.1.1.1)
64+
psych (5.1.2)
6565
stringio
6666
public_suffix (5.0.4)
6767
racc (1.7.3)
@@ -72,12 +72,12 @@ GEM
7272
rb-fsevent (0.11.2)
7373
rb-inotify (0.10.1)
7474
ffi (~> 1.0)
75-
rbs (3.3.2)
75+
rbs (3.4.1)
7676
abbrev
77-
rdoc (6.6.0)
77+
rdoc (6.6.2)
7878
psych (>= 4.0.0)
79-
regexp_parser (2.8.2)
80-
reline (0.4.0)
79+
regexp_parser (2.8.3)
80+
reline (0.4.1)
8181
io-console (~> 0.5)
8282
rexml (3.2.6)
8383
rspec (3.12.0)
@@ -93,15 +93,15 @@ GEM
9393
diff-lcs (>= 1.2.0, < 2.0)
9494
rspec-support (~> 3.12.0)
9595
rspec-support (3.12.1)
96-
rubocop (1.57.2)
96+
rubocop (1.59.0)
9797
json (~> 2.3)
9898
language_server-protocol (>= 3.17.0)
9999
parallel (~> 1.10)
100100
parser (>= 3.2.2.4)
101101
rainbow (>= 2.2.2, < 4.0)
102102
regexp_parser (>= 1.8, < 3.0)
103103
rexml (>= 3.2.5, < 4.0)
104-
rubocop-ast (>= 1.28.1, < 2.0)
104+
rubocop-ast (>= 1.30.0, < 2.0)
105105
ruby-progressbar (~> 1.7)
106106
unicode-display_width (>= 2.4.0, < 3.0)
107107
rubocop-ast (1.30.0)
@@ -110,17 +110,17 @@ GEM
110110
rubocop (~> 1.41)
111111
rubocop-factory_bot (2.24.0)
112112
rubocop (~> 1.33)
113-
rubocop-performance (1.19.1)
114-
rubocop (>= 1.7.0, < 2.0)
115-
rubocop-ast (>= 0.4.0)
113+
rubocop-performance (1.20.1)
114+
rubocop (>= 1.48.1, < 2.0)
115+
rubocop-ast (>= 1.30.0, < 2.0)
116116
rubocop-rspec (2.25.0)
117117
rubocop (~> 1.40)
118118
rubocop-capybara (~> 2.17)
119119
rubocop-factory_bot (~> 2.22)
120120
ruby-progressbar (1.13.0)
121121
ruby2_keywords (0.0.5)
122122
rubyzip (2.3.2)
123-
securerandom (0.3.0)
123+
securerandom (0.3.1)
124124
steep (1.5.3)
125125
activesupport (>= 5.1)
126126
concurrent-ruby (>= 1.1.10)
@@ -136,7 +136,7 @@ GEM
136136
securerandom (>= 0.1)
137137
strscan (>= 1.0.0)
138138
terminal-table (>= 2, < 4)
139-
stringio (3.0.9)
139+
stringio (3.1.0)
140140
strscan (3.0.7)
141141
terminal-table (3.0.2)
142142
unicode-display_width (>= 1.1.1, < 3)

rb/lib/selenium/webdriver/common/driver_extensions/has_log_events.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def on_log_event(kind, &block)
6464
return if enabled
6565

6666
devtools.runtime.enable
67-
__send__("log_#{kind}_events")
67+
__send__(:"log_#{kind}_events")
6868
end
6969

7070
private

rb/lib/selenium/webdriver/common/error.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def self.for_error(error)
2929
return if error.nil?
3030

3131
klass_name = error.split.map(&:capitalize).join.sub(/Error$/, '')
32-
const_get("#{klass_name}Error", false)
32+
const_get(:"#{klass_name}Error", false)
3333
rescue NameError
3434
WebDriverError
3535
end

rb/lib/selenium/webdriver/common/options.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def set_capabilities
5959
@options[key]
6060
end
6161

62-
define_method "#{key}=" do |value|
62+
define_method :"#{key}=" do |value|
6363
@options[key] = value
6464
end
6565
end

rb/lib/selenium/webdriver/common/proxy.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def self.json_create(data)
4949
proxy = new
5050

5151
ALLOWED.each do |k, v|
52-
proxy.send("#{k}=", data[v]) if data.key?(v)
52+
proxy.send(:"#{k}=", data[v]) if data.key?(v)
5353
end
5454

5555
proxy
@@ -60,7 +60,7 @@ def initialize(opts = {})
6060

6161
opts.each do |k, v|
6262
if ALLOWED.key?(k)
63-
send("#{k}=", v)
63+
send(:"#{k}=", v)
6464
else
6565
not_allowed << k
6666
end

rb/lib/selenium/webdriver/remote/capabilities.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ class Capabilities
4848
@capabilities[key]
4949
end
5050

51-
define_method "#{key}=" do |value|
51+
define_method :"#{key}=" do |value|
5252
@capabilities[key] = value
5353
end
5454
end

rb/lib/selenium/webdriver/remote/features.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def upload(local_file)
5151
end
5252

5353
def upload_if_necessary(keys)
54-
local_files = keys.first&.split("\n")&.map { |key| @file_detector.call(Array(key)) }&.compact
54+
local_files = keys.first&.split("\n")&.filter_map { |key| @file_detector.call(Array(key)) }
5555
return keys unless local_files&.any?
5656

5757
keys = local_files.map { |local_file| upload(local_file) }

rb/lib/selenium/webdriver/support/event_firing_bridge.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,9 +113,9 @@ def driver
113113
end
114114

115115
def dispatch(name, *args)
116-
@listener.__send__("before_#{name}", *args)
116+
@listener.__send__(:"before_#{name}", *args)
117117
returned = yield
118-
@listener.__send__("after_#{name}", *args)
118+
@listener.__send__(:"after_#{name}", *args)
119119

120120
returned
121121
end

rb/spec/integration/selenium/webdriver/spec_support/test_environment.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ def root
142142
def create_driver!(listener: nil, **opts, &block)
143143
check_for_previous_error
144144

145-
method = "#{driver}_driver".to_sym
145+
method = :"#{driver}_driver"
146146
instance = if private_methods.include?(method)
147147
send(method, listener: listener, options: build_options(**opts))
148148
else
@@ -167,7 +167,7 @@ def create_driver!(listener: nil, **opts, &block)
167167
private
168168

169169
def build_options(**opts)
170-
options_method = "#{browser}_options".to_sym
170+
options_method = :"#{browser}_options"
171171
if private_methods.include?(options_method)
172172
send(options_method, **opts)
173173
else

0 commit comments

Comments
 (0)