forked from zdennis/activerecord-import
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Gemfile
61 lines (49 loc) · 1.33 KB
/
Gemfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# frozen_string_literal: true
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
mysql2_version = '0.5.0' if version >= 6.1
sqlite3_version = '1.3.0'
sqlite3_version = '1.4.0' if version >= 6.0
pg_version = '0.9'
pg_version = '1.1' if version >= 6.1
group :development, :test do
gem 'rubocop', '~> 0.71.0'
gem 'rake'
end
# Database Adapters
platforms :ruby do
gem "mysql2", "~> #{mysql2_version}"
gem "pg", "~> #{pg_version}"
gem "sqlite3", "~> #{sqlite3_version}"
# seamless_database_pool requires Ruby ~> 2.0
gem "seamless_database_pool", "~> 1.0.20" if Gem::Version.new(RUBY_VERSION) < Gem::Version.new('3.0.0')
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_bot"
gem "timecop"
gem "chronic"
gem "mocha", "~> 1.3.0"
# Debugging
platforms :jruby do
gem "ruby-debug", "= 0.10.4"
end
platforms :ruby do
gem "pry-byebug"
gem "pry", "~> 0.12.0"
end
if version >= 4.0
gem "minitest"
else
gem "test-unit"
end
eval_gemfile File.expand_path("../gemfiles/#{version}.gemfile", __FILE__)