How to make JRuby 1.6 default to Ruby 1.9?

前端 未结 6 1783
北海茫月
北海茫月 2020-12-02 05:26

what is the best way to make JRuby to run in 1.9 mode by default?

i.e, I want to run rake test instead of jruby --1.9 -S rake test

<
6条回答
  •  一整个雨季
    2020-12-02 05:54

    An alternative solution is to put the following line (and other settings) in your ~/.jrubyrc file

    compat.version=1.9
    

提交回复
热议问题