From d2a6b115eac2fb7ae0464880caef5e12879f1b7f Mon Sep 17 00:00:00 2001 From: jbranchaud Date: Sun, 10 Jan 2021 18:02:22 -0600 Subject: [PATCH] Add rexml Is A Bundled Gem As Of Ruby 3.0.0 as a ruby til --- README.md | 3 ++- ...rexml-is-a-bundled-gem-as-of-ruby-3-0-0.md | 26 +++++++++++++++++++ 2 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 ruby/rexml-is-a-bundled-gem-as-of-ruby-3-0-0.md diff --git a/README.md b/README.md index 9c791a2..45f435f 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ pairing with smart people at Hashrocket. For a steady stream of TILs, [sign up for my newsletter](https://tinyletter.com/jbranchaud). -_1001 TILs and counting..._ +_1002 TILs and counting..._ --- @@ -839,6 +839,7 @@ _1001 TILs and counting..._ - [Require Entire Gemfile In Pry Session](ruby/require-entire-gemfile-in-pry-session.md) - [Rerun Only Failures With RSpec](ruby/rerun-only-failures-with-rspec.md) - [Returning With Sequel](ruby/returning-with-sequel.md) +- [rexml Is A Bundled Gem As Of Ruby 3.0.0](ruby/rexml-is-a-bundled-gem-as-of-ruby-3-0-0.md) - [Run An Older Version Of Bundler](ruby/run-an-older-version-of-bundler.md) - [Running A Single MiniTest Example](ruby/running-a-single-minitest-example.md) - [Safe Navigation Operator](ruby/safe-navigation-operator.md) diff --git a/ruby/rexml-is-a-bundled-gem-as-of-ruby-3-0-0.md b/ruby/rexml-is-a-bundled-gem-as-of-ruby-3-0-0.md new file mode 100644 index 0000000..aa454ea --- /dev/null +++ b/ruby/rexml-is-a-bundled-gem-as-of-ruby-3-0-0.md @@ -0,0 +1,26 @@ +# rexml Is A Bundled Gem As Of Ruby 3.0.0 + +Are you seeing an error loading certain +[`rexml`](https://github.com/ruby/rexml) files? + +``` +LoadError: cannot load such file -- rexml/document +``` + +It may be that `rexml` no longer ships as part of the Ruby version you are +using. If you are working with Ruby 3.0.0 or later, the `rexml` gem needs to be +explicitly installed as it is now a bundled gem. + +Either add it to your `Gemfile`: + +``` +gem 'rexml' +``` + +or install it manually with: + +```bash +$ gem install rexml +``` + +[source](https://stackoverflow.com/questions/65479863/rails-6-1-what-is-preventing-tests-from-running)