Skip to content

Instantly share code, notes, and snippets.

@plentz
Created October 25, 2012 18:42
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save plentz/3954594 to your computer and use it in GitHub Desktop.
Save plentz/3954594 to your computer and use it in GitHub Desktop.
# this don't work (bundler don't support nested platform/grouping https://github.com/carlhuda/bundler/issues/1298)
group :development, :test do
gem 'pg', :platforms => :ruby
gem 'activerecord-jdbcpostgresql-adapter', :platforms => :jruby
end
# you should do something like this
group :development, :test do
gem 'pg' if RUBY_PLATFORM != 'java'
gem 'activerecord-jdbcpostgresql-adapter' if RUBY_PLATFORM == 'java'
end
@tapajos
Copy link

tapajos commented Oct 25, 2012

onde está o seu PR consertando essa parada? :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment