Questions tagged [jruby]

JRuby is an open-source Java implementation of the Ruby programming language. It is Ruby for the JVM. Using idiomatic Ruby syntax, JRuby can consume Java classes and libraries with ease.

JRuby is an open-source Java implementation of the Ruby programming language. It is Ruby for the JVM. Using idiomatic Ruby syntax, JRuby can consume Java classes and libraries with ease.

The tight integration of JRuby with the JVM affords JRuby many advantages which include concurrency, native threads, a mature and efficient garbage collector and significant performance boosts via JIT compilation.

2833 questions
10
votes
2 answers

Ruby gui for Desktop apps

After long hours googling around, I'm wondering if there really exists a maintained gui based on Ruby. Here are the one I checked: Shoes: I'm not feeling like I could create rock solid platform with it Cocoa and MacRuby: no fresh news, almost no…
apneadiving
  • 114,565
  • 26
  • 219
  • 213
10
votes
2 answers

ruby on android : ruboto vs rhodes?

Has anyone tried developing an Android app using Ruby? If so, which tool would you recommend? What are the advantages and disadvantages, comparing (between) both? Any sharing of experience, insight, etc., would be much appreciated.
mhd
  • 4,561
  • 10
  • 37
  • 53
10
votes
6 answers

jRuby on Rails vs Grails

I'm looking to develop a greenfield web application which will reuse a lot of Java components. To me, the obvious options for this are Grails or jRuby on Rails, but I'm having trouble finding objective comparisons of the two. Are there any clear…
Armand
  • 23,463
  • 20
  • 90
  • 119
10
votes
4 answers

Java libraries to manage CSS explosion and or reuse?

Java Q: I like CSS for simple web pages but loathe it when it comes to real world sites because you get css explosion and lots of repeating. I am tempted to use Sass and or Compass but they are Ruby programs which will most likely require some…
Adam Gent
  • 47,843
  • 23
  • 153
  • 203
10
votes
2 answers

Find out which gems require native c extensions from a Gemfile?

I just recently started shifting attention towards deploying Ruby apps atop TorqueBox which of course is built atop Jruby. Hitherto I have been basically performing a bundle install and then tackling each gem along the way to jrubydom, but I've hit…
ylluminate
  • 12,102
  • 17
  • 78
  • 152
10
votes
2 answers

Instantiating a non-static Java Inner Class from JRuby

So given the following java class: class Outer { private int x; public Outer(int x) { this.x = x; } public class Inner { private int y; public Inner(int y) { this.y = y; } public int sum() { return x + y; } } } I can create an…
rampion
  • 87,131
  • 49
  • 199
  • 315
10
votes
2 answers

Rails migration generates default timestamps (created_at, updated_at) as NULLABLE

Some time ago we upgraded our application to Rails 4 and switched to JRuby. Before that change migrations created the default timestamps as NOT NULL. After that change the NOT NULL is missing. We create these timestamps (created_at, updated_at) as…
maerzbow
  • 185
  • 1
  • 2
  • 9
10
votes
1 answer

Strange meaning of || and ||= in Ruby (2.0, 1.9.3, jruby 1.7.4)

Consider the following irb snippet from a freshly-started session: irb:01> baz # => NameError, baz is not defined irb:02> baz || baz = 0 # => NameError, baz is not defined irb:03> baz # => nil baz was an undefined variable and…
door_number_three
  • 5,843
  • 2
  • 16
  • 21
10
votes
1 answer

How to specify that gem is JRuby platform only?

I am working on a gem which will only work for JRuby platform. How can I specify that in my .gemspec?
Nitish Upreti
  • 6,312
  • 9
  • 50
  • 92
10
votes
2 answers

Logging inside threads in a Rails application

I've got a Rails application in which a small number of actions require significant computation time. Rather than going through the complexity of managing these actions as background tasks, I've found that I can split the processing into multiple…
Mark Westling
  • 5,904
  • 4
  • 26
  • 30
10
votes
5 answers

What's the best way to deploy a JRuby on Rails application to Tomcat?

I'm looking at ways to deploy a Ruby on Rails app (running on JRuby) to a Tomcat instance for testing. The tomcat instance is running on a Solaris server that I can SSH to. I've looked at using Capistrano, but there doesn't seem to be a lot out…
madlep
  • 47,370
  • 7
  • 42
  • 53
10
votes
1 answer

Rails app on JRuby 1.7 in Nailgun mode does not start

I installed JRuby 1.7.2 in RVM, created a gemset, executed bundle install. Now, I run this: Term 1: [lzap@lzapx my_app]$ bundle exec jruby --ng-serv NGServer started on all interfaces, port 2113. Term 2: [lzap@lzapx my_app]$ JRUBY_OPTS="--1.9 --ng"…
lzap
  • 16,417
  • 12
  • 71
  • 108
10
votes
1 answer

JRuby 1.7.1 and PsychParser error parsing UTF-8 YAML file (Rails 3.2.8)

In our JRuby/Rails project, we are using the i18n gem, and support Japanese as well as English. Our config/locales.ja.yml file is in UTF-8, without any BOM. When running Rails 3.2.9 on JRuby 1.7.1, we now see the following error: % jruby -S rake…
buruzaemon
  • 3,847
  • 1
  • 23
  • 44
10
votes
2 answers

How to setup neo4j with dBpedia ontop of ruby-on-rails application?

I am trying to use dBpedia with neo4j ontop of ruby on rails. Assuming I have installed neo4j and downloaded one of the dBpedia datasets. How do I import the dbpedia dataset into neo4j ?
0x90
  • 39,472
  • 36
  • 165
  • 245
10
votes
6 answers

Can JRuby use original Ruby gems?

I am considering about what is the difference between JRuby on Rails and the original Ruby on Rails for my product? How does it difference in development activity, deployment, support between its original, or scalability? I have read many article.…
Teerasej
  • 1,486
  • 4
  • 21
  • 31