Skip to content

Instantly share code, notes, and snippets.

@marhan
Created January 12, 2011 07:47
Show Gist options
  • Save marhan/775831 to your computer and use it in GitHub Desktop.
Save marhan/775831 to your computer and use it in GitHub Desktop.
Switch for sqlite3 with jruby
# JRUBY_VERSION has to be set as Shell variable.
if defined?(JRUBY_VERSION)
gem 'jdbc-sqlite3'
gem 'activerecord-jdbc-adapter'
gem 'activerecord-jdbcsqlite3-adapter'
gem 'jruby-openssl'
gem 'jruby-rack'
gem 'warbler'
else
gem 'sqlite3-ruby', :require => 'sqlite3'
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment