Skip to content

Commit 06e9ed6

Browse files
authored
Merge pull request #156 from rake-compiler/flavorjones/bump-ruby-20250717
Bump the versions of Ruby in the MRI containers.
2 parents 731c621 + 6e1eefc commit 06e9ed6

File tree

2 files changed

+20
-20
lines changed

2 files changed

+20
-20
lines changed

Dockerfile.mri.erb

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ ENV BASH_ENV=/etc/rubybashrc
108108
##
109109
USER rubyuser
110110

111-
ENV RBENV_RUBIES="3.1.6 3.4.1"
111+
ENV RBENV_RUBIES="3.1.7 3.4.5"
112112

113113
# Install the bootstrap rubies
114114
RUN bash -c " \
@@ -148,21 +148,21 @@ RUN sudo mkdir -p /usr/local/rake-compiler && \
148148
xrubies_build_plan = if platform =~ /x64-mingw-ucrt/
149149
[
150150
# Rubyinstaller-3.1+ is platform x64-mingw-ucrt
151-
["3.4.1:3.3.7:3.2.6:3.1.6", "3.4.1"],
151+
["3.4.5:3.3.9:3.2.9:3.1.7", "3.4.5"],
152152
]
153153
elsif platform =~ /aarch64-mingw-ucrt/
154154
[
155-
["3.4.1", "3.1.6"],
155+
["3.4.5", "3.1.7"],
156156
]
157157
elsif platform =~ /x64-mingw32/
158158
[
159159
# Rubyinstaller prior to 3.1 is platform x64-mingw32
160-
["3.0.7:2.7.8", "3.1.6"],
160+
["3.0.7:2.7.8", "3.1.7"],
161161
]
162162
else
163163
[
164-
["2.7.8", "3.1.6"],
165-
["3.4.1:3.3.7:3.2.6:3.1.6:3.0.7", "3.4.1"],
164+
["2.7.8", "3.1.7"],
165+
["3.4.5:3.3.9:3.2.9:3.1.7:3.0.7", "3.4.5"],
166166
]
167167
end
168168

@@ -174,7 +174,7 @@ RUN bash -c " \
174174
export CPPFLAGS='<%= "-D__USE_MINGW_ANSI_STDIO=1" if platform =~ /x64-mingw-ucrt/ %>' && \
175175
export CFLAGS='-O1 -fno-omit-frame-pointer -fno-fast-math -fstack-protector-strong <%= strip %>' && \
176176
export LDFLAGS='-pipe <%= strip %>' && \
177-
<%= "export LIBS='-l:libssp.a' &&" if platform =~ /mingw/ %> \
177+
<%= "export LIBS='-l:libssp.a -lpthread' &&" if platform =~ /mingw/ %> \
178178
<%= "export CC=#{target}-clang &&" if platform =~ /darwin/ %> \
179179
export MAKE='make V=1' && \
180180
rake-compiler cross-ruby VERSION=<%= xrubies %> HOST=<%= target %> && \
@@ -264,8 +264,8 @@ RUN echo 'source /etc/profile.d/rcd-env.sh' >> /etc/rubybashrc
264264
# Install sudoers configuration
265265
COPY build/sudoers /etc/sudoers.d/rake-compiler-dock
266266

267-
RUN bash -c "rbenv global 3.4.1"
267+
RUN bash -c "rbenv global 3.4.5"
268268

269-
ENV RUBY_CC_VERSION=3.4.1:3.3.7:3.2.6:3.1.6:3.0.7:2.7.8
269+
ENV RUBY_CC_VERSION=3.4.5:3.3.9:3.2.9:3.1.7:3.0.7:2.7.8
270270

271271
CMD bash

lib/rake_compiler_dock.rb

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -82,20 +82,20 @@ def exec(*args, &block)
8282
#
8383
# RakeCompilerDock.cross_rubies
8484
# # => {
85-
# # "3.4" => "3.4.1",
86-
# # "3.3" => "3.3.5",
87-
# # "3.2" => "3.2.6",
88-
# # "3.1" => "3.1.6",
85+
# # "3.4" => "3.4.5",
86+
# # "3.3" => "3.3.9",
87+
# # "3.2" => "3.2.9",
88+
# # "3.1" => "3.1.7",
8989
# # "3.0" => "3.0.7",
9090
# # "2.7" => "2.7.8",
9191
# # }
9292
#
9393
def cross_rubies
9494
{
95-
"3.4" => "3.4.1",
96-
"3.3" => "3.3.7",
97-
"3.2" => "3.2.6",
98-
"3.1" => "3.1.6",
95+
"3.4" => "3.4.5",
96+
"3.3" => "3.3.9",
97+
"3.2" => "3.2.9",
98+
"3.1" => "3.1.7",
9999
"3.0" => "3.0.7",
100100
"2.7" => "2.7.8",
101101
}
@@ -112,13 +112,13 @@ def cross_rubies
112112
#
113113
# For example:
114114
# RakeCompilerDock.ruby_cc_version("2.7", "3.4")
115-
# # => "3.4.1:2.7.8"
115+
# # => "3.4.5:2.7.8"
116116
#
117117
# RakeCompilerDock.ruby_cc_version("~> 3.2")
118-
# # => "3.4.1:3.3.7:3.2.6"
118+
# # => "3.4.5:3.3.9:3.2.9"
119119
#
120120
# RakeCompilerDock.ruby_cc_version(Gem::Requirement.new("~> 3.2"))
121-
# # => "3.4.1:3.3.7:3.2.6"
121+
# # => "3.4.5:3.3.9:3.2.9"
122122
#
123123
def ruby_cc_version(*requirements)
124124
cross = cross_rubies

0 commit comments

Comments
 (0)