Uploaded image for project: 'Ruby Driver'
  1. Ruby Driver
  2. RUBY-95

gemspec files not compatible with bundler

    • Type: Icon: Bug Bug
    • Resolution: Won't Fix
    • Priority: Icon: Major - P3 Major - P3
    • 12_01_17
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:
      MacOS 10.6, REE 1.8.7, rubygems 1.3.5, bundler 0.9.3, mongo 0.18.2

      When trying to start up a newly created Rails 3 (beta) application, I get an error with the mongo gem loaded on the system.

      It appears the bundler gem is scanning the *.gemspec files in the system gems and evaluating the Gem::Specification therein. When it gets to mongo and mongo_ext there is code that assumes mongo is is in the load path (requre 'lib/mongo') and how the file is being loaded (VERSION_HEADER = File.open(File.join(File.dirname(_FILE_), 'ext', 'cbson', 'version.h'), "r")).

      I don't think this necessarily goes against Gem specification, but mongo is the only gem that I have seen that programatically specifies attributes in the gemspec versus having them generated via a rake task.

            Assignee:
            kbanker Kyle Banker
            Reporter:
            bdurand Brian Durand
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: