Skip to content

Instantly share code, notes, and snippets.

@tulios
Created February 3, 2016 17:11
Show Gist options
  • Save tulios/48b274fff09bbac70525 to your computer and use it in GitHub Desktop.
Save tulios/48b274fff09bbac70525 to your computer and use it in GitHub Desktop.
# ...
Gem::Specification.new do |spec|
# ...
if RUBY_PLATFORM =~ /java/
spec.platform = 'java'
spec.add_dependency 'activerecord-jdbcpostgresql-adapter'
else
spec.add_dependency 'pg'
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment