Hi Mark,
there is a direct way to do that. In most of the cases the tomcat version is irrelevant if it works :) It shouldn't be really hard to make it tomcat's dependency aware.
The Tomcat's required packages live in another gem called trinidad_jars, it's basically the embedded distribution packed into a gem, it's loaded here:
The "gem" method accepts a second parameter where the version can be specified, if it's empty it assumes the most recent one.
If you want to build your own version of the trinidad_jars gem there is a script to build it:
That can be invoked with:
rake tomcat:update[VERSION_NUMBER]
It packages everything into a jar called tomcat-core, jruby loads faster one only jar than three, and then you can change the version number here:
and run the rake task:
rake trinidad_jars:build