Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to specify that gem is JRuby platform only?

Tags:

ruby

gem

jruby

I am working on a gem which will only work for JRuby platform.

How can I specify that in my .gemspec?

like image 589
Nitish Upreti Avatar asked Sep 21 '13 19:09

Nitish Upreti


1 Answers

You can simply put in gemspec spec.platform = 'java' means it works with JRuby only. to specifically set the platform you can take a look: Ruby gem Specification Reference

like image 54
suvankar Avatar answered Oct 01 '22 12:10

suvankar