Experiments with ruby-processing (processing-2.2.1) and JRubyArt for processing-3.0

Saturday, 29 June 2013

Testing ruby-processing for compatibility with ruby-2.0

Since jruby-1.7.4, the default version of ruby is 1.9.3 and ruby-processing-1.0.12+ is designed to be run with ruby-1.9 compatibility, will it work with the
--2.0 flag? Here is one way to check if you used jruby to install ruby-processing:-

jruby --2.0 -S rp5 sketch.rb
Or to use built-in jruby-complete-1.7.4 you could set the JRUBY_OPTS environmental variable:-

export JRUBY_OPTS=--2.0
A third way is to set the compat.version in .jrubyrc (home directory or even the local directory).

At present ruby-2.0 support is experimental (and incomplete) with jruby-1.7.4, however it may even be default by jruby-1.7.5?
Anyway so far so good I have not found any problems with ruby-processing-1.0.13.

No comments:

Post a Comment


About Me

My photo
I have developed JRubyArt and propane new versions of ruby-processing for JRuby- and processing-3.2.2