forked from kaminari/kaminari
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Gemfile
71 lines (62 loc) · 2.36 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
62
63
64
65
66
67
68
69
70
71
# frozen_string_literal: true
source 'https://rubygems.org'
# Specify your gem's dependencies in kaminari.gemspec
gemspec
if ENV['RAILS_VERSION'] == 'edge'
gem 'railties', git: 'https://github.com/rails/rails.git'
gem 'activerecord', git: 'https://github.com/rails/rails.git', require: 'active_record'
gem 'actionview', git: 'https://github.com/rails/rails.git', require: 'action_view'
elsif ENV['RAILS_VERSION'] == '5.2'
gem 'railties', git: 'https://github.com/rails/rails.git', branch: '5-2-stable'
gem 'activerecord', git: 'https://github.com/rails/rails.git', require: 'active_record', branch: '5-2-stable'
gem 'actionview', git: 'https://github.com/rails/rails.git', require: 'action_view', branch: '5-2-stable'
elsif ENV['RAILS_VERSION']
gem 'railties', "~> #{ENV['RAILS_VERSION']}.0"
gem 'activerecord', "~> #{ENV['RAILS_VERSION']}.0", require: 'active_record'
gem 'actionview', "~> #{ENV['RAILS_VERSION']}.0", require: 'action_view'
else
gem 'rails'
end
gem 'rake', RUBY_VERSION < '2.2' ? '< 13' : '>= 0'
gem 'concurrent-ruby', RUBY_VERSION < '2.2' ? '< 1.1.10' : RUBY_VERSION < '2.3' ? '< 1.2' : '>= 1.2'
gem 'mini_portile2', RUBY_VERSION < '2.3' ? '< 2.5.1' : '>= 0'
gem 'loofah', RUBY_VERSION < '2.5' ? '< 2.21.0' : '>= 0'
gem 'i18n', RUBY_VERSION < '2.3' ? '< 1.5.2' : '>= 0'
gem 'selenium-webdriver'
gem 'bigdecimal'
gem 'mutex_m'
rails_version = ENV['RAILS_VERSION'] || '∞'
platforms :ruby do
case ENV['DB']
when 'postgresql'
gem 'pg', rails_version >= '5.1' ? '>= 1.0.0' : '< 1.0.0', require: false
when 'mysql'
gem 'mysql2', rails_version >= '4.2' ? '>= 0.4' : '< 0.4', require: false
when 'sqlite3', nil
if rails_version <= '5.0'
gem 'sqlite3', '< 1.4', require: false
elsif RUBY_VERSION < '2.3'
gem 'sqlite3', '< 1.5', require: false
elsif RUBY_VERSION < '2.5'
gem 'sqlite3', '1.5.1'
elsif (rails_version <= '8') || (RUBY_VERSION < '3')
gem 'sqlite3', '< 2', require: false
else
gem 'sqlite3', require: false
end
else
raise "Unknown DB: #{ENV['DB']}"
end
end
platforms :jruby do
gem 'activerecord-jdbcsqlite3-adapter', require: false
gem 'activerecord-jdbcpostgresql-adapter', require: false
gem 'activerecord-jdbcmysql-adapter', require: false
end
if RUBY_ENGINE == 'rbx'
platforms :rbx do
gem 'rubysl', '~> 2.0'
gem 'racc'
gem 'rubinius-developer_tools'
end
end