From: Michael Fellinger Date: 2008-11-17T08:40:22+09:00 Subject: Re: web framework for Ruby 1.9 On Sat, Nov 15, 2008 at 7:52 PM, Stefan Lang wrote: > 2008/11/15 ara.t.howard : >> >> On Nov 14, 2008, at 4:42 PM, Stefan Lang wrote: >> >>> I'm looking for a web framework that: >>> >>> 1) really works with Ruby 1.9 >>> >>> 2) pure Ruby code (i.e. doesn't depend on C-extensions, Java libraries...) >>> >>> 3) has an active community >>> >>> bonus points: >>> >>> 4) doesn't follow the "let's extend core classes whenever possible" craze >>> >>> 5) good postgres support >>> >>> Does such a framework exist or am I asking for too much? >>> >>> Actually I would use Rails, the latest RC is advertised as Ruby 1.9 >>> compatible but I've immediately hit a couple of errors and I >>> don't have the time ATM to fix compatibility errors in such a big >>> codebase and push the changes upstream. What's more, the pure >>> Ruby postgres driver doesn't work anymore. >>> >>> Merb fails with syntax errors with Ruby 1.9. >>> >>> Thanks, >>> Stefan >>> >> >> it's called ramaze. > > Thanks. At least a basic app works fine in Ruby 1.9, > installation is simple, only dependency rack and > colored console output. Neat. > > > But what the hell is with all these extensions to core > classes. > > acquire __DIR__/"*.rb" > > Thats Kernel#acquire, Kernel#__DIR__, Symbol#/ > and String#/. What's wrong with a simple: > > Ramaze::Utils.acquire_relative "*.rb" > > There is nothing modular about putting arbitrary > utility methods into core classes! > Thanks for your feedback, I'll address these things. At least acquire will become Ramaze::acquire, I think the String#/ and Symbol#/ are quite useless as well, given that File.join never changes the separator no matter which platform, so we can deprecate them as well. But __DIR__, I will keep that one around, it's a proposed feature since quite some time and chances are high that it will be added to ruby sometime in the future. Please note that all methods added to core classes are kept in their own modules and will never cause any overwrites of existing methods. See http://github.com/manveru/ramaze/tree/master/lib/ramaze/snippets.rb ^ manveru