Skip to content

Commit

Permalink
Bump Ruby to 3.1
Browse files Browse the repository at this point in the history
This is necessary to unblock
dependabot#5030, because Ubuntu
`22.04` doesn't provide an older version of `openssl`, so need a new
enough Ruby to work with the newer version of `openssl`.
See dependabot#5030 (comment)
for the gory details.

And besides, we want to move to Ruby 3.1 anyway...
  • Loading branch information
jeffwidman authored and mctofu committed Oct 7, 2022
1 parent 54b8554 commit 2badf4b
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug-report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ body:
- type: input
attributes:
label: Language version
description: If applicable, specify the language version you're using (e.g., Node.js `14.1`, Ruby `2.7`, etc.)
description: If applicable, specify the language version you're using (e.g., Node.js `14.1`, Ruby `3.1`, etc.)
validations:
required: false

Expand Down
2 changes: 1 addition & 1 deletion .ruby-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.7.6
3.1.2
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ RUN if ! getent group "$USER_GID"; then groupadd --gid "$USER_GID" dependabot ;

### RUBY

ARG RUBY_VERSION=2.7.6
ARG RUBY_VERSION=3.1.2
ARG RUBY_INSTALL_VERSION=0.8.3

ARG RUBYGEMS_SYSTEM_VERSION=3.3.22
Expand Down
2 changes: 1 addition & 1 deletion common/dependabot-common.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Gem::Specification.new do |spec|
spec.require_path = "lib"
spec.files = []

spec.required_ruby_version = ">= 2.7.0"
spec.required_ruby_version = ">= 3.1.0"
spec.required_rubygems_version = ">= 3.3.22"

spec.add_dependency "activesupport", ">= 6.0.0"
Expand Down
6 changes: 3 additions & 3 deletions common/spec/warning_monkey_patch.rb
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# frozen_string_literal: true

ALLOW_PATTERNS = [
# Ignore parser warnings for ruby 2.7 minor version mismatches.
# Ignore `parser/current` warnings for ruby patch version mismatches.
# This is a recurring issue that occurs whenever the parser gets
# ahead of our installed ruby version.
%r{parser/current is loading parser/ruby27},
/2.7.\d-compliant syntax, but you are running 2.7.\d/,
%r{parser/current is loading parser/ruby31},
/3.1.\d-compliant syntax, but you are running 3.1.\d/,
%r{whitequark/parser}
].freeze

Expand Down
2 changes: 1 addition & 1 deletion omnibus/dependabot-omnibus.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Gem::Specification.new do |spec|
spec.homepage = common_gemspec.homepage
spec.license = common_gemspec.license

spec.required_ruby_version = ">= 2.7.0"
spec.required_ruby_version = ">= 3.1.0"
spec.require_path = "lib"
spec.files = ["lib/dependabot/omnibus.rb"]

Expand Down

0 comments on commit 2badf4b

Please sign in to comment.