[TxMt] TextMate and ruby_gems

Yvon Thoraval yvon_thoraval at mac.com
Fri Jul 14 10:06:48 UTC 2006


Hey all,

if i do, in a ruby file :

#!/usr/bin/env ruby

require 'plist'

plist=Plist.parse_xml(my_info_plist)

within TextMate i get :

NameError: uninitialized constant Plist

altought this script is running well from terminal doing a :

 > ruby essai.rb

the ruby used is the same  (/opt/local/bin/ruby)

i did setup within textmate some enverironnement variables :

TM_RUBY     => /opt/local/bin/ruby
RUBYOPT     => -rrubygems
GEM_HOME => /opt/local/lib/ruby/gems/1.8

they all correspond to what i get in the Terminal ie :

 > which ruby
/opt/local/bin/ruby
 > echo $RUBYOPT
-rrubygems
 > echo $GEM_HOME
/opt/local/lib/ruby/gems/1.8

the, i don't understand where the prob comes from...
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macromates.com/textmate/attachments/20060714/5232b87a/attachment.html>


More information about the textmate mailing list