Rather than seeing if the line contains the name this checks if the whole line matches. This can also avoid problems where ruby-x.y.1 could match ruby-x.y.10.
Looks like this breaks idempotency when you specify just jruby (as our tests do), which previously worked. So for now I'm not going to pursue this further.
Rather than seeing if the line contains the name this checks if the whole line matches. This can also avoid problems where ruby-x.y.1 could match ruby-x.y.10.
Replacement for https://github.com/voxpupuli/puppet-rvm/pull/124. I'm relying on CI to tell me if this is a good change.