I've been assigned a task to do with Ruby, but as I'm new to it I'm searching over the internet for a proper solution to solve it:

1. I have a list of log files reports in a web page actually divided in passed or failed.
2. I need to take log files and convert them into a format compatible with Jenkins Junit XML File format.
3. Everything, the passage from log to XML has to be written in Ruby.

Any ideas?!

I looked all over the internet and found information but still have no clear ideas how to solve this.

Are there any Ruby libraries that make this easier?
Has anyone ever handled anything like this?