How do I add conditional rubygem requirements to a gem specification?

后端 未结 7 798
伪装坚强ぢ
伪装坚强ぢ 2021-01-06 03:00

Is it possible to add a gem dependency only if the person is using a certain version of ruby?

Background: I\'m working on a fork of a project that u

7条回答
  •  甜味超标
    2021-01-06 03:19

    Checkout this tutorial in the Ruby Programming wikibook.

    Tt shows how to install different versions of dependencies depending on what version of ruby the installee is using.

    (short answer--it ain't as easy as it should be)

提交回复
热议问题