Reputation: 209
Is it possible to create an entire application in ruby and run as an exe file in windows, or as an application on any OS?
Upvotes: 15
Views: 6590
Reputation: 12906
One important thing to realize about ruby2exe is that it is not compatible with Ruby 1.9 and has not been updated in quite some time. I would recommend Ocra. I have used it myself, and it is compatible with Ruby 1.9 and still being updated.
Upvotes: 15
Reputation: 12536
In a try to give some update to this thread:
Certainly, there are ways to do desktop apps using ruby, but all of them seems a little outdated. NodeJs based projects are gaining a lot of buzz and contribution this days. Projects like Brackets-Shell and Node-webkit are the most prominent in the field. The approach is not so difficult to get, yo can use the ExpressJS framework (similar to Sinatra but in Javascript) and get similar results.
Definitely you should try both of them, or at least read the README on the github pages, there are a ton of projects that fits perfectly in this approach. Personally i have tried Node-Webkit, and the result is amazing, very fast and you can reuse all your web skills.
Upvotes: 1
Reputation: 3277
Sure. There're a couple of frameworks for these purposes. For instance, 'shoes' (search at github). Also, jRuby has a direct access to Java's classes, including Java Swing.
Upvotes: 2
Reputation: 520
A ruby script can be a full application yes, there's no reason it can't.
If I understand what you meant though, you want to compile a ruby script into a standalone executable? If that's what you meant, you could check out ruby2exe.
Another possibility, something that you might want to check out, is Titanium. You can use Ruby and web languages to create totally cross-platform Desktop applications.
Upvotes: 6