forked from activerecord-hackery/squeel
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Gemfile
39 lines (32 loc) · 873 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
34
35
36
37
source "http://rubygems.org"
gemspec
gem 'rake'
rails = ENV['RAILS'] || '4-2-stable'
arel = ENV['AREL'] || '6-0-stable'
arel_opts = case arel
when /\// # A path
{:path => arel}
when /^v/ # A tagged version
{:git => 'git://github.com/rails/arel.git', :tag => arel}
else
{:git => 'git://github.com/rails/arel.git', :branch => arel}
end
gem 'arel', arel_opts
case rails
when /\// # A path
gem 'activesupport', :path => "#{rails}/activesupport"
gem 'activemodel', :path => "#{rails}/activemodel"
gem 'activerecord', :path => "#{rails}/activerecord"
when /^v/ # A tagged version
git 'git://github.com/rails/rails.git', :tag => rails do
gem 'activesupport'
gem 'activemodel'
gem 'activerecord'
end
else
git 'git://github.com/rails/rails.git', :branch => rails do
gem 'activesupport'
gem 'activemodel'
gem 'activerecord'
end
end