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:
Adriano Ferreira wrote:
> $ 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?
> 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.
···
On 4/11/07, Phillip Gawlowski <cmdjackryan@googlemail.com> wrote:
On 4/11/07, Peter Szinek <peter@rubyrailways.com> wrote: