forked from radar/by_star
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Gemfile
25 lines (19 loc) · 609 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
source 'http://rubygems.org'
# Specify your gem's dependencies in by_star.gemspec
gemspec
active_record_version = ENV['ACTIVE_RECORD_VERSION'] || 'default'
active_record_opts =
case active_record_version
when 'master' then {github: 'rails/rails'}
when 'default' then '~> 3.0'
else "~> #{active_record_version}"
end
mongoid_version = ENV['MONGOID_VERSION'] || 'default'
mongoid_opts =
case mongoid_version
when 'master' then {github: 'mongoid/mongoid'}
when 'default' then '~> 3.0'
else "~> #{mongoid_version}"
end
gem 'activerecord', active_record_opts
gem 'mongoid', mongoid_opts