Created
January 19, 2015 06:38
-
-
Save monkstone/b5714dbf84431273ec87 to your computer and use it in GitHub Desktop.
ruby-processing test case
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"JRUBY": "false", | |
"PROCESSING_ROOT": "/home/tux/processing-3.0a5", | |
"X_OFF": 192, | |
"Y_OFF": 108 | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'psych' | |
CONFIG_FILE_PATH = File.expand_path('~/.rp5rc') | |
RP_CONFIG = (Psych.load_file(CONFIG_FILE_PATH)) | |
p RP_CONFIG |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
command = ['java', | |
'-cp', | |
'/home/tux/jruby-complete/jruby-core-9.0.0.0.pre1-complete.jar', | |
'org.jruby.Main', | |
'psych.rb' | |
].flatten | |
exec(*command) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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