#1254 ✓resolved
Postmodern

Gemfiles are too aggressive with their adapter dependencies.

Reported by Postmodern | April 21st, 2010 @ 02:43 AM | in 1.0.0

The standard DataMapper Gemfile lists all of the adapters as dependencies. This is problematic, as most of these adapters require header files and libraries to be installed in order to compile various C extensions. If the extensions cannot be compiled it will likely prevent bundler from completing successfully, or will prevent the libraries from being loaded.

Perhaps we could take the same approach as with the default spec/spec_helper.rb, and pass an ADAPTERS environment variable into the Gemfile:

group :test_adapters do
  if ENV['ADAPTERS']
    adapters = ENV['ADAPTERS'].split(/\s+/).map { |name|
      name.downcase
    }.uniq

    adapters.each do |name|
      gem "dm-adapter-#{name}",   '~> 0.10.3', :git => "#{datamapper}/dm-adapter-#{name}.git"
    end
  end
end

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

Tags

Pages