-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[question] Can I install JRuby/CRuby specific gem with add_dependency? #1492
Comments
This is currently a limitation of RubyGems -- if you want platform-specific dependencies, you will have to release platform-specific versions of your own gem |
@segiddins Thanks. I understand. Please tell me one more thing.
Thanks. |
@hiroyuki-sato the easiest way, you would have 2
The two gemspecs would be virtually identical except in the ruby one would have:
and the jruby one would have
|
@chancancode Thank you for your advice. I created two gem files. |
Hello
Is it possible to write gemspec like the following.
The develop wrote following code, But I got following error on JRuby platform.
It install Oj gem.
https://github.com/sisimai/rb-Sisimai
gemspec file.
Current workaround, write Gemfile the following.
It worked but, does not install 'oj' or 'jrjackson' gem.
Gem version is 2.5.2.
Any idea?
The text was updated successfully, but these errors were encountered: