summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorYuta Saito <[email protected]>2024-05-04 20:41:16 +0000
committergit <[email protected]>2024-05-07 05:36:35 +0000
commit80adf6a18c653e25a0448110e6978a9d0764eba7 (patch)
tree9bba5cfd66b0a95aa5ce0eadd4641004fcbb82ee /lib
parent7c8903d014e12bd80a35804affa029028c9f48cc (diff)
[rubygems/rubygems] Accept WASI as an OS name in Gem::Platform
https://github.com/rubygems/rubygems/commit/1209d3c6b0
Diffstat (limited to 'lib')
-rw-r--r--lib/rubygems/platform.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/rubygems/platform.rb b/lib/rubygems/platform.rb
index 48b7344aee..d54ad12880 100644
--- a/lib/rubygems/platform.rb
+++ b/lib/rubygems/platform.rb
@@ -134,6 +134,7 @@ class Gem::Platform
when /netbsdelf/ then ["netbsdelf", nil]
when /openbsd(\d+\.\d+)?/ then ["openbsd", $1]
when /solaris(\d+\.\d+)?/ then ["solaris", $1]
+ when /wasi/ then ["wasi", nil]
# test
when /^(\w+_platform)(\d+)?/ then [$1, $2]
else ["unknown", nil]