From: Zachary Scott Date: 2012-01-24T01:26:43+09:00 Subject: Re: Building desktop application using Ruby and any GUI Framework Oh, I should clarify, you can use any ruby that is >= 1.9.2, I'm not sure about 1.9.1 but 1.9.2 and 1.9.3 both work exceptionally well. There's also a great many number of samples available in the github repo: https://github.com/ashbb/green_shoes/tree/master/samples zzak On Mon, Jan 23, 2012 at 11:22 AM, Peter Vandenabeele wrote: > On Mon, Jan 23, 2012 at 5:05 PM, Zachary Scott wrote: > >> You should give green_shoes[1] a try. >> >> It's an ever so pleasant DSL built on top of Ruby GTK2, here's a >> sample from the readme: >> >> ```ruby >> require 'green_shoes' >> >> Shoes.app( :width => 250, :height => 250 ) do >>  para 'Hello, world!' >>  image 'images/shoes.png' >> end >> ``` >> >> All you need to get started is ruby 1.9.2, rubygems 1.5+, and the gtk2 >> gem (which may be automatically installed for you when installing the >> green_shoes gem): then you're ready to install green_shoes: >> >> gem install green_shoes >> >> The best part, other than the super friendly api, is that your apps >> will run on linux and windows without any modification. They may even >> work on OSX, but I'm not sure the current state of support for mac. >> > > > Just tried on Ubuntu 10.04 (in rvm with 1.9.3) and it installed > like a charm :-) The test program also worked immediately. > > $ cat Gemfile > source :rubygems > > gem 'green_shoes' > > $ bundle install > Fetching source index for http://rubygems.org/ > Installing pkg-config (1.1.2) > Installing glib2 (1.1.2) with native extensions > Installing atk (1.1.2) with native extensions > Installing cairo (1.10.2) with native extensions > Installing gdk_pixbuf2 (1.1.2) with native extensions > Installing pango (1.1.2) with native extensions > Installing gtk2 (1.1.2) with native extensions # this took a minute or so > Installing green_shoes (1.1.354) > Using bundler (1.0.21) > > HTH, > > Peter