Forum: Ruby Beginners' question: trouble with "gem install ClothRed"

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
9a1a4c7f4da6961ef3f6503d7ff33a53?d=identicon&s=25 Adriano Ferreira (Guest)
on 2007-04-11 14:47
(Received via mailing list)
Hi.

I tried to experiment with ClothRed, but as I am very new to Ruby and
gems, I am having some trouble getting it right.

First, I am using Ruby on Cygwin. I installed gems by downloading the
tarball and executing "setup.rb". That seemed to worked alright.

Then I tried
$ gem install ClothRed

and I discovered I was missing the network configuration, because I am
behind an authenticating proxy. So I wrote .gemrc into my home
directory. Like this:

# ~/.gemrc

gem: --http-proxy http://username:password@squid-proxy:3128/

and then I did

$ gem install ClothRed
Successfully installed ClothRed, version 0.1.0
Installing ri documentation for ClothRed-0.1.0...
File not found: lib

But

$ irb
irb(main):001:0> require "ClothRed"
LoadError: no such file to load -- ClothRed
        from (irb):1:in `require'
        from (irb):1

Any advice? What I am doing wrong?

Best regards,
Adriano Ferreira.
F50f5d582d76f98686da34917531fe56?d=identicon&s=25 Peter Szinek (Guest)
on 2007-04-11 14:58
(Received via mailing list)
> Any advice? What I am doing wrong?

try to require 'rubygems' first.

HTH,
Peter


http://www.rubyrailways.com :: Ruby and Web2.0 blog
http://scrubyt.org :: Ruby web scraping framework
http://rubykitchensink.ca/ :: The indexed archive of all things Ruby
Ac0085dae0703db56ad7f8cb9e1798ba?d=identicon&s=25 Phillip Gawlowski (Guest)
on 2007-04-11 15:03
(Received via mailing list)
Adriano Ferreira wrote:
>        from (irb):1:in `require'
>        from (irb):1
>
> Any advice? What I am doing wrong?

The problem is with the gem. Gonna fix it now.

Oh, and ClothRed won't be too useful for you, currently ;)

--
Phillip "CynicalRyan" Gawlowski
http://cynicalryan.110mb.com/

Rule of Open-Source Programming #37:

Duplicate effort is inevitable. Live with it.
9a1a4c7f4da6961ef3f6503d7ff33a53?d=identicon&s=25 Adriano Ferreira (Guest)
on 2007-04-11 15:11
(Received via mailing list)
On 4/11/07, Phillip Gawlowski <cmdjackryan@googlemail.com> wrote:
> > LoadError: no such file to load -- ClothRed
> >        from (irb):1:in `require'
> >        from (irb):1
> >
> > Any advice? What I am doing wrong?

On 4/11/07, Peter Szinek <peter@rubyrailways.com> wrote:
> > Any advice? What I am doing wrong?
>
> try to require 'rubygems' first.
>

I tried after thinking for a while.

$ irb
irb(main):001:0> require 'rubygems'
=> true
irb(main):002:0> require 'clothred'
LoadError: no such file to load -- clothred
        from
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
`gem_original_require'
        from
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
`require'
        from (irb):2

>
> The problem is with the gem. Gonna fix it now.

Ok. Thanks.

> Oh, and ClothRed won't be too useful for you, currently ;)

That's fine. I like the idea of converting HTML to Textile and would
like to see this library growing up.

Cheers,
Adriano.
Ac0085dae0703db56ad7f8cb9e1798ba?d=identicon&s=25 Phillip Gawlowski (Guest)
on 2007-04-11 15:41
(Received via mailing list)
Adriano Ferreira wrote:

>> Oh, and ClothRed won't be too useful for you, currently ;)
>
> That's fine. I like the idea of converting HTML to Textile and would
> like to see this library growing up.

I'd appreciate any feedback, really.

A new .gem has been uploaded to rubyforge.

--
Phillip "CynicalRyan" Gawlowski
http://cynicalryan.110mb.com/

Rule of Open-Source Programming #1:

Don't whine unless you are going to implement it yourself.
This topic is locked and can not be replied to.