Compares string to the given regexp conditions
Expands the not equal version operator ’!=’ into equivalent ’<’ and ’>’ pair.
Expands the pessimistic version operator ’~>’ into equivalent ’>=’ and ’<’ pair.
Expands ’~>’ and ’!=’ gem requirements.
Converts Gem::Requirement into array of requirements strings compatible with RPM .spec file.
Taken with modification from the word_wrap method in ActionPack. Text::Format does the same thing better.
[Validate]