I am trying to get https://rubygems.org/gems/rbx-require-relative
working on JRuby.
When I run:
$ jruby --1.9 -e ‘require_relative “./version.rb”’
require_relative': undefined methodrealpath’
for File:Class (NoMethodError)
From the above, I infer that realpath should return a fully
qualified path rather than possibly a relative path as FILE can do?
If so, how can one write realpath in the 1.8 flavor of JRuby?
For the record, tried this on:
jruby 1.5.6 (ruby 1.8.7 patchlevel 249) (2010-12-03 9cf97c3) (OpenJDK
Server VM 1.6.0_20) [i386-java]