Forum: RSpec [rspec/tm] When running the textmate bundle hook using command-r I get an error about missing rubyge

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Nshbrown N. (Guest)
on 2009-03-12 18:34
(Received via mailing list)
I get the following error using both edge version of the TM bundle and
rspec/rspec-rails in vendor/plugins.

/Users/nshb/Library/Application Support/TextMate/Bundles/
RSpec.tmbundle/Support/lib/spec/mate.rb:2:in `require': No such file
to load -- rubygems (LoadError) from /Users/nshb/Library/Application
Support/TextMate/Bundles/RSpec.tmbundle/Support/lib/spec/mate.rb:2
from /tmp/textmate-command-20424.rb:2:in `require' from /tmp/textmate-
command-20424.rb:2

Any ideas? IRB loads rubygems fine, not sure why it's not working here.
David C. (Guest)
on 2009-03-13 07:21
(Received via mailing list)
On Sat, Mar 7, 2009 at 3:03 PM, Nathaniel B. 
<removed_email_address@domain.invalid> wrote:
> Any ideas? IRB loads rubygems fine, not sure why it's not working here.
I've never seen that before - no ideas here. Anybody else?
Scott T. (Guest)
on 2009-03-13 09:19
(Received via mailing list)
David C. wrote:
>> command-20424.rb:2
>>
>> Any ideas? IRB loads rubygems fine, not sure why it's not working here.
>>
>
> I've never seen that before - no ideas here. Anybody else?
>
I don't use textmate at all, but I'd check that it's the same ruby
version (RUBY_VERSION, RUBY_PATCHLEVEL), and that the $LOAD_PATH is the
same as an irb session.

How is ruby being invoked in that script?  I prefer to use "/usr/bin/env
ruby", but on occasion I've seen absolute paths to /usr/bin/ruby or
/usr/local/bin/ruby - both which may fail if you have, say, a ruby
installed via macports and the one that came with OS X.

I'd bet that a different ruby executable is being used - one which
doesn't have rubygems installed.

Scott
This topic is locked and can not be replied to.