Feature #38099

Ruby 3.2 support

Added by Go MAEDA about 1 month ago. Updated 17 days ago.

Status:ClosedStart date:
Priority:NormalDue date:
Assignee:Go MAEDA% Done:

0%

Category:Ruby support
Target version:5.1.0
Resolution:Fixed

Related issues

Related to Redmine - Defect #38100: Ruby 3.2: Encoding::CompatibilityError when running Chang... Closed
Related to Redmine - Defect #38118: Ruby 3.2: Markdown formatter warns "undefining the alloca... New
Related to Redmine - Patch #38121: Update MiniMagick to 4.12 Closed
Related to Redmine - Patch #38124: Update csv, net-imap, net-pop, and net-smtp gems to the s... Closed
Related to Redmine - Feature #38134: Drop Ruby 2.6 support Closed
Related to Redmine - Patch #38181: Update Nokogiri to 1.14 Closed
Related to Redmine - Patch #38220: Update Redcarpet to 3.6 Closed

Associated revisions

Revision 22000
Added by Go MAEDA about 1 month ago

Ruby 3.2: `Changeset.normalize_comments` raises Encoding::CompatibilityError if the string contains an invalid UTF-8 byte sequence (#38099, #38100).

Patch by Go MAEDA.

Revision 22001
Added by Go MAEDA about 1 month ago

Update Gemfile to allow using Ruby 3.2 (#38099).

Revision 22044
Added by Go MAEDA 17 days ago

Add Ruby 3.2 to the supported Ruby versions (#38099).

History

#1 Updated by Go MAEDA about 1 month ago

  • Related to Defect #38100: Ruby 3.2: Encoding::CompatibilityError when running ChangesetTest#test_invalid_utf8_sequences_in_comments_should_be_replaced_latin1 added

#2 Updated by Go MAEDA about 1 month ago

  • File 38099.patch added

#3 Updated by Go MAEDA about 1 month ago

  • File deleted (38099.patch)

#4 Updated by Go MAEDA about 1 month ago

r22001 passes all tests with Ruby 3.2.

I will keep this issue open for a while, and if no new issues related to Ruby 3.2 are reported, I will update the supported Ruby versions in doc/INSTALL and close this issue.

#5 Updated by Go MAEDA about 1 month ago

  • Related to Defect #38118: Ruby 3.2: Markdown formatter warns "undefining the allocator of T_DATA class Redcarpet::Markdown" added

#6 Updated by Go MAEDA about 1 month ago

#7 Updated by Go MAEDA about 1 month ago

  • Related to Patch #38124: Update csv, net-imap, net-pop, and net-smtp gems to the same versions shipped with Ruby 3.2.0 added

#8 Updated by Go MAEDA about 1 month ago

Nokogiri 1.13.10 does not yet support Ruby 3.2. Waiting for the next release of Nokogiri.

$ bundle up
Fetching gem metadata from https://rubygems.org/.........
Resolving dependencies...
Could not find compatible versions

Because nokogiri >= 1.13.10 (x86_64-darwin) depends on Ruby >= 2.6, < 3.2.dev
  and Gemfile depends on nokogiri ~> 1.13.10,
  Ruby >= 2.6, < 3.2.dev is required.
So, because current Ruby version is = 3.2.0,
  version solving has failed.

#9 Updated by Go MAEDA 17 days ago

#10 Updated by Go MAEDA 17 days ago

#11 Updated by Go MAEDA 17 days ago

  • Status changed from New to Closed
  • Assignee set to Go MAEDA
  • Resolution set to Fixed

Updated Nokogiri to 1.14.0 in r22043 and now Redmine works with Ruby 3.2.

#12 Updated by Go MAEDA 3 days ago

Also available in: Atom PDF