Handle REXML requires for Ubuntu focal (#1584)

The distribution provided vagrant package on Ubuntu 20.04 is version
2.2.6 running on ruby 2.7.2. It appears that the rexml layout is
slightly different and imports different paths than the current code
expects. Add this combination to the unit tests and switch the requires
to load the specific library requirements instead of relying on rexml
loading everything underneath.

Additionally it appears the hook behaviour change appeared earlier that
the understood vagrant release of 2.2.11, and 2.2.6 also requires the
newer hook behaviour.
This commit is contained in:
Darragh Bailey
2022-09-08 12:44:05 +01:00
committed by GitHub
parent 602b4e9ad8
commit ba2c7be494
5 changed files with 13 additions and 11 deletions

View File

@@ -41,6 +41,12 @@ jobs:
- ruby: 2.6.6
vagrant: v2.2.14
allow_fail: false
- ruby: 2.7.2
vagrant: v2.2.10
allow_fail: false
# above block is to ensure compatible with Ubuntu 20.04 vagrant package
# although it uses 2.2.10 it is the earliest version that will install on
# ruby 2.7 without patching
- ruby: 3.0.0
vagrant:
allow_fail: false