CINXE.COM
Ruby 程序设计语言官方网站
<!DOCTYPE html> <html> <head><script type="text/javascript" src="/_static/js/bundle-playback.js?v=HxkREWBo" charset="utf-8"></script> <script type="text/javascript" src="/_static/js/wombat.js?v=txqj7nKC" charset="utf-8"></script> <script>window.RufflePlayer=window.RufflePlayer||{};window.RufflePlayer.config={"autoplay":"on","unmuteOverlay":"hidden"};</script> <script type="text/javascript" src="/_static/js/ruffle/ruffle.js"></script> <script type="text/javascript"> __wm.init("https://web.archive.org/web"); __wm.wombat("https://www.ruby-lang.org/zh_cn/","20240614035732","https://web.archive.org/","web","/_static/", "1718337452"); </script> <link rel="stylesheet" type="text/css" href="/_static/css/banner-styles.css?v=S1zqJCYt" /> <link rel="stylesheet" type="text/css" href="/_static/css/iconochive.css?v=3PDvdIFv" /> <!-- End Wayback Rewrite JS Include --> <meta charset="utf-8"> <title>Ruby 程序设计语言官方网站</title> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta itemprop="image" content="https://web.archive.org/web/20240614035732im_/https://www.ruby-lang.org/images/header-ruby-logo@2x.png"> <meta name="description" content=""> <link rel="stylesheet" type="text/css" href="/web/20240614035732cs_/https://www.ruby-lang.org/stylesheets/normalize.css"> <link rel="stylesheet" type="text/css" href="/web/20240614035732cs_/https://www.ruby-lang.org/stylesheets/main.css"> <link rel="stylesheet" type="text/css" href="/web/20240614035732cs_/https://www.ruby-lang.org/stylesheets/pygments.css"> <link rel="stylesheet" type="text/css" href="/web/20240614035732cs_/https://www.ruby-lang.org/stylesheets/mobile.css"> <link rel="stylesheet" type="text/css" href="/web/20240614035732cs_/https://www.ruby-lang.org/stylesheets/print.css"> <link href="https://web.archive.org/web/20240614035732cs_/https://fonts.googleapis.com/css?family=Noto+Sans:400,700,400italic,700italic&subset=latin,cyrillic,greek,vietnamese" rel="stylesheet" type="text/css"> <link rel="canonical" href="https://web.archive.org/web/20240614035732/https://www.ruby-lang.org/zh_cn/"> <link rel="shortcut icon" type="image/x-icon" href="/web/20240614035732im_/https://www.ruby-lang.org/favicon.ico"> <link href="/web/20240614035732/https://www.ruby-lang.org/zh_cn/feeds/news.rss" rel="alternate" title="最新消息(RSS)" type="application/rss+xml"> <script type="text/javascript" src="/web/20240614035732js_/https://www.ruby-lang.org/javascripts/jquery.min.js"></script> <script type="text/javascript" src="/web/20240614035732js_/https://www.ruby-lang.org/javascripts/page.js"></script> <script type="text/javascript" src="/web/20240614035732js_/https://www.ruby-lang.org/javascripts/examples.js"></script> </head> <body id="home-page-layout"> <div id="header"> <div id="header_content" class="container"> <a href="/web/20240614035732/https://www.ruby-lang.org/zh_cn/"> <h1>Ruby</h1> <h2>程序员最好的朋友</h2> </a> <div class="site-links"> <a href="/web/20240614035732/https://www.ruby-lang.org/zh_cn/" class="home">首页</a> <a href="/web/20240614035732/https://www.ruby-lang.org/zh_cn/downloads/">下载</a> <a href="/web/20240614035732/https://www.ruby-lang.org/zh_cn/documentation/">文档</a> <a href="/web/20240614035732/https://www.ruby-lang.org/zh_cn/libraries/">代码库</a> <a href="/web/20240614035732/https://www.ruby-lang.org/zh_cn/community/">社区</a> <a href="/web/20240614035732/https://www.ruby-lang.org/zh_cn/news/">新闻</a> <a href="/web/20240614035732/https://www.ruby-lang.org/zh_cn/security/">安全</a> <a href="/web/20240614035732/https://www.ruby-lang.org/zh_cn/about/">关于 Ruby</a> <a href="#" class="menu selected">Menu</a> </div> <div id="search-box"> <form id="search-form" action="https://web.archive.org/web/20240614035732/https://www.google.com/cse"> <table class="fieldset"> <tr> <td> <input class="field" type="text" name="q" size="31" style="background: white url(//web.archive.org/web/20240614035732im_/https://www.google.com/coop/intl/zh_cn/images/google_custom_search_watermark.gif) left no-repeat" onfocus="this.style.background='white'" onblur="if (/^\s*$/.test(this.value)) this.style.background='white url(//www.google.com/coop/intl/zh_cn/images/google_custom_search_watermark.gif) left no-repeat'"/> </td> <td> <input type="hidden" name="cx" value="013598269713424429640:g5orptiw95w"/> <input type="hidden" name="ie" value="UTF-8"/> <input class="button" type="submit" name="sa" value="搜索"/> </td> </tr> </table> </form> </div> </div> </div> <div id="page"> <div id="intro-container"> <div class="container"> <div id="intro-wrapper"> <div id="intro"> <h1>Ruby 是……</h1> <p>一门开源的动态编程语言,注重简洁和效率。Ruby 的句法优雅,读起来自然,写起来舒适。</p> <a href="downloads/" class="download-link" title="下载 Ruby">下载 Ruby</a> 或 <a href="about/">了解更多……</a> </div> <div id="code"></div> </div> </div> </div> <div id="main-wrapper" class="container"> <div id="main"> <div id="content-wrapper"> <!-- //--> <div id="content"> <div class="post"> <h3><a href="/web/20240614035732/https://www.ruby-lang.org/zh_cn/news/2024/05/16/dos-rexml-cve-2024-35176/">CVE-2024-35176: REXML 中的 DoS 漏洞</a></h3> <p>REXML gem 中存在一个 DoS 漏洞。此漏洞的 CVE 编号为 <a href="https://web.archive.org/web/20240614035732/https://www.cve.org/CVERecord?id=CVE-2024-35176">CVE-2024-35176</a>。我们强烈建议您更新 REXML gem。</p> <p class="post-link"><a href="/web/20240614035732/https://www.ruby-lang.org/zh_cn/news/2024/05/16/dos-rexml-cve-2024-35176/">阅读全文...</a></p> <p class="post-info">由 kou 发表于 2024-05-16</p> </div> <div class="post"> <h3><a href="/web/20240614035732/https://www.ruby-lang.org/zh_cn/news/2024/05/16/ruby-3-4-0-preview1-released/">Ruby 3.4.0 preview1 已发布</a></h3> <p>我们很高兴地宣布 3.4.0-preview1 发布。</p> <p class="post-link"><a href="/web/20240614035732/https://www.ruby-lang.org/zh_cn/news/2024/05/16/ruby-3-4-0-preview1-released/">阅读全文...</a></p> <p class="post-info">由 naruse 发表于 2024-05-16</p> </div> <div class="post"> <h3><a href="/web/20240614035732/https://www.ruby-lang.org/zh_cn/news/2024/04/23/ruby-3-3-1-released/">Ruby 3.3.1 已发布</a></h3> <p>Ruby 3.3.1 已发布。</p> <p class="post-link"><a href="/web/20240614035732/https://www.ruby-lang.org/zh_cn/news/2024/04/23/ruby-3-3-1-released/">阅读全文...</a></p> <p class="post-info">由 naruse 发表于 2024-04-23</p> </div> <div class="post"> <h3><a href="/web/20240614035732/https://www.ruby-lang.org/zh_cn/news/2024/04/23/ruby-3-2-4-released/">Ruby 3.2.4 已发布</a></h3> <p>Ruby 3.2.4 已发布。</p> <p class="post-link"><a href="/web/20240614035732/https://www.ruby-lang.org/zh_cn/news/2024/04/23/ruby-3-2-4-released/">阅读全文...</a></p> <p class="post-info">由 nagachika 发表于 2024-04-23</p> </div> <div id="news"> <h3>其它新闻</h3> <ul> <li> <a href="/web/20240614035732/https://www.ruby-lang.org/zh_cn/news/2024/04/23/ruby-3-1-5-released/">Ruby 3.1.5 已发布</a><br> <span class="post-info">由 hsbt 发表于 2024-04-23</span> </li> <li> <a href="/web/20240614035732/https://www.ruby-lang.org/zh_cn/news/2024/04/23/ruby-3-0-7-released/">Ruby 3.0.7 已发布</a><br> <span class="post-info">由 hsbt 发表于 2024-04-23</span> </li> <li> <a href="/web/20240614035732/https://www.ruby-lang.org/zh_cn/news/2024/04/23/arbitrary-memory-address-read-regexp-cve-2024-27282/">CVE-2024-27282: Regex 搜索中的任意地址读取漏洞</a><br> <span class="post-info">由 hsbt 发表于 2024-04-23</span> </li> <li> <a href="/web/20240614035732/https://www.ruby-lang.org/zh_cn/news/2024/03/21/rce-rdoc-cve-2024-27281/">CVE-2024-27281: RDoc 中 .rdoc_options 的 RCE 漏洞</a><br> <span class="post-info">由 hsbt 发表于 2024-03-21</span> </li> <li> <a href="/web/20240614035732/https://www.ruby-lang.org/zh_cn/news/2024/03/21/buffer-overread-cve-2024-27280/">CVE-2024-27280: StringIO 中的缓存过读漏洞</a><br> <span class="post-info">由 hsbt 发表于 2024-03-21</span> </li> <li> <a href="/web/20240614035732/https://www.ruby-lang.org/zh_cn/news/2024/01/18/ruby-3-2-3-released/">Ruby 3.2.3 已发布</a><br> <span class="post-info">由 nagachika 发表于 2024-01-18</span> </li> </ul> <p class="more"> <a href="news/">更多新闻...</a> </p> </div> </div> </div> <hr class="hidden-modern"/> <div id="sidebar-wrapper"> <div id="sidebar"> <div class="navigation"> <h3><strong>试用</strong>,其实很简单!</h3> <ul class="menu"> <li><a href="https://web.archive.org/web/20240614035732/https://try.ruby-lang.org/">在浏览器中试用 Ruby(英文)</a></li> <li><a href="/web/20240614035732/https://www.ruby-lang.org/zh_cn/documentation/quickstart/">20 分钟体验 Ruby</a></li> <li><a href="/web/20240614035732/https://www.ruby-lang.org/zh_cn/documentation/ruby-from-other-languages/">从其它语言转到 Ruby</a></li> </ul> </div> <div class="navigation"> <h3><strong>探索</strong>新的世界</h3> <ul class="menu"> <li><a href="/web/20240614035732/https://www.ruby-lang.org/zh_cn/documentation/">文档</a></li> <li><a href="https://web.archive.org/web/20240614035732/https://rubybib.org/">学术研究</a></li> <li><a href="/web/20240614035732/https://www.ruby-lang.org/zh_cn/libraries/">代码库</a></li> <li><a href="/web/20240614035732/https://www.ruby-lang.org/zh_cn/documentation/success-stories/">成功案例</a></li> </ul> </div> <div class="navigation"> <h3><strong>加入</strong>友善及日益壮大的社区</h3> <ul> <li><a href="/web/20240614035732/https://www.ruby-lang.org/zh_cn/community/mailing-lists/">邮件列表</a>: 联系喜爱 Ruby 的朋友</li> <li><a href="/web/20240614035732/https://www.ruby-lang.org/zh_cn/community/user-groups/">用户组</a>: 参与 Ruby 爱好者活动</li> <li><a href="/web/20240614035732/https://www.ruby-lang.org/zh_cn/community/weblogs/">博客</a>: 阅读 Ruby 相关的博客</li> <li><a href="/web/20240614035732/https://www.ruby-lang.org/zh_cn/community/ruby-core/">Ruby 核心</a>: 帮助开发 Ruby 语言</li> <li><a href="https://web.archive.org/web/20240614035732/https://bugs.ruby-lang.org/">问题跟踪</a>: 报告或帮助解决 Ruby 的问题</li> </ul> </div> <h3>订阅</h3> <p><a href="/web/20240614035732/https://www.ruby-lang.org/zh_cn/feeds/news.rss">最新消息(RSS)</a></p> </div> </div> <hr class="hidden-modern"/> </div> </div> </div> <div class="container"> <div id="footer"> <div class="site-links"> <a href="/web/20240614035732/https://www.ruby-lang.org/zh_cn/" class="home">首页</a> <a href="/web/20240614035732/https://www.ruby-lang.org/zh_cn/downloads/">下载</a> <a href="/web/20240614035732/https://www.ruby-lang.org/zh_cn/documentation/">文档</a> <a href="/web/20240614035732/https://www.ruby-lang.org/zh_cn/libraries/">代码库</a> <a href="/web/20240614035732/https://www.ruby-lang.org/zh_cn/community/">社区</a> <a href="/web/20240614035732/https://www.ruby-lang.org/zh_cn/news/">新闻</a> <a href="/web/20240614035732/https://www.ruby-lang.org/zh_cn/security/">安全</a> <a href="/web/20240614035732/https://www.ruby-lang.org/zh_cn/about/">关于 Ruby</a> </div> <p> 本站其他语言版本: <a href="/web/20240614035732/https://www.ruby-lang.org/bg/">Български</a>, <a href="/web/20240614035732/https://www.ruby-lang.org/de/">Deutsch</a>, <a href="/web/20240614035732/https://www.ruby-lang.org/en/">English</a>, <a href="/web/20240614035732/https://www.ruby-lang.org/es/">Español</a>, <a href="/web/20240614035732/https://www.ruby-lang.org/fr/">Français</a>, <a href="/web/20240614035732/https://www.ruby-lang.org/id/">Bahasa Indonesia</a>, <a href="/web/20240614035732/https://www.ruby-lang.org/it/">Italiano</a>, <a href="/web/20240614035732/https://www.ruby-lang.org/ja/">日本語</a>, <a href="/web/20240614035732/https://www.ruby-lang.org/ko/">한국어</a>, <a href="/web/20240614035732/https://www.ruby-lang.org/pl/">polski</a>, <a href="/web/20240614035732/https://www.ruby-lang.org/pt/">Português</a>, <a href="/web/20240614035732/https://www.ruby-lang.org/ru/">Русский</a>, <a href="/web/20240614035732/https://www.ruby-lang.org/tr/">Türkçe</a>, <a href="/web/20240614035732/https://www.ruby-lang.org/vi/">Tiếng Việt</a>, <a href="/web/20240614035732/https://www.ruby-lang.org/zh_cn/">简体中文</a>, <a href="/web/20240614035732/https://www.ruby-lang.org/zh_tw/">繁體中文</a>. </p> <p><a href="/web/20240614035732/https://www.ruby-lang.org/zh_cn/about/website/">本站</a>由 Ruby 社区的成员共同维护。</p> </div> </div> </body> </html> <!-- FILE ARCHIVED ON 03:57:32 Jun 14, 2024 AND RETRIEVED FROM THE INTERNET ARCHIVE ON 14:29:26 Nov 27, 2024. JAVASCRIPT APPENDED BY WAYBACK MACHINE, COPYRIGHT INTERNET ARCHIVE. ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C. SECTION 108(a)(3)). --> <!-- playback timings (ms): captures_list: 0.73 exclusion.robots: 0.034 exclusion.robots.policy: 0.02 esindex: 0.035 cdx.remote: 9.586 LoadShardBlock: 5419.178 (3) PetaboxLoader3.datanode: 132.654 (4) PetaboxLoader3.resolve: 5239.429 (2) load_resource: 240.298 -->