Tom is on Rails stuff now (and making great progress...he created his own controller and dispatched to it!) so I'm tackling RubyGems again for a moment. Installing a local gem fails currently because the following test case fails:
class X
def self.make_method(name, &block)
define_method(name, &block)
end
make_method :foo do
return 'bar'
end
end
X.new.foo => LocalJumpError: unexpected return
Obviously the return 'bar' should return from the block-turned-method, not from whoever calls the block-turned-method. It could be a return bug or a define_method bug (I'm leaning toward the former, since we've seen other block return issues).
I'll be tackling this shortly, but if anyone has a fix right now let me know :)
--
Charles Oliver Nutter @ headius.blogspot.com
JRuby Developer @
jruby.sourceforge.net
Application Architect @ www.ventera.com