ruby

Installing JRuby with Intellij (OS X)

GET it from http://jruby.org/

There is a download page, download and exract the tar file somehwere.

I put it in /System/Library/Frameworks/JRuby.framework/jruby-1.5.1

I then created a symbolic link to jruby_current

ln -s jruby-1.5.1/ jruby_current

And then simply add it to my ~/.bash_profile

$vi ~/.bash_profile
export PATH=/System/Library/Frameworks/JRuby.framework/jruby_current/bin:$PATH
#Reload the profile…
$. ~/.bash_profile
#Try out jruby…
$jruby -v
jruby 1.5.1 (ruby 1.8.7 patchlevel 249) (2010-06-06 f3a3480) (Java HotSpot(TM) 64-Bit Server VM 1.6.0_17) [x86_64-java]

Now you can add the JRuby SDK to your Java Module in Intellij:

Now you can have ruby and Java in the same project. Awesome.

Share

build
intellij
java
jruby
ruby
thoughtblog

Comments Off

Permalink

Including lib dirs in rubymate when running tests…

RubyMate the ruby plugin for TextMate has a nice feature where it will run your tests for you when you press option-R.

If you want it to add your library and test directories in for you , simply edit the command in the bundle editor. There is an option for RUBYLIB there where you just add say “../lib” and “../test” as appropriate.

Share

ruby

Comments Off

Permalink


times square hotel | Cottage rental