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).
Written by Guillaume Hain
Related protips
4 Responses

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
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Regex
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#