Thanks for checking at your end - this confirms that there's something
deeper that's playing silly buggers in my mac, and I should probably
check on the textmate mailing list to see what's up, before I nuke my
mac from orbit with a clean install...
Cheers again for the help!
Chris
This is strange.
I've followed your instructions, and put the test file into my rb file like so:
require 'rubygems'
require 'sinatra'
get '/hi' do
"Hello World!"
end
Then I've run the file to test it out:
~/Desktop$ sudo gem install sinatra
Password:
Successfully installed sinatra-0.9.4
1 gem installed
Installing ri documentation for sinatra-0.9.4...
Updating ri class cache with 5063 classes...
Installing RDoc documentation for sinatra-0.9.4...
~/Desktop$ ruby sinatra.rb
./sinatra.rb:3: undefined method `get' for main:Object (NoMethodError)
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`gem_original_require'
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`require'
from sinatra.rb:2
In fact, RubyGems appears to be causing more grief:
~/Desktop$ irb
>> require 'sinatra'
NoMethodError: undefined method `get' for main:Object
from ./sinatra.rb:3
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`gem_original_require'
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`require'
from (irb):1
>> require 'rubygems'
=> false
>> require 'rubygems'
=> false
What does it mean when a require returns false like this?
Gist here: - http://gist.github.com/217464
C
2009/10/24 Karel Minarik <karel....@gmail.com>:
> I've followed your instructions, and put the test file into my rb file like so:
>
> require 'rubygems'
> require 'sinatra'
> get '/hi' do
> "Hello World!"
> end
Tried again with this file called myapp.rb instead of sinatra.rb, and
sinitra worked fine.
Which leaves us back looking at shoulda again...
C