How do you specify a minimum Ruby version in a gemspec?

后端 未结 2 853
既然无缘
既然无缘 2021-02-11 11:43

I\'m writing a gemspec for a new version of a gem that will now require Ruby 1.9. Previous versions of the gem were ok with Ruby 1.8, but now 1.9 will be required. Is there a wa

2条回答
  •  北荒
    北荒 (楼主)
    2021-02-11 12:32

    gem.required_ruby_version = '1.9.2'
    

    Should solve your problem :-)

提交回复
热议问题