Hey all,

i get another PATH (or the like) RubyMate versus command line discrepancy.

i wanted to test osx/cocoa install against previous rubygems installed.

then i've done (cut'n paste) a small script using both kind of ruby extension :

#!/usr/bin/env ruby -w

require 'osx/cocoa'
require 'plist'
require 'iphoto2' #<<-- line 6

blaahblahblah

this script is working well using command line however using RubyMate i got :
RubyMate r2496 running Ruby v1.8.4.
>>> ~/work/Ruby/RubyCocoa/test.rb

LoadError: no such file to load -- iphoto2
method require
in test.rb at line 6
at top level
in test.rb at line 6


something really strange to me i dis install 'plist' and 'iphoto2' at the same time and using the same tool 'rubygems'....

ans, they are in the same directory :

[...]
/opt/local/lib/ruby/gems/1.8/gems/iphoto2-1.0.1
/opt/local/lib/ruby/gems/1.8/gems/iphoto2-1.0.1/iphoto2.rb
/opt/local/lib/ruby/gems/1.8/gems/iphoto2-1.0.1/test_iphoto2.rb
[...]
/opt/local/lib/ruby/gems/1.8/gems/plist-1.0.0
/opt/local/lib/ruby/gems/1.8/gems/plist-1.0.0/plist.rb
/opt/local/lib/ruby/gems/1.8/gems/plist-1.0.0/test_plist.rb
[...]

in case u've some light about that obscure cavern ;-)

best,

Yvon