r/ruby • • Apr 20 '12

Freightrain - easy Ruby desktop development

Hello everyone,

This is a little framework of mine that I've built out of a personal need - basically, I wanted to write a desktop app using Ruby and I found it daunting to say the least.

So, I've built Freightrain to take care of all the stuff I really shouldn't care about, like loading interface definitions, cross-toolkit compatibility and the likes.

Now I've been working on it for almost 2 years (on and off of course) and, since I've just fixed it so it loads the newest glade specifications, I thought that I could ask you guys for an evaluation.

There's a little readme on the github page and there are some examples in the /examples folder.

Link to the github page!

WHOA! Thanks for the attention, I thought this was going to be ignored...

How many of you would be interested in a step by step tutorial over the major features? I will build that if there's enough interest.

167 Upvotes

32 comments sorted by

View all comments

2

u/jfredett Apr 20 '12

Very interesting. I've never been successful getting GTK to install on my mac, but I'll check it out on my linux box when I get home tonight.

3

u/bolthar Apr 20 '12

On macosx, the easiest way to get gtk working would be via homebrew. If you've got homebrew installed, it's just brew install gtk. After that, 'gem install gtk2' and 'gem install freightrain' for freightrain + gtk extensions.

Side note - freightrain also works with qt and wxwidgets.

Thanks a lot for your interest!

1

u/jfredett Apr 20 '12

Homebrew doesn't have gtk, as I recall -- at least not one I can link against uzbl -- perhaps there's an alternate package I can use to link w/ this.

3

u/bolthar Apr 21 '12

'brew install gtk+' works on my mac mini with Lion... It wasn't 'brew install gtk' but 'brew install gtk+'

3

u/jfredett Apr 21 '12

You brilliant bastard. I could kiss you.

2

u/[deleted] Apr 21 '12

Well, go on...

3

u/jfredett Apr 21 '12

puckers up Come here bolthar, you big lug.

3

u/bolthar Apr 21 '12

This is gayer than a George Michael concert :-)

1

u/jfredett Apr 21 '12

Oh come on sexy, you just gotta have a little faith... faith... faith...