[ANN] Why's (Poignant) Guide to Ruby: Expansion Pak I: The Tiger'sVest (with a Basic Introduction to

  • Thread starter why the lucky stiff
  • Start date
W

why the lucky stiff

Yes, I've been taking forever. Well, what can I say? Answering threats
is quite consuming. (But apologies to those of you whose threats have
been too jarring for me to reply or breathe.)

Today I'm passing on to you the first fruits of a big batch of material
forthcoming. The Tiger's Vest (with a Basic Introduction to Irb.)

http://poignantguide.net/ruby/expansion-pak-1.html

Stick around. Picture a man with a balloon, pinching the air out
slowly, cats tied to his leg. If you can do that, then you're all
prepped for chapter 5.

Thank you, -talkers.

_why
 
M

Mikael Brockman

why the lucky stiff said:
Yes, I've been taking forever. Well, what can I say? Answering
threats is quite consuming. (But apologies to those of you whose
threats have been too jarring for me to reply or breathe.)

Today I'm passing on to you the first fruits of a big batch of
material forthcoming. The Tiger's Vest (with a Basic Introduction to
Irb.)

http://poignantguide.net/ruby/expansion-pak-1.html

Stick around. Picture a man with a balloon, pinching the air out
slowly, cats tied to his leg. If you can do that, then you're all
prepped for chapter 5.

Thank you, -talkers.

_why

Please don't ever seek professional psychiatric help.

mikael
 
M

Michael Neumann

why said:
Yes, I've been taking forever. Well, what can I say? Answering threats
is quite consuming. (But apologies to those of you whose threats have
been too jarring for me to reply or breathe.)

Today I'm passing on to you the first fruits of a big batch of material
forthcoming. The Tiger's Vest (with a Basic Introduction to Irb.)

http://poignantguide.net/ruby/expansion-pak-1.html


The sidebar about Ruby versions... does this still apply? I've heard,
that there will be a 1.9 stable version before 2.0?

Regards,

Michael
 
R

Raphael Bauduin

why said:
Yes, I've been taking forever. Well, what can I say? Answering threats
is quite consuming. (But apologies to those of you whose threats have
been too jarring for me to reply or breathe.)

Today I'm passing on to you the first fruits of a big batch of material
forthcoming. The Tiger's Vest (with a Basic Introduction to Irb.)

http://poignantguide.net/ruby/expansion-pak-1.html

Stick around. Picture a man with a balloon, pinching the air out
slowly, cats tied to his leg. If you can do that, then you're all
prepped for chapter 5.

Thank you, -talkers.

_why

Using Debian unstable, irb1.8, I had to issue

require 'irb/completion'
conf.use_readline = true

to get completion.

I have added this in my ~/.irbrc to get it automatically loaded:

require 'irb/completion'
IRB.conf[:use_readline] = true


Raph
 
C

Curt Hibbs

Raphael said:
Yes, I've been taking forever. Well, what can I say? Answering threats
is quite consuming. (But apologies to those of you whose threats have
been too jarring for me to reply or breathe.)

Today I'm passing on to you the first fruits of a big batch of material
forthcoming. The Tiger's Vest (with a Basic Introduction to Irb.)

http://poignantguide.net/ruby/expansion-pak-1.html

Using Debian unstable, irb1.8, I had to issue

require 'irb/completion'
conf.use_readline = true

to get completion.

I have added this in my ~/.irbrc to get it automatically loaded:

require 'irb/completion'
IRB.conf[:use_readline] = true

This reminds me that I want to fix the fact that tab-completion does not
work in irb in the one-click installer -- I never knew why and I kept
forgetting to ask.

I tried why's suggestion for getting it to work under windows (pretty much
the same as Raphael's above), but it doesn't work. Below is my console log.
Does anyone know what is wrong? Am I building the ruby for the one-click
installer incorrectly?

Thanks, in advance, for any help (console log below).

Curt

=== BEGIN-LOG ===

Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\hibbs_c>irb
irb(main):001:0> require 'irb/completion'
LoadError: No such file to load -- readline
from c:/ruby/lib/ruby/1.8/irb/completion.rb:10:in `require'
from c:/ruby/lib/ruby/1.8/irb/completion.rb:10
from (irb):2:in `require'
from (irb):2:in `irb_binding'
from c:/ruby/lib/ruby/1.8/irb/workspace.rb:52:in `irb_binding'
from c:/ruby/lib/ruby/1.8/irb/workspace.rb:52
Maybe IRB bug!!
irb(main):002:0> puts $LOAD_PATH
c:/ruby/lib/ruby/site_ruby/1.8
c:/ruby/lib/ruby/site_ruby/1.8/i386-msvcrt
c:/ruby/lib/ruby/site_ruby
c:/ruby/lib/ruby/1.8
c:/ruby/lib/ruby/1.8/i386-mswin32
 
