[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

[ANN] HighLine 0.6.1

James Gray

5/23/2005 1:58:00 PM

HighLine 0.6.1 Released
=======================

This release should fix the Windows install issue.

I decided against using two separate gems. That doesn't sound
comfortable for me, or the users. (Windows users would need to
remember to install highline-win to get a working copy? Yuck.)

Instead, I've disabled the termios dependancy in the gem. HighLine
is unaffected by this change, since it has always been able to run
without it. We've just shifted termios from a "dependancy" to an
"optional extra" (recommended for Unix users). Those of you who want
to use it just need to make the additional install and HighLine will
switch over.

The INSTALL documentation has been updated to reflect this change.

I plan to revisit this issue if/when RubyGems gives me better control
over install dependancies.

My apologies to the Windows users who struggled with the last release.

If anyone uses this, feedback is welcome
(james@grayproductions.net). We do have a TODO list of features we
would like to add, but we're also open to suggestions.

What is HighLine?
-----------------

(from the README)

HighLine was designed to ease the tedious tasks of doing console
input and output with low-level methods like gets() and puts().
HighLine provides a robust system for requesting data from a user,
without needing to code all the error checking and validation rules
and without needing to convert the typed Strings into what your
program really needs. Just tell HighLine what you're after, and let
it do all the work.

What's new in this release?
---------------------------

* Removed termios dependancy in gem, to fix Windows' install.

Where can I learn more?
-----------------------

HighLine is hosted on RubyForge.

Project page: http://rubyforge.org/projects...
Documentation: http://highline.ruby...
Downloads: http://rubyforge.org/frs/?gr...

How do I get HighLine?
----------------------

HighLine is a gem, so as long as you have RubyGems installed it's as
simple as:

$ sudo gem install highline

If you need to install RubyGems, you can download it from:

http://rubyforge.org/frs/?group_id=126&relea...

HighLine will take advantage of the termios library, if installed.
This is a recommended optional extra for Unix users. To add that
gem, simply:

$ sudo gem install termios

HighLine can also be installed manually. Just download the latest
release and follow the instructions in INSTALL:

http://rubyforge.org/frs/?gr...&release_id=2219

James Edward Gray II
Greg Brown



8 Answers

Lloyd Zusman

5/23/2005 9:34:00 PM

0

greg7224

5/23/2005 10:42:00 PM

0

Are you running in Windows or *nix.
If you are on windows, you do not need termios for anything, so do not
worry.

If you are running *nix, a quick way to check if termios was installed
properly is if the problem that requires termios is fixed or not. run
examples/password.rb and jam on the keyboard very fast. If some keys
leak through, then the termios gem probably did not install properly.
If not, then you should be okay.

This is the only known issue that seperates stty from termios as far as
HighLine is concerned, therefore, if you aren't planning on using
HighLine for passwords, you won't need it at all.

It sounds like your issue is with termios, not HighLine, so I am not
sure I can be of much help... if anyone else has the answer though,
please post it.

James is going to be mostly AFK for the next couple days, so if anyone
has any HighLine questions they want to ask off list, feel free to
email me: greg7224 at gmail dot com

greg7224

5/23/2005 10:44:00 PM

0

whoops... missed the uname listing and jumped to conclusions.

Maybe the gem has issues with ruby 1.9.0?

I suggest testing to see if the bug is still there by running
examples/password.rb
If it isn't then termios should be working.

James Gray

5/24/2005 2:08:00 AM

0

On May 23, 2005, at 4:34 PM, Lloyd Zusman wrote:

> James Edward Gray II <james@grayproductions.net> writes:
>
>
>> [ ... ]
>>
>> $ sudo gem install termios
>>
>
> The gem install of highline went smoothly. However, when I did the
> install for termios, I got the errors below. Even though I
> received the
> "successfully installed" message, I'm not sure whether that actually
> occurred.
>
> Any ideas?

Can you tell me what the following code prints?

require "rubygems"
require "highline"

p HighLine::CHARACTER_MODE

__END__

Thanks.

James Edward Gray II


Lloyd Zusman

5/24/2005 9:09:00 AM

0

Lloyd Zusman

5/24/2005 9:14:00 AM

0

James Gray

5/24/2005 3:10:00 PM

0

On May 24, 2005, at 4:08 AM, Lloyd Zusman wrote:

> So now it looks like there are two problems:
>
> 1. rubygems installs don't always work for me
>
> 2. termios doesn't appear to compile properly on my system, although
> it seems to install

These are indeed strange issues. I wish I could provide some
intelligent insights into what's going on here, but we're out of my
knowledge base now.

At lest it seems that you know have a working unstall. That's some
good news.

James Edward Gray II


Lloyd Zusman

5/24/2005 10:10:00 PM

0