madeleine gem problem (or rubygem one)

Discussion in 'Ruby' started by gabriele renzi, May 4, 2004.

  1. Hi gurus and nubys,

    I believe I spotted a bug in rubygems or in the packaged gem for
    madeleine. I got this:

    C:\Documents and Settings\gabriele>gem --rubygems-info
    RubyGems:
    - VERSION: 1.0
    - INSTALLATION DIRECTORY: c:/programmi/ruby/lib/ruby/gems/1.8
    - GEM PATH:
    - c:/programmi/ruby/lib/ruby/gems/1.8
    - REMOTE SOURCES:
    - http://gems.rubyforge.org

    C:\Documents and Settings\gabriele>irb -r rubygems
    irb(main):001:0> require_gem 'madeleine'
    => true
    irb(main):002:0> require_gem 'madeleine/clock'
    LoadError:
    Could not find RubyGem madeleine/clock (> 0.0.0)

    from
    c:/Programmi/Ruby/lib/ruby/site_ruby/1.8/rubygems.rb:25:in `require
    _gem'
    from (irb):2
    irb(main):003:0>

    running pragprog installer on windows xp:
    C:\Documents and Settings\gabriele>ruby -v
    ruby 1.8.1 (2003-12-25) [i386-mswin32]
     
    gabriele renzi, May 4, 2004
    #1
    1. Advertising

  2. gabriele renzi

    Jamis Buck Guest

    gabriele renzi wrote:

    > C:\Documents and Settings\gabriele>irb -r rubygems
    > irb(main):001:0> require_gem 'madeleine'
    > => true
    > irb(main):002:0> require_gem 'madeleine/clock'
    > LoadError:
    > Could not find RubyGem madeleine/clock (> 0.0.0)
    >
    > from
    > c:/Programmi/Ruby/lib/ruby/site_ruby/1.8/rubygems.rb:25:in `require
    > _gem'
    > from (irb):2
    > irb(main):003:0>
    >


    Once you've required the gem, you don't need to use "require_gem"
    anymore. Just use "require":

    require_gem 'madeleine'
    require 'madeleine/clock'

    It's dying because it can't find a gem called "madeleine/clock', and
    indeed there is no such thing.

    --
    Jamis Buck

    http://www.jamisbuck.org/jamis

    ruby -h | ruby -e
    'a=[];readlines.join.scan(/-(.)\[e|Kk(\S*)|le.l(..)e|#!(\S*)/) {|r| a <<
    r.compact.first };puts "\n>#{a.join(%q/ /)}<\n\n"'
     
    Jamis Buck, May 4, 2004
    #2
    1. Advertising

  3. il Wed, 5 May 2004 02:29:34 +0900, Jamis Buck <> ha
    scritto::


    >
    >Once you've required the gem, you don't need to use "require_gem"
    >anymore. Just use "require":
    >
    > require_gem 'madeleine'
    > require 'madeleine/clock'
    >
    >It's dying because it can't find a gem called "madeleine/clock', and
    >indeed there is no such thing.


    wow, never understood this :) thanks for pointing out
     
    gabriele renzi, May 4, 2004
    #3
  4. On Wednesday, May 5, 2004, 3:48:56 AM, gabriele wrote:

    > il Wed, 5 May 2004 02:29:34 +0900, Jamis Buck <> ha
    > scritto::



    >>
    >>Once you've required the gem, you don't need to use "require_gem"
    >>anymore. Just use "require":
    >>
    >> require_gem 'madeleine'
    >> require 'madeleine/clock'
    >>
    >>It's dying because it can't find a gem called "madeleine/clock', and
    >>indeed there is no such thing.


    > wow, never understood this :) thanks for pointing out


    Any idea why you didn't understand this? Do the docs need to be more
    explicit?

    Cheers,
    Gavin
     
    Gavin Sinclair, May 4, 2004
    #4
  5. il Wed, 5 May 2004 06:33:19 +0900, Gavin Sinclair
    <> ha scritto::


    >> wow, never understood this :) thanks for pointing out

    >
    >Any idea why you didn't understand this? Do the docs need to be more
    >explicit?


    well, I'd say so.
    looking at:
    http://rubygems.rubyforge.org/wiki/wiki.pl?UserGuide
    it should be stated something like
    'once you did require_gem(libby) you basically added the 'libby' gem
    to $LOAD_PATH, and can then handle it with normal requires'.

    Note that I don't think what I wrote is correct, so I'm not going to
    update the wiki myself :)
     
    gabriele renzi, May 4, 2004
    #5
  6. On Wednesday, May 5, 2004, 8:33:58 AM, gabriele wrote:

    >>Any idea why you didn't understand this? Do the docs need to be more
    >>explicit?


    > well, I'd say so.
    > looking at:
    > http://rubygems.rubyforge.org/wiki/wiki.pl?UserGuide
    > it should be stated something like
    > 'once you did require_gem(libby) you basically added the 'libby' gem
    > to $LOAD_PATH, and can then handle it with normal requires'.


    I added a note to this effect. Thanks!

    Gavin
     
    Gavin Sinclair, May 5, 2004
    #6
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Anders Bengtsson

    [ANN] Madeleine 0.4

    Anders Bengtsson, Jul 4, 2003, in forum: Ruby
    Replies:
    0
    Views:
    93
    Anders Bengtsson
    Jul 4, 2003
  2. Jeremy Lecour
    Replies:
    15
    Views:
    206
    Jeremy Lecour
    Feb 8, 2007
  3. Jp Jp
    Replies:
    4
    Views:
    138
    Jp Jp
    Dec 28, 2007
  4. Daniel Berger
    Replies:
    4
    Views:
    191
    Daniel Berger
    Oct 29, 2008
  5. Aaron Smith
    Replies:
    10
    Views:
    291
    Andrew Goodnough
    Jan 16, 2009
Loading...

Share This Page