Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

30 lines (22 sloc) 0.644 kb
source 'https://rubygems.org/'
DM_URI = 'http://github.com/datamapper'
DM_VERSION = '~> 1.0'
def dm_gem(name)
options = {}
if ENV['DM_ROOT'] then options[:path] = "#{ENV['DM_ROOT']}/#{name}"
elsif ENV['DM_EDGE'] then options[:git] = "#{DM_URI}/#{name}.git"
end
gem name, DM_VERSION, options
end
dm_gem 'dm-do-adapter'
case ENV['ADAPTER']
when /mysql/i then dm_gem 'dm-mysql-adapter'
when /postgre/i then dm_gem 'dm-postgres-adapter'
else dm_gem 'dm-sqlite-adapter'
end
dm_gem 'dm-core'
dm_gem 'dm-migrations'
dm_gem 'dm-validations'
#dm_gem 'dm-types'
#dm_gem 'dm-constraints'
#dm_gem 'dm-aggregates'
Jump to Line
Something went wrong with that request. Please try again.