G

gabriele renzi

il Wed, 28 Jul 2004 21:43:38 +0900, "Curt Hibbs" <[email protected]> ha
scritto::

This reminds me that I want to fix the fact that tab-completion does not
work in irb in the one-click installer -- I never knew why and I kept
forgetting to ask.

I tried why's suggestion for getting it to work under windows (pretty much
the same as Raphael's above), but it doesn't work. Below is my console log.
Does anyone know what is wrong? Am I building the ruby for the one-click
installer incorrectly?

Thanks, in advance, for any help (console log below).

Curt

=== BEGIN-LOG ===

Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\hibbs_c>irb
irb(main):001:0> require 'irb/completion'
LoadError: No such file to load -- readline

maybe you don't have readline.so+readline.dll ? (binding + real
library) It did not used to come with the one click installer.

I tried using the readline (dll+so) that was given from
http://www.garbagecollect.jp/ruby/mswin32/en/
and it partially worked (i.e. tab completion was ok) but I had
problems related to proper settings of .inputrc (using the one from my
linux box to get italian settings did not work), so I could not input
some character... well, like [ and { :)
 
C

Curt Hibbs

gabriele said:
il Wed, 28 Jul 2004 21:43:38 +0900, "Curt Hibbs" <[email protected]> ha
scritto::

This reminds me that I want to fix the fact that tab-completion does not
work in irb in the one-click installer -- I never knew why and I kept
forgetting to ask.

I tried why's suggestion for getting it to work under windows (pretty much
the same as Raphael's above), but it doesn't work. Below is my console log.
Does anyone know what is wrong? Am I building the ruby for the one-click
installer incorrectly?

Thanks, in advance, for any help (console log below).

Curt

=== BEGIN-LOG ===

Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\hibbs_c>irb
irb(main):001:0> require 'irb/completion'
LoadError: No such file to load -- readline

maybe you don't have readline.so+readline.dll ? (binding + real
library) It did not used to come with the one click installer.

I tried using the readline (dll+so) that was given from
http://www.garbagecollect.jp/ruby/mswin32/en/
and it partially worked (i.e. tab completion was ok) but I had
problems related to proper settings of .inputrc (using the one from my
linux box to get italian settings did not work), so I could not input
some character... well, like [ and { :)

But if it is supposed to come with ruby, why is it not getting built?

Curt
 
G

gabriele renzi

il Wed, 28 Jul 2004 22:06:19 +0900, "Curt Hibbs" <[email protected]> ha
scritto::


But if it is supposed to come with ruby, why is it not getting built?

the readline library is an external one, just like openssl or zlib
Ruby's source just contains the bindings, so I think the configure on
the oneclick build system did not find GNU/readline and just skipped
it's compiling.
 
C

Curt Hibbs

gabriele said:
il Wed, 28 Jul 2004 21:43:38 +0900, "Curt Hibbs" <[email protected]> ha
scritto::

This reminds me that I want to fix the fact that tab-completion does not
work in irb in the one-click installer -- I never knew why and I kept
forgetting to ask.

I tried why's suggestion for getting it to work under windows (pretty much
the same as Raphael's above), but it doesn't work. Below is my console log.
Does anyone know what is wrong? Am I building the ruby for the one-click
installer incorrectly?

Thanks, in advance, for any help (console log below).

Curt

=== BEGIN-LOG ===

Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\hibbs_c>irb
irb(main):001:0> require 'irb/completion'
LoadError: No such file to load -- readline

maybe you don't have readline.so+readline.dll ? (binding + real
library) It did not used to come with the one click installer.

