scelis / twine

Twine is a command line tool for managing your strings and their translations.
Other
840 stars 151 forks source link

Missing rexml dependency for Ruby 3 #311

Closed silverhammermba closed 1 year ago

silverhammermba commented 1 year ago

In Ruby 3, rexml was promoted to a bundled gem, meaning it cannot simply be required, it has to be explicitly mentioned in the gemspec/gemfile. This causes a runtime failure in twine when running it with Ruby 3.

The workaround is to explicitly include rexml alongside twine, for example if using bundler

gem "twine"
gem "rexml"

I am not very familiar with packaging gems, but it seems likely that there is a way to specify the rexml dependency in twine such that it is compatible with both Ruby 2 and 3.

scelis commented 1 year ago

Thank you for the report! This should be fixed in the next release of Twine.