This repository was archived by the owner on Apr 17, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathGemfile
More file actions
47 lines (34 loc) · 1.25 KB
/
Gemfile
File metadata and controls
47 lines (34 loc) · 1.25 KB
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
require 'pathname'
source 'https://rubygems.org'
gemspec
SOURCE = ENV.fetch('SOURCE', :git).to_sym
REPO_POSTFIX = SOURCE == :path ? '' : '.git'
DATAMAPPER = SOURCE == :path ? Pathname(__FILE__).dirname.parent : 'http://github.com/datamapper'
DM_VERSION = '~> 1.3.0.beta'
RAILS_VERSION = [ '>= 3.0', '< 6.0' ]
CURRENT_BRANCH = ENV.fetch('GIT_BRANCH', 'master')
gem 'dm-core', DM_VERSION, SOURCE => "#{DATAMAPPER}/dm-core#{REPO_POSTFIX}", :branch => CURRENT_BRANCH
gem 'activemodel', RAILS_VERSION, :require => nil
group :development do
gem 'dm-validations', DM_VERSION, SOURCE => "#{DATAMAPPER}/dm-validations#{REPO_POSTFIX}", :branch => CURRENT_BRANCH
gem 'jeweler', '~> 1.6.4'
gem 'rake', '~> 0.9.2'
gem 'rspec', '~> 1.3.2'
gem 'test-unit', '= 1.2.3'
end
platforms :mri_18 do
group :quality do
gem 'rcov', '~> 0.9.10'
gem 'yard', '~> 0.7.2'
gem 'yardstick', '~> 0.4'
end
end
group :datamapper do
plugins = ENV['PLUGINS'] || ENV['PLUGIN']
plugins = plugins.to_s.tr(',', ' ').split.uniq
plugins.each do |plugin|
gem plugin, DM_VERSION,
SOURCE => "#{DATAMAPPER}/#{plugin}#{REPO_POSTFIX}",
:branch => CURRENT_BRANCH
end
end