Skip to content

Rails 3 bundler #8

@sudara

Description

@sudara

If there's an earlier version of active record in system gems, it seems that this gets required by reportable, causing this error:

sudara@ramen:/data/app/current$ bundle exec rails c
No compatible versions could be found for required dependencies:
  Conflict on: "activerecord":
  * activerecord (2.3.4) activated by reportable (>= 0, runtime)
  * activerecord (= 3.0.0.beta4, runtime) required by rails (>= 0, runtime)
  All possible versions of origin requirements conflict.

My temporary solution is to require the libs explicitly for rails:

gem 'activerecord',  '3.0.0.beta4', :require => 'active_record'
gem 'activesupport', '3.0.0.beta4', :require => 'active_support'
gem 'actionpack',    '3.0.0.beta4', :require => 'action_pack'

This is an issue with bundler 0.9.x and rails 3 beta4 - but strangely, only in production. Still need to test with bundler 1.0.x - perhaps it's a bundle issue that's been fixed.

Still, if rails is being required by reportable's Gemfile, is there a reason the other libs have to be required here too?

Thanks for the cool gem :) I built a barchart helper for raphaël, let me know if you guys would be interested in it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions