Wirble 0.1.1: Irb Enhancements for the Masses

Hi All,

I just released version 0.1.1 of Wirble. Wirble is a small collection
of enhancements Irb, packaged in an easy-to-use format. Wirble includes
tab-completion, persistent history, built-in ri support, and syntax
highlighting for Irb results. Here’s a screenshot of Wirble in action:

http://pablotron.org/software/wirble/shots/wirble-0.png

All of Wirble’s features are configurable, including the color settings.
Each is documented in glorious technicolor in the README, which is
linked below.

URLs

If you’ve seen most of Wirble before, that’s because, well, you’ve seen
most of Wirble before. Several of the features were collected from the
“Irb Tips and Tricks” page of the Ruby Garden Wiki. My Irb config file
was out of control, so I decided to clean things up and share the
results.

Questions, comments, candy, weapons of mass destruction, etc, are always
appreciated, and can be sent to the email address below.

Hi All,

I just released version 0.1.1 of Wirble. Wirble is a small collection
of enhancements Irb, packaged in an easy-to-use format. Wirble includes
tab-completion, persistent history, built-in ri support, and syntax
highlighting for Irb results. Here’s a screenshot of Wirble in action:

That looks great! :slight_smile: A feature request: Could you syntax highlight the
input lines as well as the output lines?

Cheers,
Benj

unknown wrote:

That looks great! :slight_smile: A feature request: Could you syntax highlight the
input lines as well as the output lines?

Cheers,
Benj

Like, in real time, like an IDE? That’d be awesome.

Eric T. wrote:

-the coloring alters the output line

