# Zerenity 1.0

**URL:** <https://www.ruby-forum.com/t/zerenity-1-0/64703>\
**Category:** Ruby\
**Created:** [August 15, 2006, 2:17pm UTC](https://www.ruby-forum.com/t/zerenity-1-0/64703 "2006-08-15T14:17:56Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Farrel\_L](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/9d8465/32.png) [@Farrel\_L](https://www.ruby-forum.com/u/Farrel_L)\
**Post date:** [August 15, 2006, 2:17pm UTC](https://www.ruby-forum.com/t/zerenity-1-0/64703/1 "2006-08-15T14:17:56Z")

</div>

= Zerenity Changelog  
== 1.0

- Added significant unit testing and code coverage testing.  
== 0.9
- Added a :password option to the Entry dialog. When set to true it will  
treat the text entry like a password entry and replaces the characters  
entered with a ‘\*’.  
== 0.8
- Initial release.

= Zerenity

== Version  
1.0

== Author  
Farrel L. [http://www.lifson.info](http://www.lifson.info) [http://www.aimred.com](http://www.aimred.com)

== Synopsis  
Zerenity is an almost clone of  
{Zenity}[[Best Open Source Mac Software Development Software 2023](http://freshmeat.net/projects/zenity)] for Ruby. It allows for  
the easy creation of simple graphical dialogs from a Ruby script.

== Features  
Zerenity allows for the creation of the following dialogs

- Date selection
- Text entry
- Error display
- File/directory selection
- Information display
- List display and selection
- Progress display
- Question display
- Text information display and editing
- Warning display

== Dependencies  
Zerenity requires {GTK2}[[http://www.gtk.org](http://www.gtk.org)] and  
{Ruby/GTK2}[[http://ruby-gnome2.sourceforge.jp/hiki.cgi](http://ruby-gnome2.sourceforge.jp/hiki.cgi)].

== Installation  
Zerenity is avaiable as a Ruby gem. Links to the latest release can be  
found at [http://www.aimred.com/files/projects/zerenity](http://www.aimred.com/files/projects/zerenity).

The code is also available via it’s Subversion repository at  
[http://zerenity.googlecode.com/svn/](http://zerenity.googlecode.com/svn/)

== Example Usage  
=== User Input and Display  
require ‘rubygems’  
require ‘zerenity’

if (name = Zerenity::Entry(:text=\>“What is your name?”))  
Zerenity::Info(:text=\>“Hello #{name}”)  
else  
puts “No name entered”  
end

=== Progress  
require ‘rubygems’  
require ‘zerenity’

fileList = filesToProcess(folder)  
Zerenity::Progress(:text=\>‘Processing files’,:autoClose=\>true) do  
|progress|  
fileList.each\_index do |file,index|  
processFile(file)  
progress.update(index/fileList.length,“#{index/fileList.length}%  
processed…”)  
end  
end

== License  
Zerenity is released under the BSD license.

== Copyright  
(c) 2006 Farrel L.

---

<div class="post-metadata">

**Author:** ![Farrel\_L](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/9d8465/32.png) [@Farrel\_L](https://www.ruby-forum.com/u/Farrel_L)\
**Post date:** [August 17, 2006, 3:19am UTC](https://www.ruby-forum.com/t/zerenity-1-0/64703/2 "2006-08-17T03:19:49Z")

</div>

Farrel L. wrote:

> = Zerenity Changelog  
> == 1.0
> 
> - Added significant unit testing and code coverage testing.  
> == 0.9
> - Added a :password option to the Entry dialog. When set to true it will  
> treat the text entry like a password entry and replaces the characters  
> entered with a ‘\*’.  
> == 0.8
> - Initial release.
> 
> = Zerenity
> 
> == Version  
> 1.0
> 
> == Author  
> Farrel L. [http://www.lifson.info](http://www.lifson.info) [http://www.aimred.com](http://www.aimred.com)
> 
> == Synopsis  
> Zerenity is an almost clone of  
> {Zenity}[[Best Open Source Mac Software Development Software 2023](http://freshmeat.net/projects/zenity)] for Ruby. It allows for  
> the easy creation of simple graphical dialogs from a Ruby script.

Hi,

Is there any way to have be the same as pressing ‘OK’ (without  
selecting it, I mean)? So you could just type in some text in a textbox  
and press enter.

Thanks.

-Justin

---

<div class="post-metadata">

**Author:** ![Farrel\_L](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/9d8465/32.png) [@Farrel\_L](https://www.ruby-forum.com/u/Farrel_L)\
**Post date:** [August 17, 2006, 7:52am UTC](https://www.ruby-forum.com/t/zerenity-1-0/64703/3 "2006-08-17T07:52:43Z")

</div>

> –  
> Posted via [http://www.ruby-forum.com/](http://www.ruby-forum.com/).

Thanks for the suggestion, never thought it, I’ll put it in the next  
release.

Farrel

---

<div class="post-metadata">

**Author:** ![Farrel\_L](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/9d8465/32.png) [@Farrel\_L](https://www.ruby-forum.com/u/Farrel_L)\
**Post date:** [August 18, 2006, 4:05pm UTC](https://www.ruby-forum.com/t/zerenity-1-0/64703/4 "2006-08-18T16:05:33Z")

</div>

Go Farrel!  
Yay SA!

Thanks for the work!

Les

---

<div class="post-metadata">

**Author:** ![Farrel\_L](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/9d8465/32.png) [@Farrel\_L](https://www.ruby-forum.com/u/Farrel_L)\
**Post date:** [August 17, 2006, 5:35pm UTC](https://www.ruby-forum.com/t/zerenity-1-0/64703/5 "2006-08-17T17:35:39Z")

</div>

Farrel L. wrote:

> > –  
> > Posted via [http://www.ruby-forum.com/](http://www.ruby-forum.com/).
> 
> Thanks for the suggestion, never thought it, I’ll put it in the next  
> release.
> 
> Farrel

Awesome! Thanks!

-Justin
