Commit graph

4 commits

Author SHA1 Message Date
Stan Hu
cf8a8a3ceb
Add Ruby 3.1.5 patch for older libffi versions
Due to https://bugs.ruby-lang.org/issues/20451, Ruby 3.1.5 does
not compile on systems with older versions of libffi.

This patch brings in https://github.com/ruby/ruby/pull/10696.
2024-05-08 11:39:14 -07:00
Stan Hu
b9cd110ec0
Update to Ruby 3.1.5 and 3.2.4
This fixes a number of CVEs a bugs:

* https://www.ruby-lang.org/en/news/2024/04/23/ruby-3-1-5-released/
* https://www.ruby-lang.org/en/news/2024/04/23/ruby-3-2-4-released/

This will also enable us to update to Puma 6.4.2
since https://bugs.ruby-lang.org/issues/19837 has been resolved
in Ruby 3.1.5.

This drops the `fix-ruby-xfree-for-libxml2.patch` patch for Ruby 3.1.5
since the change has been merged upstream.
2024-05-08 08:35:47 -07:00
Stan Hu
d95e4efae8
Add Ruby patch for https://bugs.ruby-lang.org/issues/19580
This fixes seg faults seen after tests finish running. This pulls in
an upstream fix for Nokogiri/libxml2:
https://github.com/ruby/ruby/pull/7663.

These patches can be dropped once Nokogiri v1.15 is available and
`NOKOGIRI_LIBXML_MEMORY_MANAGEMENT=default` is set in CI.

See https://gitlab.com/gitlab-org/gitlab/-/issues/390313#note_1342807685
for more details.
2023-04-13 12:05:02 -07:00
Stan Hu
a8f2113955
Add Ruby 3.1 to build
Ruby 3.2 contains a number of kwargs fixes, and Rails 7 may be a
prerequisite for Ruby 3.2. We'll want to test and deploy Ruby 3.1
before jumping to 3.2.

Ruby 3.1 requires at least rubygems v3.1.3. Let's just bump
everything to 3.4, and consolidate the Ruby 3.2 build.
2023-03-08 14:12:00 -08:00