I tried using the readline (dll+so) that was given from
http://www.garbagecollect.jp/ruby/mswin32/en/
and it partially worked (i.e. tab completion was ok) but I had
problems related to proper settings of .inputrc (using the one from my
linux box to get italian settings did not work), so I could not input
some character... well, like [ and { :)

I downloaded http://jarp.jin.gr.jp/win32/readline-4.3-2-mswin32.zip and put
the readline.dll it contained in C:\ruby\lib\ruby\site_ruby\1.8\i386-msvcrt
but I still get this error:

=== BEGIN-LOG ===

Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\hibbs_c>irb
irb(main):001:0> require 'irb/completion'
NameError: uninitialized constant Readline
from c:/ruby/lib/ruby/1.8/irb/completion.rb:184
from (irb):1:in `require'
from (irb):1:in `irb_binding'
from c:/ruby/lib/ruby/1.8/irb/workspace.rb:52:in `irb_binding'
from c:/ruby/lib/ruby/1.8/irb/workspace.rb:52
Maybe IRB bug!!
irb(main):002:0>

=== END-LOG ===
 
W

why the lucky stiff

Curt said:
This reminds me that I want to fix the fact that tab-completion does not
work in irb in the one-click installer -- I never knew why and I kept
forgetting to ask.

This topic's been knocked about on the discussion list for the
(Poignant) Guide. I don't know if this is the same set of files that
Gabriele is offering, but it works for me:

http://whytheluckystiff.net/ruby/dist/readline.so-for-1.8.zip

Two files inside. Place readline.dll in $RUBY/bin. The readline.so
goes in $RUBY/lib/ruby/1.8/i386-mswin32. Then, to get Irb working with
Readline:

irb --readline -r irb/completion

Or the ~/.irbrc that Raph offered will work as well.

_why
 
C

Carl Youngblood

Don't you guys think that this stuff should be included in the
one-click installer for Windows? It should probably even include the
~/.irbrc settings to turn it on, so that users don't have to do
anything to have tab completion.
 
C

Curt Hibbs

why said:
This topic's been knocked about on the discussion list for the
(Poignant) Guide. I don't know if this is the same set of files that
Gabriele is offering, but it works for me:

http://whytheluckystiff.net/ruby/dist/readline.so-for-1.8.zip

Two files inside. Place readline.dll in $RUBY/bin. The readline.so
goes in $RUBY/lib/ruby/1.8/i386-mswin32. Then, to get Irb working with
Readline:

irb --readline -r irb/completion

Or the ~/.irbrc that Raph offered will work as well.

Great... this worked!

I want to include this in the Ruby Installer for Windows. Where did you get
this? If you built it yourself, where did you get the source?

Thanks,
Curt
 
C

Curt Hibbs

Carl said:
Don't you guys think that this stuff should be included in the
one-click installer for Windows? It should probably even include the
~/.irbrc settings to turn it on, so that users don't have to do
anything to have tab completion.

Yes, I do. That's precisely why I started asking these questions.

Curt
 
W

why the lucky stiff

Curt said:
Great... this worked!

I want to include this in the Ruby Installer for Windows. Where did you get
this? If you built it yourself, where did you get the source?
I yanked it from the 1.8.1.2 of ActiveRuby. http://arton.hp.infoseek.co.jp/

The readline windows port (the dll) is the one built by eban:
http://jarp.jin.gr.jp/win32/ His package appears to come with the
import libraries which probably just need to be linked. I'm sure it's
just a matter of putting it in the proper path.

_why
 
F

Florian Gross

Curt said:
Great... this worked!

Didn't work for me though. I'm on a German keyboard layout and have to
use ctrl-alt-7 to get a {. This stops working as soon as I use readline
for irb.

I also have a Cygwin-bash available and in the shell itself I can still
type brackets.

Is there any way to fix that? If yes it should also be included into the
one-click installer.

Regards,
Florian Gross
 
C

Curt Hibbs

Florian said:
Didn't work for me though. I'm on a German keyboard layout and have to
use ctrl-alt-7 to get a {. This stops working as soon as I use readline
for irb.

I also have a Cygwin-bash available and in the shell itself I can still
type brackets.

Is there any way to fix that? If yes it should also be included into the
one-click installer.

I have no way to find a solution or test this. But if someone else can do so
and send me the solution I will include it in the installer.

Curt
 
G

gabriele renzi

Didn't work for me though. I'm on a German keyboard layout and have to
use ctrl-alt-7 to get a {. This stops working as soon as I use readline
for irb.

imvho this is a problem with readline, try to get a proper .inputrc
file. It's hard on my italian box too.
 
F

Felipe Malta de Oliveira

Absolutely, especially when some people are just starting to learn and love
Ruby (like me) and don't have a *nix box, this is a great addition and an
imense help when first learning Ruby...Nubys will apreciate it! :)


----- Original Message -----
From: "Carl Youngblood" <[email protected]>
To: "ruby-talk ML" <[email protected]>
Sent: Wednesday, July 28, 2004 11:31 AM
Subject: Re: [ANN] Why's (Poignant) Guide to Ruby: Expansion Pak I: The
Tiger's Vest (with a Basic Introduction to Irb)
 

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
474,001
Messages
2,570,254
Members
46,850
Latest member
VMRKlaus8

Latest Threads

Top