Skip to content

Commit cd3216e

Browse files
committed
Upgrade minimum Ruby version to 3.0 since 2.7 is EOL
1 parent da2e767 commit cd3216e

File tree

10 files changed

+21
-20
lines changed

10 files changed

+21
-20
lines changed

.github/workflows/ci-ruby.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@ jobs:
3939
fail-fast: false
4040
matrix:
4141
include:
42-
- ruby-version: 2.7.6
42+
- ruby-version: 3.0.6
4343
os: ubuntu
44-
- ruby-version: 2.7.6
44+
- ruby-version: 3.0.6
4545
os: windows
4646
- ruby-version: 3.2.0
4747
os: ubuntu

WORKSPACE

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -322,9 +322,9 @@ pin_browsers()
322322

323323
http_archive(
324324
name = "rules_ruby",
325-
sha256 = "5228950029d57476a4903db35cd8ce6a4526e30fba08a01af9d7a9b8ebaf63ae",
326-
strip_prefix = "rules_ruby-9e6e07ed5d7e02f8bb1c77ce543072d5548bbd86",
327-
url = "https://github.com/p0deje/rules_ruby/archive/9e6e07ed5d7e02f8bb1c77ce543072d5548bbd86.zip",
325+
sha256 = "dddae0f5bf2c2aa95e20923a6f9f746b0457b956e43e8bd6874d09d88795b40d",
326+
strip_prefix = "rules_ruby-be44e324165c617210f9d22e4cdf661c9e330ca2",
327+
url = "https://github.com/p0deje/rules_ruby/archive/be44e324165c617210f9d22e4cdf661c9e330ca2.zip",
328328
)
329329

330330
load("//rb:ruby_version.bzl", "RUBY_VERSION")

rb/.rubocop.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ require:
33
- rubocop-rspec
44

55
AllCops:
6-
TargetRubyVersion: 2.7
6+
TargetRubyVersion: 3.0
77
NewCops: enable
88
Exclude:
99
- !ruby/regexp /lib\/selenium\/devtools\/v\d+/

rb/Gemfile.lock

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ GEM
8585
PLATFORMS
8686
java
8787
ruby
88+
universal-java-18
8889
x64-mingw32
8990

9091
DEPENDENCIES
@@ -101,4 +102,4 @@ DEPENDENCIES
101102
yard (~> 0.9.11)
102103

103104
BUNDLED WITH
104-
2.1.4
105+
2.2.33

rb/lib/selenium/support/nightly_version_generator.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ module Support
3030
#
3131

3232
class NightlyVersionGenerator
33-
REGEXP = /VERSION = ['"]([\d.]+)['"]/.freeze
33+
REGEXP = /VERSION = ['"]([\d.]+)['"]/
3434

3535
def self.call(version_file, version_suffix)
3636
version_suffix ||= Date.today.strftime('%Y%m%d')

rb/lib/selenium/webdriver/remote/bridge.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -682,7 +682,7 @@ def convert_locator(how, what)
682682
[how, what]
683683
end
684684

685-
ESCAPE_CSS_REGEXP = /(['"\\#.:;,!?+<>=~*^$|%&@`{}\-\[\]()])/.freeze
685+
ESCAPE_CSS_REGEXP = /(['"\\#.:;,!?+<>=~*^$|%&@`{}\-\[\]()])/
686686
UNICODE_CODE_POINT = 30
687687

688688
# Escapes invalid characters in CSS selector.

rb/lib/selenium/webdriver/support/color.rb

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,27 +23,27 @@ module Support
2323
class Color
2424
RGB_PATTERN = /^\s*rgb\(\s*(\d{1,3})\s*,
2525
\s*(\d{1,3})\s*,
26-
\s*(\d{1,3})\s*\)\s*$/x.freeze
26+
\s*(\d{1,3})\s*\)\s*$/x
2727
RGB_PCT_PATTERN = /^\s*rgb\(\s*(\d{1,3}|\d{1,2}\.\d+)%\s*,
2828
\s*(\d{1,3}|\d{1,2}\.\d+)%\s*,
29-
\s*(\d{1,3}|\d{1,2}\.\d+)%\s*\)\s*$/x.freeze
29+
\s*(\d{1,3}|\d{1,2}\.\d+)%\s*\)\s*$/x
3030
RGBA_PATTERN = /^\s*rgba\(\s*(\d{1,3})\s*,
3131
\s*(\d{1,3})\s*,
3232
\s*(\d{1,3})\s*,
33-
\s*(0|1|0\.\d+)\s*\)\s*$/x.freeze
33+
\s*(0|1|0\.\d+)\s*\)\s*$/x
3434
RGBA_PCT_PATTERN = /^\s*rgba\(\s*(\d{1,3}|\d{1,2}\.\d+)
3535
%\s*,\s*(\d{1,3}|\d{1,2}\.\d+)
3636
%\s*,\s*(\d{1,3}|\d{1,2}\.\d+)
37-
%\s*,\s*(0|1|0\.\d+)\s*\)\s*$/x.freeze
38-
HEX_PATTERN = /#(\h{2})(\h{2})(\h{2})/.freeze
39-
HEX3_PATTERN = /#(\h)(\h)(\h)/.freeze
37+
%\s*,\s*(0|1|0\.\d+)\s*\)\s*$/x
38+
HEX_PATTERN = /#(\h{2})(\h{2})(\h{2})/
39+
HEX3_PATTERN = /#(\h)(\h)(\h)/
4040
HSL_PATTERN = /^\s*hsl\(\s*(\d{1,3})\s*,
4141
\s*(\d{1,3})%\s*,
42-
\s*(\d{1,3})%\s*\)\s*$/x.freeze
42+
\s*(\d{1,3})%\s*\)\s*$/x
4343
HSLA_PATTERN = /^\s*hsla\(\s*(\d{1,3})\s*,
4444
\s*(\d{1,3})%\s*,
4545
\s*(\d{1,3})%\s*,
46-
\s*(0|1|0\.\d+)\s*\)\s*$/x.freeze
46+
\s*(0|1|0\.\d+)\s*\)\s*$/x
4747

4848
attr_reader :red, :green, :blue, :alpha
4949

rb/ruby_version.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
RUBY_VERSION = "2.7.6"
1+
RUBY_VERSION = "3.0.6"

rb/selenium-devtools.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Gem::Specification.new do |s|
2929
}
3030

3131
s.required_rubygems_version = Gem::Requirement.new('> 1.3.1') if s.respond_to? :required_rubygems_version=
32-
s.required_ruby_version = Gem::Requirement.new('>= 2.7')
32+
s.required_ruby_version = Gem::Requirement.new('>= 3.0')
3333

3434
s.files = [
3535
'LICENSE',

rb/selenium-webdriver.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Gem::Specification.new do |s|
3030
}
3131

3232
s.required_rubygems_version = Gem::Requirement.new('> 1.3.1') if s.respond_to? :required_rubygems_version=
33-
s.required_ruby_version = Gem::Requirement.new('>= 2.7')
33+
s.required_ruby_version = Gem::Requirement.new('>= 3.0')
3434

3535
s.files = [
3636
'CHANGES',

0 commit comments

Comments
 (0)