p “hee”
“hee”
=> �[0;32mnil�[0;0m

Those are ANSI codes. You’ll need to use a console that deals with
them, or load ANSI.SYS.

http://www.windowsnetworking.com/kbase/WindowsTips/Windows2000/UserTips/Miscellaneous/CommandInterpreterAnsiSupport.html

Hi Paul,

I take it that the windows masses are not concerned,…

I have tried wirble on my windows laptop:

-the gem install doesn’t work
-the Object.ri sample brings an exec error

Object.ri ‘object_h’
Errno::ENOEXEC: Exec format error - ri ‘object_h’
from c:/ruby/lib/ruby/site_ruby/1.8/wirble.rb:465:in ``’
from c:/ruby/lib/ruby/site_ruby/1.8/wirble.rb:465:in `ri’
from (irb):1

-the coloring alters the output line

p “hee”
“hee”
=> �[0;32mnil�[0;0m

-The persistent history works! Yes!

I am not used to the internals of the windows console. Do you think it
is possible to have wirble working on both Unix and Windows plateforms?

Thanks,

Eric.


Eric T.
LTG - Product Manager
LEIRIOS
tel: 33(0)6.61.48.57.65/33(0)3.81.88.62.02
e-mail: [email protected]
blog: http://etorreborre.blogspot.com

----- Message d’origine ----
De : Paul D. [email protected]
Ã? : ruby-talk ML [email protected]
Envoyé le : Vendredi, 8 Septembre 2006, 11h22mn 40s
Objet : [ANN] Wirble 0.1.1: Irb Enhancements for the Masses

Hi All,

I just released version 0.1.1 of Wirble. Wirble is a small collection
of enhancements Irb, packaged in an easy-to-use format. Wirble includes
tab-completion, persistent history, built-in ri support, and syntax
highlighting for Irb results. Here’s a screenshot of Wirble in action:

http://pablotron.org/software/wirble/shots/wirble-0.png

All of Wirble’s features are configurable, including the color settings.
Each is documented in glorious technicolor in the README, which is
linked below.

URLs

If you’ve seen most of Wirble before, that’s because, well, you’ve seen
most of Wirble before. Several of the features were collected from the
“Irb Tips and Tricks” page of the Ruby Garden Wiki. My Irb config file
was out of control, so I decided to clean things up and share the
results.

Questions, comments, candy, weapons of mass destruction, etc, are always
appreciated, and can be sent to the email address below.

On 9/8/06, Paul D. [email protected] wrote:

URLs

FYI, the gem file doesn’t seem to exist. I tried both the URL abave
and RubyForge (which is specified n the README in the tarball).


Regards,
John W.
http://johnwilger.com

Le 08 septembre à 15:32, John W. a écrit :

On 9/8/06, Paul D. [email protected] wrote:

URLs

FYI, the gem file doesn’t seem to exist. I tried both the URL abave
and RubyForge (which is specified n the README in the tarball).

I found it there :

http://pablotron.org/files/gems/wirble-0.1.1.gem

Nice little tool, BTW… :wink:

Fred

John W. wrote:

http://pablotron.org/files/gems/wirble-0.1.1.gem

On 9/8/06, Paul D. [email protected] wrote:

URLs

FYI, the gem file doesn’t seem to exist. I tried both the URL abave
and RubyForge (which is specified n the README in the tarball).

That’s what I get for doing a release at 4am :).

All my gems are located at http://pablotron.org/files/gems/. So the
correct URLs for the Wirble gem are:

http://pablotron.org/files/wirble-0.1.1.gem
http://pablotron.org/files/wirble-0.1.1.gem.asc

Thanks for the heads up!

Hi Paul,
When I tried it on Windows XP, I get this wierd error:
I don’t have rubilicious

irb(main):001:0> require ‘rubygems’
=> false
irb(main):002:0> require ‘wirble’
LoadError: no such file to load – rubilicious
from
c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in re quire__' from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:inre
quire’
from c:/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:182:in
activate' from c:/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:181:inactivate’
from
c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:26:in `re
quire’
from (irb):2
irb(main):003:0>


Surendra S.
http://ssinghi.kreeti.com, http://www.kreeti.com
Read my blog at: http://cuttingtheredtape.blogspot.com/
,----
| Great wits are sure to madness near allied,
| And thin partitions do their bounds divide.
|
| (John Dryden, Absalom and Achitophel, 1681)
`----

Hi Paul,
When I tried it on Windows XP, I get this wierd error:
I don’t have rubilicious

Now that is bug is both hilarious and stupid.

I must have used the rubilcious gemspec as a template for the Wirble
gempsec :).

I’ll get that fixed and release a new version, stat.

Paul D. wrote:

On 9/8/06, Paul D. [email protected] wrote:

URLs

FYI, the gem file doesn’t seem to exist. I tried both the URL abave
and RubyForge (which is specified n the README in the tarball).

That’s what I get for doing a release at 4am :).

All my gems are located at http://pablotron.org/files/gems/. So the
correct URLs for the Wirble gem are:

http://pablotron.org/files/wirble-0.1.1.gem
http://pablotron.org/files/wirble-0.1.1.gem.asc

Thanks for the heads up!

Hmm… Maybe it’s not just the 4am thing :wink: Maybe you have a mental
block dealing with gems and urls?

> http://pablotron.org/files/gems/wirble-0.1.1.gem > http://pablotron.org/files/gems/wirble-0.1.1.gem.asc

:wink:

Hi All,

I just released version 0.1.1 of Wirble. Wirble is a small collection
of enhancements Irb, packaged in an easy-to-use format. Wirble includes
tab-completion, persistent history, built-in ri support, and syntax
highlighting for Irb results. Here’s a screenshot of Wirble in action:

That looks great! :slight_smile: A feature request: Could you syntax highlight the
input lines as well as the output lines?

I looked into highlighting the input in Irb, too. It’s a lot more work,
but it might be doable. At a minimum, I’d need to write, borrow, or
steal a full-blown Ruby lexer. I’d probably need a more terminal-
friendly replacement for readlines (probably curses).

Now that I know more people are interested, I’ll have to investigate :).

On Sat, Sep 09, 2006, Paul D. wrote:

All my gems are located at http://pablotron.org/files/gems/. So the
correct URLs for the Wirble gem are:

http://pablotron.org/files/wirble-0.1.1.gem
http://pablotron.org/files/wirble-0.1.1.gem.asc

I think you mean…

http://pablotron.org/files/gems/wirble-0.1.1.gem
http://pablotron.org/files/gems/wirble-0.1.1.gem.asc

:slight_smile:

Ben

Le 08 septembre à 15:32, John W. a écrit :

On 9/8/06, Paul D. [email protected] wrote:
[snipped]

FYI, the gem file doesn’t seem to exist. I tried both the URL abave
and RubyForge (which is specified n the README in the tarball).

I found it there :

http://pablotron.org/files/gems/wirble-0.1.1.gem

Nice little tool, BTW… :wink:

Thanks, I’m glad you like it! :slight_smile:

Hmm… Maybe it’s not just the 4am thing :wink: Maybe you have a mental
block dealing with gems and urls?

I pretty much just have a mental block. I don’t think it’s constrained
to gems or urls, either.

> http://pablotron.org/files/gems/wirble-0.1.1.gem > http://pablotron.org/files/gems/wirble-0.1.1.gem.asc

Here we go:

http://pablotron.org/files/gems/wirble-0.1.1.gem
http://pablotron.org/files/gems/wirble-0.1.1.gem.asc

The only way I got those out was to copy and paste yours :D.

Thanks!

Eric T. wrote:

-the coloring alters the output line

p “hee”
“hee”
=> ???[0;32mnil???[0;0m

Those are ANSI codes. You’ll need to use a console that deals with
them, or load ANSI.SYS.

http://www.windowsnetworking.com/kbase/WindowsTips/Windows2000/UserTips/Miscellaneous/CommandInterpreterAnsiSupport.html

I’ll add this to the documentation for future releases. Thanks!

Hi Paul,

I take it that the windows masses are not concerned,…

Any problems on Windows are a direct result of sloth and incompetence on
my part, rather than intentional malice. I haven’t done much console
development on Windows, and I don’t have easy access to a Windows
machine for testing.

I have tried wirble on my windows laptop:

-the gem install doesn’t work

The URL in the original email was wrong and the gem had an accidental
dependency on Rubilicious. I’ve fixed the latter and regenerated the
former. Here’s the URL:

http://pablotron.org/files/gems/wirble-0.1.2.gem
http://pablotron.org/files/gems/wirble-0.1.2.gem.asc

(Note: This version doesn’t address the two issues you have below)

-the Object.ri sample brings an exec error

Object.ri ‘object_h’
Errno::ENOEXEC: Exec format error - ri ‘object_h’
from c:/ruby/lib/ruby/site_ruby/1.8/wirble.rb:465:in ``’
from c:/ruby/lib/ruby/site_ruby/1.8/wirble.rb:465:in `ri’
from (irb):1

Hi, it should be one of the following forms:

ri ‘Object#object_id’
ri Object.ri ‘object_id’

It should definitely have a more graceful error message. I’ll add that
to my list of stuff to fix.

-the coloring alters the output line

p “hee”
“hee”
=> ???[0;32mnil???[0;0m

-The persistent history works! Yes!

One out of three ain’t bad! :slight_smile:

I am not used to the internals of the windows console. Do you think it
is possible to have wirble working on both Unix and Windows
plateforms?

I’m not familiar with the Windows console either. I’ll follow up on
some of the other URLs in this thread and see what I can find out.

Hi Paul,
When I tried it on Windows XP, I get this wierd error:
I don’t have rubilicious

I’ve fixed this bug and packaged up an 0.1.2.

Here’s the URL(s):

http://pablotron.org/files/wirble-0.1.2.tar.gz
http://pablotron.org/files/wirble-0.1.2.tar.gz.asc
http://pablotron.org/files/gems/wirble-0.1.2.gem
http://pablotron.org/files/gems/wirble-0.1.2.gem.asc

All I did was remove the accidental rubilicious depencency and
regenerate the gem.

By the way, some other people have had problems with the color codes
under Windows, so I make no promises about how well that will work for
you :).

Hi Paul,

Hi, it should be one of the following forms:

ri ‘Object#object_id’
ri Object.ri ‘object_id’

Unfortunately, I still get the same error message with those 2 lines.
Any idea?


Eric T.
LTG - Product Manager
LEIRIOS
tel: 33(0)6.61.48.57.65/33(0)3.81.88.62.02
e-mail: [email protected]
blog: http://etorreborre.blogspot.com

----- Message d’origine ----
De : Paul D. [email protected]
Ã? : ruby-talk ML [email protected]
Envoyé le : Vendredi, 8 Septembre 2006, 8h00mn 51s
Objet : Re: Re : [ANN] Wirble 0.1.1: Irb Enhancements for the Masses

Hi Paul,

I take it that the windows masses are not concerned,…

Any problems on Windows are a direct result of sloth and incompetence on
my part, rather than intentional malice. I haven’t done much console
development on Windows, and I don’t have easy access to a Windows
machine for testing.

I have tried wirble on my windows laptop:

-the gem install doesn’t work

The URL in the original email was wrong and the gem had an accidental
dependency on Rubilicious. I’ve fixed the latter and regenerated the
former. Here’s the URL:

http://pablotron.org/files/gems/wirble-0.1.2.gem
http://pablotron.org/files/gems/wirble-0.1.2.gem.asc

(Note: This version doesn’t address the two issues you have below)

-the Object.ri sample brings an exec error

Object.ri ‘object_h’
Errno::ENOEXEC: Exec format error - ri ‘object_h’
from c:/ruby/lib/ruby/site_ruby/1.8/wirble.rb:465:in ``’
from c:/ruby/lib/ruby/site_ruby/1.8/wirble.rb:465:in `ri’
from (irb):1

Hi, it should be one of the following forms:

ri ‘Object#object_id’
ri Object.ri ‘object_id’

It should definitely have a more graceful error message. I’ll add that
to my list of stuff to fix.

-the coloring alters the output line

p “hee”
“hee”
=> ???[0;32mnil???[0;0m

-The persistent history works! Yes!

One out of three ain’t bad! :slight_smile:

I am not used to the internals of the windows console. Do you think it
is possible to have wirble working on both Unix and Windows
plateforms?

I’m not familiar with the Windows console either. I’ll follow up on
some of the other URLs in this thread and see what I can find out.