-
Notifications
You must be signed in to change notification settings - Fork 18
/
Gemfile
33 lines (28 loc) · 960 Bytes
/
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
# frozen_string_literal: true
source 'https://rubygems.org'
gemspec
ar_branch = ENV.fetch('ACTIVE_RECORD_BRANCH', nil)
ar_version = ENV.fetch('ACTIVE_RECORD_VERSION', nil)
is_jruby = RUBY_PLATFORM == 'java'
if ar_branch
gem 'activerecord', git: 'https://github.com/rails/rails.git', branch: ar_branch
if ar_branch == 'master'
gem 'arel', git: 'https://github.com/rails/arel.git'
gem 'activerecord-jdbcsqlite3-adapter', git: 'https://github.com/jruby/activerecord-jdbc-adapter.git' if is_jruby
end
elsif ar_version
gem 'activerecord', ar_version
if is_jruby && !Gem::Requirement.new(ar_version).satisfied_by?(Gem::Version.new('5.2.0'))
gem 'activerecord-jdbcsqlite3-adapter', git: 'https://github.com/jruby/activerecord-jdbc-adapter.git'
end
end
gem 'bundler'
gem 'minitest'
gem 'rake'
gem 'rspec'
gem 'rubocop'
gem 'rubocop-minitest'
gem 'rubocop-rake'
gem 'rubocop-rspec'
gem 'simplecov'
gem 'sqlite3', '~> 1.6.0' unless is_jruby