How can I conditionally choose which gem to use based on the Ruby VM currently in use?
Ideally I would like something like:
if [using jruby]
gem 'jruby-openssl'
This would only require the jruby-openssl if the RVM being used is JRuby.
Use the following in your Gemfile, as documented here: https://github.com/jruby/activerecord-jdbc-adapter
platforms :ruby do
gem 'sqlite3'
end
platforms :jruby do
gem 'jruby-openssl'
gem 'activerecord-jdbcsqlite3-adapter'
end
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With