Ruby Driver
  1. Ruby Driver
  2. RUBY-95

gemspec files not compatible with bundler

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major - P3 Major - P3
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix 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
    • # Replies:
      5
    • Last comment by Customer:
      true

      Description

      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.

        Activity

        Hide
        Kyle Banker
        added a comment -

        Will issue a fix in the next release. In the meantime, I've described a temporary work-around in this document:

        http://www.mongodb.org/display/DOCS/Rails+3+-+Getting+Started

        Let me know if you have any comments on it.

        Show
        Kyle Banker
        added a comment - Will issue a fix in the next release. In the meantime, I've described a temporary work-around in this document: http://www.mongodb.org/display/DOCS/Rails+3+-+Getting+Started Let me know if you have any comments on it.
        Hide
        Kyle Banker
        added a comment -

        Brian,

        I'm no longer seeing this error using Bundler 0.9.7. Can you confirm it's been fixed?

        Kyle

        Show
        Kyle Banker
        added a comment - Brian, I'm no longer seeing this error using Bundler 0.9.7. Can you confirm it's been fixed? Kyle
        Hide
        Kyle Banker
        added a comment -

        Recent versions of bundler don't seem to produce an error.

        Show
        Kyle Banker
        added a comment - Recent versions of bundler don't seem to produce an error.
        Hide
        Adrien
        added a comment -

        Maybe updating Rails 3 - Getting Started page would be great, so

        Show
        Adrien
        added a comment - Maybe updating Rails 3 - Getting Started page would be great, so
        Hide
        Kyle Banker
        added a comment -

        Hi Adrian:

        Just created a ticket for that: will do soon:
        https://jira.mongodb.org/browse/DOCS-202

        Kyle

        Show
        Kyle Banker
        added a comment - Hi Adrian: Just created a ticket for that: will do soon: https://jira.mongodb.org/browse/DOCS-202 Kyle

          People

          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:
              Days since reply:
              1 year, 49 weeks, 1 day ago
              Date of 1st Reply: