Last Updated: February 25, 2016
·
911
· zedtux

Parse a .rvmrc file using a Regex

In a personal project I need to parse a .rvmrc file.

I spend some times to build this regular expression that should cover all possible cases (I hope).

http://rubular.com/r/LWYXp3m8JZ

4 Responses
Add your response

Does the RVM gem export any of this functionality?

If not, it's probably to be considered a bug, I'd happily work on it.

over 1 year ago ·

@richoh I didn't saw anything like this, that's why I wrote this regular expression.

If you implement an .rvmrc file checker, then I will use it! :)

over 1 year ago ·

It works even whithout having specified a gemset in your .rvmrc. Your rubular does not seem to test it, even though it works :)

over 1 year ago ·

Gemset is ont mandatory, that's why my regex allow without gemset.

Check again carefully my rubular link ;-)

over 1 year ago ·