From: Sascha Ebach Date: 2004-07-29T18:50:01+09:00 Subject: Re: [ANN] Rails 0.5.5: Windows, WEBrick, lots! > If you start the server with --auto-reload, each request will get its > interpreter -- just like running as CGI! The server accomplishes this by > instead of using its own interpreter, it'll boot a new one during > request handling. Here's the juicy bit: > > IO.popen("ruby", "r+") do |ruby| > ruby.puts <<-END > require 'cgi' > require 'stringio' > env = #{env.inspect} > CGI.send(:define_method, :env_table) { env } > $stdin = StringIO.new(#{(req.body || "").inspect}) > > Dir.chdir(#{@server_options[:server_root].inspect}) > > eval( > 'load "dispatch.rb"', > binding, > #{File.join(@server_options[:server_root], "dispatch.rb").inspect} > ) > END > ruby.close_write > data = ruby.read > end Ah, that is fantastic! That means you can even use CONSTANTS which is not possible with frameworks like Cerise or mod_ruby (which also has an autoreload, these days) >>> * Changed license to MIT License (and included license file in >>> package) >> >> >> What are the consequences/benefits of that? > > > The Ruby license had a bunch of stuff specific to Ruby. MIT license is > much simpler and very free. Have a look at > http://www.rubyonrails.org/show/License for more. cool >> And, will there be new videos? ;) > > > You betcha! I just got my fancy Sony microphone hooked up, so the next > videos will also have a voice over. I'll be posting them to the newly > established Rails Academy at http://www.rubyonrails.org/show/RailsAcademy Oh man, you amaze us! Really looking forward to video tutorials with audio commentary. How great is that! -- Sascha Ebach