Ruby framework for mobile - ruby

I want to build native mobile application using ruby. I have tried Rhodes and found it to have a commercial licence, which is not free.
Is there another, free Ruby framework for native mobile applications?

Matz has publicized the official mobile ruby called mruby.

There's also RubyMotion for iOS, it isn't free and is certainly expensive...
But it's native.

Related

Integrate WebRTC in Xamarin

There don't seem to be any APIs / examples of how to integrate WebRTC in Xamarin. There is a third party API (IceLink) by a company named Frozen Mountain Software but one requires a paid license to use it.
Any clue as to how to do this ?
You will have to use WebRTC native libraries for Xamarin. If you are good with using precompiled libraries then you may find it over web. However I prefer to compile webrtc native for each target platform. Google has documented steps very well, but it usually take time.
Once you have libraries ready for your platform then you can use it with xamarin. Let me know if you face any issue.

Is it possible to create native graphical user interfaces in Ruby?

I am considering using Ruby for a project, but I'm a complete beginner, so don't know what is, or is not, possible with Ruby 2.0.
I have looked at wxRuby, but it hasn't been updated since 2009, so I take it that means it is not compatible with RUby 2.0.
Is there another option for creating native GUIs, or are these not done in the Ruby land?
Thanks.
It's certainly possible to create GUIs with Ruby, but it doesn't appear to be widely done. Off the top of my head I can think of the following projects that might help you:
rwx - project was created as a successor to wxRuby
RubyMotion for iOS, Android and OS X
Yes, it's certainly possible to create GUIs with Ruby. You can see my full list of Ruby GUI libraries here.
However, desktop Ruby GUI apps aren't widely developed because the Ruby community is heavily weighted toward web application developers, and they are much more likely to build a web application than a desktop application. Ruby is the language of hip tech startups, and conventional user interfaces don't suit their aesthetic.
Also, it's very difficult to build native-looking cross-platform GUI apps, so web applications tend to be more acceptable to end users.

Common coding language for Sphero developers?

I just discovered Sphero and I love this little ball, so I want to develop apps!
Is there a common coding language that most of Sphero's app developers use so that I can learn it and start building?
From glancing over this page http://developer.gosphero.com. You can use Java for developing on the Android platform and Objective-C for iOS. Looks like there is also a plugin for Unity that uses C#.
That webpage also contains guides for the individual platforms and examples.
You could also use ruby with artoo framework: http://artoo.io/documentation/platforms/sphero/ or javascript with cylon framework: http://cylonjs.com/documentation/platforms/sphero/ or even go, with gobot.io/documentation/platforms/sphero/ framework too.
If you want to use Python, there are 2 options beyond the ROS Python plugin currently listed on the developer page.
SpheroNav
SpheroNav was written by Simon Nistad for his master's thesis in 2014, designed to support the control of multiple Spheros. I have forked his code, and will be extending it in upcoming months.
https://github.com/hydrosquall/SpheroNav
Kulka
This is a project by Karol Szuster, aimed at new programmers. Unfortunately I wasn't able to get his example code to work on my windows laptop, but maybe you'll have better luck.
https://github.com/zdanowiczkonrad/PythonSphero

Titanium with ruby for android apps

Can anyone share a short example or tutorial for developing android native apps using Titanium with ruby?
In titanium Appcelerator, I am able to see http://docs.appcelerator.com/titanium/latest/#!/guide/Ruby_Development.
Please help on this.
I believe it's not related to Android development.
Look at the tree on the left. "Ruby Development" is under "Web development" (server side).
Everything related to mobile development is under another item - "Titanium development".
However, if you are interesting in using Ruby to develop for Android, you can take a look at this question:
Ruby practical for Android Development?

Can Ruby be used to develop simple Windows applications?

I've been developing Windows based applications for a long time and most of my present clients still desire a desktop or client/server Windows application. Is it possible to use Ruby for such applications as opposed to its primary purpose of being a Web-programming language?
Ruby is not primarily a web programming language even though Ruby on Rails is certainly suited for web development. Ruby is a general purpose scripting language.
The FXRuby and WxRuby frameworks are the most fully featured GUI frameworks for Ruby. You can write the apps in Ruby and then generate a Windows executable. The frameworks are cross-platform, so you could also run the apps written in these on other platforms, like Linux or Mac OS X.
There are also a few other less popular approaches like QtRuby and Shoes, and you can even use IronRuby (a CLR Ruby implementation) to write a .Net application.
Ruby is a general purpose object oriented scripting language. Ruby on Rails is a web application framework. Ruby predates Rails by about ten years. Don't confuse the two.
Yes, you can. Ruby is a full scripting language. You might want to start with the Ruby language homepage to see the capabilities and libraries that are available.
However, just because you can doesn't mean that you should. Before jumping in and using Ruby for a project, see if Ruby can give you things that other languages can't or if there are any disadvantages to using Ruby.
I know this thread is old, but for future reference to anyone who's looking into options for using Ruby for a GUI app, don't use QtRuby. I had developed a project for school in about a week, fully functional and pretty, only to find out that I could not release it. There was simply no way to package and distribute the application without having your users simulate your exact environment (install all the gem dependencies, build Qt development libraries etc). I tried using:
Crate: supposedly cross-platform, but I found only 1 usage example that's written in 2008 out of ~2 hours of googling, and the example basically covers a very specific subset of applications (some ssl/https authentication gem or w/e...)
Ocra: this looks like a candidate, but it's windows-only and didn't meet my requirements, as I had to target the three primary platforms
tar2rubyscript + rubyscript2exe: I had spent most of my time trying to get this to work because I've come across many who claimed that this is the way to go for distributing GUI apps built in ruby (albeit using other toolkits, Tk/GTK/wxRuby) but it didn't work either; I was endlessly faced with a cryptic error that basically breaks Qt::UiLoader functionality, in other words, you can't load .ui sheets you create with QtDesigner so...
Yes I'm angry and frustrated honestly, because I don't see the point of creating software that you just can't release for anyone to use. Now I'm left with a deadline coming up in a week, and I just hope I make it in time porting the app to C++.
So my answer is, don't use QtRuby. At least for now.
On a mac, you can use the Ruby Cocoa lib to create (what appear to be) native applications. If you want something more cross platform then you might consider a wrapper like shoes or qt.
The Qt toolkit seems the most popular way to do it. The website is http://www.darshancomputing.com/qt4-qtruby-tutorial/
I'm currently writing a little app in a wrapper called Shoes. This seems to make it as simple as pie to create windowed apps in ruby. http://shoes.heroku.com/ is the website.
At the moment Shoes looks suitable only for small personal apps. I say this because it's author recently went AWOL and it's not clear whether it will be developed further. I'm using it to write a game log parser to generate statistics from a flight sim. It's ticking along nicely.
Ruby can be used for developing GUI applications, whether Windows specific or cross-platform.
For Windows targetted you should look at the work going on with IronRuby since they have good integration with the .NET framework overall and with Silverlight, in the event you want to do apps that can bridge web and desktop. At this point IronRuby can be used to develop for Windows Presentation Foundation (WPF) or WinForms.
For cross-platform you have Ruby bindings for QT, FOX and others.
You should look at IronRuby - WPF and windows forms are both supported:

Resources