Great note from one of the ExecJS maintainers on GitHub: Use therubyrhino — that way ExecJS doesn’t marshal out to an external runtime and the whole IO.popen issue disappears.
Works great!
Read full article »
Coffee script compile fails in Rails 3.1.rc4 (w/ JRuby 1.6.3 –1.9)
If the title didn’t scare you off, please, continue reading:
I’ve been trying to diagnose why HTTP requests for /assets/application.js are failing with TypeError: can’t convert Hash into String. It works fine under MRI 1.9.2.
After a bout of ruby-debug-ide debugging issues (I’m looking at you Exception in DebugThread loop: undefined method `is_binary_data?’); I believe I have it narrowed … Read full article »
Debugging JRuby 1.6.3 in Aptana Studio
If you’re following the typical tutorials out there and adding ruby-debug to your Gemfile, you’ll be in for a nice surprise if you’ve also installed ruby-debug-ide and attempt to run the server in debug mode from the IDE.
Both ruby-debug and ruby-debug-ide define RemoteInterface and you’ll get a nasty little type error about a conflicting superclass. … Read full article »
Installing JRuby in Ruby 1.9 mode as your default on OS X
In this mini tutorial we will be accomplishing the following:
Installing JRuby 1.6.3
Setting JRuby as our default Ruby interpreter
Setting Ruby 1.9 as the default interpreting mode for JRuby.
Open up Terminal.app and let’s get started.
rvm install jruby-1.6.3
rvm use jruby-1.6.3 –default
vi ~/.bash_profile
Once you’re in VI, add the following at the end and save it:
export JRUBY_OPTS=–1.9
You’ll need to close/re-open … Read full article »
View Post jruby, ruby, rvm