Beginners' question: trouble with "gem install ClothRed"

A

Adriano Ferreira

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.
 
P

Phillip Gawlowski

Adriano said:
$ 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?

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.
 
A

Adriano Ferreira

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.
 
P

Phillip Gawlowski

Adriano said:
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.
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,774
Messages
2,569,598
Members
45,151
Latest member
JaclynMarl
Top