Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 1 year ago.
Improve this question
I have following concern:
I should creat a application for a documentation tool (Tex/Word files to a final PDF). This tool requires a GUI and I would really love to write it in my fav programming lang Ruby.
The main problem while asking my friend google was: every question was asked 3+ years ago and/or the libraries are outdated.
So is there a nice way to get a GUI with Ruby on Mac/Linux and Windows (it would not bother me to create two different interfaces). Or are some better solutions out there (please no .java)
(Ruby on Rails could be a solution, but only browserbased ...)
Would be happy for your Ideas and Solutions :)
Best Regards
bMalum
I grepped #ruby channel logs and found that people often recommend Shoes framework for Ruby GUI apps.
Since Shoes makes use of JRuby, it requires Java to run. It shouldn't be a problem if your software is intended for regular people, as Java is installed on most computers anyway.
GitHub: https://github.com/shoes/shoes4
Some tutorial: http://pragtob.wordpress.com/2013/07/17/shoes-4-a-progress-report/
While there are some Ruby solutions for GUI, I would go for writing a Rails Web application and wrapping it with node-webkit instead. You will have a separate window for the application so it's kind of a native app, not a webapp. ;)
Please note you will need to bundle both node.js and Ruby binaries for the platforms you want to support. The most popular approach for node-webkit wrapped apps is AngularJS - then you don't have to bundle Ruby.
I have created a Gem LibUI for creating small GUI tools in Ruby. You can try it out if you like.
https://github.com/kojix2/libui
Related
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 7 years ago.
Improve this question
Ruby is hard when all they have is a command prompt. Any idea as to what I might be doing wrong? None of the tutorials mention about opening a program with a GUI although they explain the code as if you already have one opened.
It sounds like you might be getting a programming language (Ruby) mixed up with an IDE (Integrated Development Environment) like Elicpse, Netbeans or Visual Studio which are all graphical interfaces (GUIs) that help you write programs (in Java, C++, Ruby etc).
Because Ruby is an interpreted language with a powerful command line interface REPL (read–eval–print loop) I'd say that most people would say the best way to learn Ruby is to get familiar with the command line and fire up the interpreter and start playing. Using the interpreter will allow you to start from the basics like just running 2+2 and seeing the result instantly.
If you don't feel comfortable diving in to a command line then perhaps you could try something like Aptana Studio IDE. There will be a learning curve for that as well so perhaps if you just want to start from the absolute basics maybe try using the Try Ruby website. It provides a web based "console" for you to try out and learn the ruby basics.
Finally, if you do want to learn ruby the best way, and you are on Windows then I suggest downloading Cygwin and running the Ruby interpreter there. There are plenty of tutorials on how to get cygwin and ruby installed, Wikibooks provides a good start.
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 8 years ago.
Improve this question
I'm new to Ruby and want to write a web service using Ruby. Some constraints are:
Ruby 1.8.7
Windows 2008 Server
I found that the Sinatra gem may help. I want to know if there are any other options beside Sinatra.
Sinatra is a very easy-to-use way to go, and what I'd recommend to get your feet wet.
There are other solutions:
Padrino is built on-top of Sinatra, and offers additional functionality, but for your purposes Sinatra is still a more easily accessible way to go as you'll spend less time configuring.
Rails is the heavy-weight solution for Ruby, but if you are just learning the language then I'd recommend Sinatra still. Rails is very powerful but a lot of things it does will seem like magic, though they are actually based on standard Ruby features. So, I think you are still better off learning Ruby and working with Sinatra to get the basics.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 7 years ago.
Improve this question
I am thinking of writing customized torrent client in ruby. I found the following libraries (which are pretty old as Matt pointed out bellow). However i would like to hear about any library that i might have missed and i would love to hear what the community have to say about the following libraries. As in pros and cons...
RubyTorrent
libtorrent-ruby
Please note that i am hoping to modify some inner workings of the library to suit my needs. Hence a pure ruby library would be ideal.
Note: I searched stackoverflow for this question (or anything similar). The only questions that came up were asked long ago and didn't have any decent answers. Hence this new question.
Ruby Torrent Library
Thanks for your time!
After not finding any good solution to connect my ruby code to a BitTorrent protocol I have implemented a Ruby wrapper for the Transmission RPC API:
http://rubygems.org/gems/transmission_api
It is a very simple version that works for my needs.
Of course it has a very big dependency of a Transmission client running for it, but I think it is a dependency you want to have due it is a very stable and very updated bittorrent client.
I recommend to set up a headless transmission daemon
You have a few alternatives, rolling your own with FFI and any c/c++/java torrent library, or use a well known torrent daemon (ie: transmission, utorrent, etc) and talk to it via its rpc interface.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
I have a web application written mostly in Java. There are a few users that hope to use ruby to tailor this application to suit their own needs. How would I write an API that allows Ruby developers to interact with my application?
I'm really looking for some direction here - I know it's a broad question..
I think rmk has the right idea here, but I think rails is overkill. You've really got two feasible options:
The first option would be to leverage JRuby to allow them to provide JRE classes that you can interface with your code. They can write classes in ruby, compile them with JRuby, and you can deploy them with your app.
The other viable option would be to create a restful API using your existing java codebase and let them consume your api from ruby, much like rmk suggests. If you're providing a restful api, there's no need to add the overhead of jruby and rails unless you have some desire to.
You could write up a simple web service using JRuby + Rails.
Learn more about JRuby here: http://jruby.org/
The main advantage of using JRuby is that you will be able to leverage your existing Java code. The main advantage of using Ruby on Rails is that developing a web service will be a painless, even pleasurable experience.
And if you design your API in a RESTful manner, you can have Ruby programmers consume your API using ActiveResource
Resources:
Quick intro to JRuby on Rails: 120 second guide.
Great book if you want to get started: Ola Bini's Book
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 8 years ago.
Improve this question
Should I just go to SourceForge and try to find something that looks interesting by doing a search? Or is there a Ruby-specific website that helps you to find open source projects to contribute to?
After you find it one, do you usually just send an email to the project owner to see if you can help or do you just start submitting code to their repository and they will take it or leave it after reviewing it for quality?
The standard hosting site for Ruby projects is RubyForge. Another site that is slightly older than RubyForge, is the Ruby Application Archive (RAA). In addition to RubyForge, there are also a lot of Ruby projects hosted on SourceForge. Projects that are specific or related to JRuby, are sometimes hosted on CodeHaus or Sun's new project hosting site Kenai. For IronRuby, some projects live on CodePlex. Projects that use the Git Version Control System, are often hosted on either Gitorious or GitHub, whereas projects that use the Darcs Version Control System tend to be self-hosted.
However, especially larger Ruby projects often have their own infrastructure, e.g. Merb, DataMapper and of course Ruby on Rails.
I'd recommend going onto github to look for projects. You can search around, check things out easily and its easier for the project owner to manager your changes.