![]() ![]() Ruby on Rails 3.2 is the last series of releases that support Ruby 1.8.7. The gem is available as open source under the terms of the BSD-2-Clause. Rails 5.2.Z is included in the list of supported series until June 1st 2022. Ruby on Rails 3.0 has been designed to work with Ruby 1.8.7, Ruby 1.9.2, and JRuby 1.5.2+ earlier versions are not supported. Contributing ¶ ↑īug reports and pull requests are welcome on GitHub at /ruby/rexml. To release a new version, update the version number in version.rb, and then run bundle exec rake release, which will create a git tag for the version, push git commits and tags, and push the. To install this gem onto your local machine, run bundle exec rake install. Development ¶ ↑Īfter checking out the repo, run rake test to run the tests. That version is known broken with at least Ruby < 2.3. Up to version 3.2.5, this information was not set. ![]() As of Ruby 2.6.0, we have achieved 1.7x faster performance compared to Ruby 2. The JIT compiler is supported when Ruby is built by GCC, Clang, or Microsoft VC++, which needs to be available at runtime. The required_ruby_version on the gemspec is kept updated on a best-effort basis by the community. Read the output of ruby -help or the documentation for other options. REXML support follows the same maintenance cycle as Ruby releases, as shown on If you are running on an end-of-life Ruby, do not expect modern REXML releases to be compatible with it in fact, it's recommended that you DO NOT use this gem, and instead use the REXML version that came bundled with your end-of-life Ruby version. After this release, Ruby 2.5 reaches EOL. CVE-2021-28965: XML round-trip vulnerability in REXML. CVE-2020-25613: Potential HTTP Request Smuggling Vulnerability in WEBrick. Currently you should use Ruby 2.6+ (2021 July 22, Ruby 2.5 is EOL). Please check the topics below for details. So parsing a string is just as easy as parsing a file. Stable versions across all implementations, please check Ruby Versions. You can also do the following require "rexml/document" include REXML # so that we don't have to prefix everything with REXML. Line 3 creates a new document and parses the supplied file. Version Status EOL date 3.2: Active: N/A: 3.1: Active: N/A: 3.0: Active: N/A: 2. The EOL table indicates versions we officially test and support. ![]() note '' If you are using an older Ruby version, Karafka may still work. We'll start with parsing an XML document require "rexml/document" file = File. We officially provide support for all the versions of Ruby that are not EOL, and we align with their EOL schedule. However, with stream parsing, you don't get access to features such as XPath. Stream parsing is faster (about 1.5 times as fast). REXML supports both tree and stream document parsing. I've tried to keep the API as intuitive as possible, and have followed the Ruby methodology for method naming and code flow, rather than mirroring the Java API. Hopefully, REXML, designed with the same philosophy, has these same features. REXML was inspired by the Electric XML library for Java, which features an easy-to-use API, small size, and speed. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |