Forum: JRuby dealing with .ruby-version file

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
C0cb3aadb9a66d00df16686f4a1fc312?d=identicon&s=25 Tim Uckun (Guest)
on 2015-02-11 13:58
(Received via mailing list)
I have a project which I want to test with jruby.  I created a jruby
of the project and started hacking away the gemfile and other stuff but
course changing the .ruby-version file always causes a conflict with the
master branch.

I am wondering if anybody has a cool trick to set up the .ruby-version
based on the git branch or something like that.
2b2507f727d700eb59819b3a2e0c4a24?d=identicon&s=25 Chris Seaton (Guest)
on 2015-02-11 14:53
(Received via mailing list)
It shouldn’t cause a conflict unless you keep changing the version on
master. If you create a new branch, edit .ruby-version, and then keep
merging from master where .ruby-version has not been modified, then git
should not see any conflicts.

When you do change the Ruby version on master, which I guess is once
every few months, you then have a one-line conflict which you can easy

This topic is locked and can not be replied to.