Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion crates/rb-sys-env/src/ruby_version.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use std::collections::HashMap;

const COMPARABLE_RUBY_MAJORS: [u8; 4] = [1, 2, 3, 4];

const COMPARABLE_RUBY_MINORS: [(u8, u8); 11] = [
const COMPARABLE_RUBY_MINORS: [(u8, u8); 13] = [
(2, 2),
(2, 3),
(2, 4),
Expand All @@ -14,6 +14,8 @@ const COMPARABLE_RUBY_MINORS: [(u8, u8); 11] = [
(3, 2),
(3, 3),
(3, 4),
(4, 0),
(4, 1),
];

/// The current Ruby version.
Expand Down
3 changes: 2 additions & 1 deletion crates/rb-sys/build/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ use std::{
};
use version::Version;

const SUPPORTED_RUBY_VERSIONS: [Version; 11] = [
const SUPPORTED_RUBY_VERSIONS: [Version; 12] = [
Version::new(2, 3),
Version::new(2, 4),
Version::new(2, 5),
Expand All @@ -25,6 +25,7 @@ const SUPPORTED_RUBY_VERSIONS: [Version; 11] = [
Version::new(3, 3),
Version::new(3, 4),
Version::new(4, 0),
Version::new(4, 1),
];

fn main() {
Expand Down
Loading