view · edit · sidebar · attach · print · history




  • port sbsm/ to use the rack webserver. Fix handling POST requests
  • Keep in Mind



port sbsm/ to use the rack webserver. Fix handling POST requests

Unit tests of steinwies don't work at all, because the HTTP server is started, but no unit test starts. Pages display again, but the charset is wrong as I shortcutted some header settings. Also submitting the kontakt form still has the wrong state.

Also I think it makes sense to overhaul SBSM to move the call method from steinwies to the sbsm gem to minimize the needed changes. Also more options (like the transhandler) should be made more visible by transforming them to optional values when initializing a SBSM app.

Added a rdoc Rake target. Adding some documenting for new SBSM::App (and other SBSM) classes. While moving call from Steinwies::App to SBSM::App suddenly popped up the following error: 26564d9b8fdca9e857fa370b22a24c5a6fc5837cff2543c8e06114cca48338d1 Steinwies::App
  NoMethodError: undefined method `unknown_user' for #<Steinwies::App:0x0055917e2ab998>
  from /home/niklaus/git/sbsm/lib/sbsm/session.rb:295:in `logout'

This is the root of all evil! The unknown_user is defined in the drbserver.

Fighting on how to server static files when running without apache (eg. running unit tests or call bundle exec rackup

Also the preserving the session info is not working. Now I can preserve the session, but cannot open the DrbConnection anymore, as

 @proxy =, server_uri)
 DRb::DRbServerNotFound: DRb::DRbServerNotFound
 from /home/niklaus/.rbenv/versions/2.3.1/lib/ruby/2.3.0/drb/drb.rb:1718:in `current_server'

But bundle exec rake test work still okay in my checkout for everything without the full test_application.

Pushed commits

view · edit · sidebar · attach · print · history
Page last modified on October 26, 2016, at 05:31 PM