lib/ruby-processing/config.rb in ruby-processing-2.4.4 vs lib/ruby-processing/config.rb in ruby-processing-2.5.0
- old
+ new
@@ -1,17 +1,17 @@
require 'psych'
module Processing
if Processing.exported?
- CONFIG = {'PROCESSING_ROOT' => RP5_ROOT}
- end
+ RB_CONFIG = { 'PROCESSING_ROOT' => RP5_ROOT, 'JRUBY' => 'false' }
+ end
- unless defined? CONFIG
+ unless defined? RB_CONFIG
begin
- CONFIG_FILE_PATH=File.expand_path("~/.rp5rc")
- CONFIG = (Psych.load_file(CONFIG_FILE_PATH))
- rescue
- warn("WARNING: you need to set PROCESSING_ROOT in ~/.rp5rc")
+ CONFIG_FILE_PATH=File.expand_path('~/.rp5rc')
+ RB_CONFIG = (Psych.load_file(CONFIG_FILE_PATH))
+ rescue
+ warn('WARNING: you need to set PROCESSING_ROOT in ~/.rp5rc')
end
end
end