Skip to content

Conversation

@trevorturk
Copy link
Contributor

@trevorturk trevorturk commented Jun 14, 2021

Starting in Ruby 3.0, many gems are now "bundled gems" which are not required by default. [1] [2]

After trying a few things (details) and chatting with @olleolleolle, I adjusted this PR to only require rexml if we're parsing xml, and then rescue the possible LoadError with a logger.error message before re-raising. The simplest fix, really, is for Ruby 3.0 users to add rexml to their Gemfile so this should point the way.

@coveralls
Copy link

coveralls commented Jun 14, 2021

Coverage Status

Coverage remained the same at 96.321% when pulling b6eae5f on trevorturk:rexml into 130ac22 on geokit:master.

@trevorturk trevorturk changed the title Add rexml dependency for Ruby 3.0 Handle rexml dependency in Ruby 3.0 Jun 14, 2021
Copy link
Contributor

@olleolleolle olleolleolle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a quite tight and informative change!

@dsantosmerino
Copy link
Member

Thanks, @trevorturk, not only for your contribution here but also for all the provided context. I think we can use this approach at the moment and see how the gem evolves, dropping the support to old Ruby versions soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants