Permalink
Fetching contributors…
Cannot retrieve contributors at this time
58 lines (45 sloc) 1.05 KB
source 'https://rubygems.org'
gemspec
version = ENV['AR_VERSION'].to_f
mysql2_version = '0.3.0'
mysql2_version = '0.4.0' if version >= 4.2
group :development, :test do
gem 'rubocop', '~> 0.40.0'
gem 'rake'
end
# Database Adapters
platforms :ruby do
gem "mysql2", "~> #{mysql2_version}"
gem "pg", "~> 0.9"
gem "sqlite3", "~> 1.3.10"
gem "seamless_database_pool", "~> 1.0.20"
end
platforms :jruby do
gem "jdbc-mysql"
gem "jdbc-postgres"
gem "activerecord-jdbcsqlite3-adapter", "~> 1.3"
gem "activerecord-jdbcmysql-adapter", "~> 1.3"
gem "activerecord-jdbcpostgresql-adapter", "~> 1.3"
end
# Support libs
gem "factory_girl", "~> 4.2.0"
gem "timecop"
gem "chronic"
gem "mocha"
# Debugging
platforms :jruby do
gem "ruby-debug", "= 0.10.4"
end
platforms :mri_19 do
gem "debugger"
end
platforms :ruby do
gem "pry-byebug"
gem "rb-readline"
end
if version >= 4.0
gem "minitest"
else
gem "test-unit"
end
eval_gemfile File.expand_path("../gemfiles/#{version}.gemfile", __FILE__)