Can't list older gems

Sylvain Joyeux's Avatar

Sylvain Joyeux

01 Feb, 2011 11:36 AM

I'm the developer of a "meta-build-system", autoproj. At some point, it tries to fetch the available versions of a gem to check if it should be updated. However, only returns the latest gem and not the older ones, i.e. if I give a version spec, GemFetcher will tell me that no version is available, and autoproj will return an error.

I'll add a workaround for that in autoproj, but shouldn't list all the available gems

  1. Support Staff 1 Posted by Eric Hodel on 01 Feb, 2011 09:46 PM

    Eric Hodel's Avatar

    I can't reproduce, can you show any code?

    $ gem list -ra rake$
    *** REMOTE GEMS ***
    rake (0.8.7, 0.8.6, 0.8.5, 0.8.4, 0.8.3, 0.8.2, 0.8.1, 0.8.0, 0.7.3, 0.7.2, 0.7.1, 0.7.0, 0.6.2, 0.6.0, 0.5.4, 0.5.3, 0.5.0, 0.4.15, 0.4.14, 0.4.13, 0.4.12, 0.4.11, 0.4.10, 0.4.9, 0.4.8)
  2. 2 Posted by Sylvain Joyeux on 02 Feb, 2011 10:39 AM

    Sylvain Joyeux's Avatar

    No content.

  3. 3 Posted by Sylvain Joyeux on 02 Feb, 2011 02:08 PM

    Sylvain Joyeux's Avatar

    Mm... replied by email but it did not end up there ...

    From your answer, I could find what I was doing wrong.

    The issue (and I don't know if it is a bug, a known limitation or a feature) is that SpecFetcher#find_matching, when 'all' is set to false, will return an empty set when given constraints that do not match the newest gem, even though there are gems that match the constraint.

    I.e., in the general case, if you give constraints, also set 'all' to true.

    I was not expecting that, but I guess it can be seen as an acceptable limitation of #find_matching

  4. Support Staff 4 Posted by Nick Quaranto on 27 May, 2011 12:26 AM

    Nick Quaranto's Avatar

    Is this still happening? Not seeing this. Let us know and reopen this ticket if so!

  5. Nick Quaranto closed this discussion on 27 May, 2011 12:26 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac