Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Ruby Talk FAQ

rdp edited this page · 23 revisions

FAQ

Welcome to the list of Frequently Asked Questions on the ruby-talk mailing list ! Feel free to add to it!

What are the ruby-talk best practices/guidelines?
How do I convert a ruby script into a distributable executable?
What is the best Ruby GUI framework?
What is the best editor for Ruby?
Ruby should do X!

What are the ruby-talk best practices/guidelines?

I have a question about Ruby-on-Rails, Watir, or some other framework written in Ruby.

  • You will most likely get a more qualified response from the project-specific mailing lists or forums than on the ruby-talk mailing list. The ruby-talk mailing list focuses on the Ruby programming language itself. Check the projects homepage for details about where to get help.

How do I convert a ruby script into a distributable executable?

Windows

  • Ocra is often recommended for Windows users.
  • The older way is “rubyscript2exe”, but this project is not updated for newer Ruby versions.
  • exerb is also another windows packager.
  • All the cross platform ones also work with doze.

Cross platform

  • AllInOneRuby
  • “crate” is cross platform (and often recommended for linux) [1 2].
  • rawr is a distributor for jruby.
  • Source code: If you just wish to distribute your ruby code to other developers then you could also distribute it as a gem.
  • Shoes (somewhat unmaintained GUI framework) allows packaging distributables for each OS.

Is there an updated One Click Installer for Windows users?

  • Ruby Installer is the successor to the One-Click Installer. Release candidates of newer Ruby versions are available for download. While they are not directly compatible with the old One-Click Installer, they are generally stable for most uses.

What is the best editor for Ruby?

here is a list comparing some

What is the best Ruby GUI framework?

Ruby should do X!

  • Please read this post for an intro to writing RCR’s. I would note that the latest way to submit an RCR is to just submit it to the ruby-core mailing list and/or create a RedMine ticket. Typically I would recommend discussing it on ruby-talk first, as well.

Instructions on how to submit a patch

What are closures?

Why does ruby’s comparison with floats fail?

Example:

>> (2.0-1.1) == 0.9
=> false

Why? Because floats are by default slightly imprecise

Note: this is not the first ruby faq. Take a step back in history and see the original

Something went wrong with that request. Please try again.