Skip to content

Instantly share code, notes, and snippets.

@monkstone
Created January 19, 2015 06:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save monkstone/b5714dbf84431273ec87 to your computer and use it in GitHub Desktop.
Save monkstone/b5714dbf84431273ec87 to your computer and use it in GitHub Desktop.
ruby-processing test case
{
"JRUBY": "false",
"PROCESSING_ROOT": "/home/tux/processing-3.0a5",
"X_OFF": 192,
"Y_OFF": 108
}
require 'psych'
CONFIG_FILE_PATH = File.expand_path('~/.rp5rc')
RP_CONFIG = (Psych.load_file(CONFIG_FILE_PATH))
p RP_CONFIG
command = ['java',
'-cp',
'/home/tux/jruby-complete/jruby-core-9.0.0.0.pre1-complete.jar',
'org.jruby.Main',
'psych.rb'
].flatten
exec(*command)
command = ['java',
'-cp',
'/home/tux/jruby-complete/jruby-complete-1.7.18.jar',
'org.jruby.Main',
'psych.rb'
].flatten
exec(*command)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment