Ruby implementation of ua-parser