Forum: Ruby RbFind 1.1

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.
Bertram S. (Guest)
on 2008-12-19 01:15
(Received via mailing list)
Hi,

yet another find tool: <http://raa.ruby-lang.org/project/rbfind>.
Hope you enjoy it. Seek and ye shall find.

Bertram
Roger P. (Guest)
on 2008-12-22 10:51
wow looks cool.

c:\dev>gem install rbfind
ERROR:  could not find gem rbfind locally or in a repository

c:\dev>
Bertram S. (Guest)
on 2008-12-22 14:15
(Received via mailing list)
Hi Roger,

Am Montag, 22. Dez 2008, 17:42:52 +0900 schrieb Roger P.:
> c:\dev>gem install rbfind
> ERROR:  could not find gem rbfind locally or in a repository

Did you specify the source I provide?

  c:\> gem sources
  c:\> gem install --source http://gems.bertram-scharpf.de rbfind

Bertram
Roger P. (Guest)
on 2008-12-22 16:08
> Did you specify the source I provide?
>
>   c:\> gem sources
>   c:\> gem install --source http://gems.bertram-scharpf.de rbfind

Well I was mostly teasing you for not having deployed it in a way to
make it standard and easy to install :)

Some notes:
within the --help output might be nice to have more examples, like how
to actually use the output block.

Colors don't work on windows currently [have to use win32::console or
wirble to colorize on windoze].

The main link given is off [has extra > ?].

A list in the README/docs of the available variables would be nice.

Is there the equivalent of a find --iname feature?
here's my one attempt

C:\>rbfind -d *.rb
c:/ruby18/lib/ruby/gems/1.8/gems/rbfind-1.1/bin/rbfind:281: (eval):1:
compile error (SyntaxError)
(eval):1: syntax error, unexpected '.', expecting '='
        from
c:/ruby18/lib/ruby/gems/1.8/gems/rbfind-1.1/lib/rbfind.rb:540:in `call'
        from
c:/ruby18/lib/ruby/gems/1.8/gems/rbfind-1.1/lib/rbfind.rb:540:in
`do_level_depth'
        from c:/ruby18/lib/ru

Anyway looks good and thanks.
-=r
Bertram S. (Guest)
on 2008-12-23 00:15
(Received via mailing list)
Hi,

Am Montag, 22. Dez 2008, 23:00:27 +0900 schrieb Roger P.:
> >
> >   c:\> gem install --source http://gems.bertram-scharpf.de rbfind
>
> Colors don't work on windows currently [have to use win32::console or
> wirble to colorize on windoze].
>
> Is there the equivalent of a find --iname feature?

Oops, I totally forgot considering about Windows. Here are two
workarounds for the -iname feature:

  > rbfind -pD '(?i:re)'
  > rbfind -p 'name =~/re/i'

In Version 1.1.1 (now available), the -D option will be case
insensitive by default for DOSish platforms. Use the workarounds
the other way round if this behaviour is not intended.

Color support is turned off on Windows now by default. Use the -c
switch to force it on.

Sorry, but I cannot test the features as I have no Windows running
here...

Bertram
This topic is locked and can not be replied to.