# Zerenity 0.8

**URL:** <https://www.ruby-forum.com/t/zerenity-0-8/98350>\
**Category:** Ruby\
**Created:** [July 14, 2006, 1:20am UTC](https://www.ruby-forum.com/t/zerenity-0-8/98350 "2006-07-14T01:20:05Z")\
**Posts on this page:** 3\
**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:** [July 14, 2006, 1:20am UTC](https://www.ruby-forum.com/t/zerenity-0-8/98350/1 "2006-07-14T01:20:05Z")

</div>

= Zerenity

== Version  
0.8

== 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 and gem files can be found at  
[http://www.aimred.com/files/projects/aimred](http://www.aimred.com/files/projects/aimred).

== Example Usage  
require ‘rubygems’  
require\_gem ‘zerenity’

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

== Copyright  
(c) 2006 Farrel L.

Zerenity is released under the Ruby license.

---

<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:** [July 14, 2006, 1:23am UTC](https://www.ruby-forum.com/t/zerenity-0-8/98350/2 "2006-07-14T01:23:27Z")

</div>

> == Installation  
> Zerenity is avaiable as a Ruby gem and gem files can be found at  
> [http://www.aimred.com/files/projects/aimred](http://www.aimred.com/files/projects/aimred).

Whoops, make that [http://www.aimred.com/files/projects/zerenity](http://www.aimred.com/files/projects/zerenity)

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:** [July 14, 2006, 2:02am UTC](https://www.ruby-forum.com/t/zerenity-0-8/98350/3 "2006-07-14T02:02:15Z")

</div>

Farrel L. wrote:

> {Zenity}[[Best Open Source Mac Software Development Software 2023](http://freshmeat.net/projects/zenity)] for Ruby. It allows for
> 
> - Progress display
> - Question display
> - Text information display and editing
> - Warning display
> 
> [snip]

Looks cool! Thanks!

> == Example Usage  
> require ‘rubygems’  
> require\_gem ‘zerenity’
> 
> if (name = Zerenity::Entry(:text=\>“What is your name?”))  
> Zerenity::Info(:text=\>“Hello #{name}”)  
> else  
> Zerenity::Error(:text=\>“No name entered)”  
> end

^^ little typo

-Justin
