Permalink
Commits on Apr 4, 2005
  1. version 0.8.0

    mneumann
    mneumann committed Apr 4, 2005
  2. * examples/ajax/ajax.rb, examples/ajax/ajax.js,

    mneumann
    mneumann committed Apr 4, 2005
    	lib/wee/core/presenter.rb, lib/wee/renderer/html/brushes.rb: Added minimal
    	Ajax update support.
  3. initial import

    mneumann
    mneumann committed Apr 4, 2005
  4. * lib/wee/abstractsession.rb, lib/wee/session.rb,

    mneumann
    mneumann committed Apr 4, 2005
    	  lib/wee/pageless/session.rb, examples/live-update.rb: refactored
    	  Session classes.
    
    	* lib/wee/core/presenter.rb: added send_response method, to send a
    	  premature response.
  5. * lib/wee/pageless/session.rb, lib/wee/pageless/application.rb: Remove

    mneumann
    mneumann committed Apr 4, 2005
    	  dependency of WEBrick::Cookie, use CGI::Cookie instead.
    
    	* lib/wee/adaptors/fastcgi.rb: Added preliminary FastCGI adaptor
    	  (does not work yet with Pageless applications).
    
    	* lib/wee/adaptors/webrick.rb: reordered line
Commits on Apr 3, 2005
  1. * lib/wee/adaptors/webrick.rb: doc fix

    mneumann
    mneumann committed Apr 3, 2005
  2. * lib/wee/core/presenter.rb, lib/wee/core/component.rb,

    mneumann
    mneumann committed Apr 3, 2005
    	  lib/wee/core/decoration.rb, lib/wee/session.rb, 
    	  lib/wee/pageless/session.rb, examples/window.rb, README:
    	  Fixed a bug in processing the callbacks. It was not guaranteed that
    	  all input callbacks are invoked before the final action callback.
    	  This is now guaranteed! I've introduced two separate tree traversals
    	  of process_callbacks to make this work. As a side effect, this also
    	  has removed the dependency of Presenter/Component/Decoration classes
    	  from the CallbackStream class. Instead of a CallbackStream, a code
    	  block is now passed through the
    	  process_callbacks/process_callbacks_chain traversal. The Session
    	  class specifies how to invoke the callbacks.
Commits on Mar 3, 2005
  1. * wee/session.rb, wee/pageless/session.rb: new methods

    mneumann
    mneumann committed Mar 3, 2005
    	  pre_respond_hook, post_callbacks_hook, especially to make pretty-URLs
    	  as suggested by Joao Pedrosa working.
  2. * wee/response.rb (Wee::Response): Use the passed mime_type as

    mneumann
    mneumann committed Mar 3, 2005
    	  content-type (bug fix).
    
    	* wee/request.rb: Made 'info' attribute writeable.
    
    	* wee/core/callback.rb: Added reader method for 'obj'
    
    	* wee/core/component.rb: Added #parent method, to retrieve the parent
    	  component from a child if existent. The parent attribute will be set
    	  during #add_child.
  3. * wee/application.rb, wee/pageless/application.rb

    mneumann
    mneumann committed Mar 3, 2005
    	  (request_handler_expired): Forward to an URL that includes the info
    	  part but neither the request_handler_id nor the page_id.
Commits on Feb 26, 2005
  1. * wee/request.rb, test/test_request.rb, wee/pageless/request.rb,

    mneumann
    mneumann committed Feb 26, 2005
    	  wee/session.rb, wee/pageless/session.rb,
    	  wee/renderer/html/canvas.rb, wee/renderer/html/brushes.rb:
    
    	  - request delimeter changed to /___/ (looks nicer)
    
    	  - refactored Request#build_url, which now takes a hash and
    	    remembers already specified values
    
    	  - A Request knows now itself whether it's a action or a render 
    	    request.
    
    	  - added Request#info attribute. This is a part of the URL that you
    	    can use for your own purposes. It is remembered across requests
    	    unless you overwrite its value.
  2. removed comment

    mneumann
    mneumann committed Feb 26, 2005
  3. * wee/core/presenter.rb, wee/session.rb, wee/application.rb: renamed @…

    mneumann
    mneumann committed Feb 26, 2005
    …properties to @__properties
    
    	* wee/core/component.rb: rename @children to @__children
    
    	* wee/core/component.rb, wee/core/valueholder.rb: rename @decoration
    	  to @__decoration
Commits on Feb 16, 2005
  1. fixed examples

    mneumann
    mneumann committed Feb 16, 2005
Commits on Feb 1, 2005
  1. 0.7.0

    mneumann
    mneumann committed Feb 1, 2005
  2. upload

    mneumann
    mneumann committed Feb 1, 2005
  3. * SelectListTag (r.select_list): NON-backwards-compatible change!!!

    mneumann
    mneumann committed Feb 1, 2005
    	  If it's NOT a multiple select list, then the callback is called
    	  with the choosen value (instead of an array of one element). Method
    	  #selected requires a single value in the same way. No changes if it's
    	  a multiple-select list!
    
    	* minor refactoring of OgScaffolder (added support for Date type).
Commits on Jan 31, 2005
  1. docs uploaded

    mneumann
    mneumann committed Jan 31, 2005
  2. some tags added

    mneumann
    mneumann committed Jan 31, 2005
Commits on Jan 30, 2005
  1. fixed docu

    mneumann
    mneumann committed Jan 30, 2005
Commits on Jan 29, 2005
  1. upload docs

    mneumann
    mneumann committed Jan 29, 2005
  2. use Wee::Presenter

    mneumann
    mneumann committed Jan 29, 2005
  3. * fixed bug in OgScaffolder due to the former additional_args modific…

    mneumann
    mneumann committed Jan 29, 2005
    …ation
    
    * moved skeletons out of bin/wee into directory lib/wee/skeleton
    * template :render_blah_blah will use "component.tpl-blah-blah"
  4. * Added ERB-templating. Example:

    mneumann
    mneumann committed Jan 29, 2005
    	    # file: ~/components/main.rb
    	    class Test < Wee::Component
    
    	      # use template '~/components/main.tpl'
    	      template :render
    
    	      # use template '~/components/main.tpl-buttons'
    	      template :render_buttons
    	    end
    
    	  This allows you to use ERB-templates instead of the render_XXX
    	  methods. You can also call render_XXX methods from ERB, back and
    	  forth. The template file is relative to the file from which the
    	  'template :symbol' call is executed. The template method optionally
    	  takes the two hash-parameters :file and :property.
    	   
    	* Added "Pageless" mode. In pageless mode, the URL displayed in your
    	  browser always looks like "/app". The session id is stored as cookie
    	  and there is no page_id, hence "pageless" mode. No backtracking is
    	  performed! Example:
    
    	    require 'wee/pageless'
    
    	    app = Wee::Utils.app_for(YourMainComponent,
    	      :session => Wee::PagelessSession,
    	      :application => Wee::PagelessApplication)
    
    	    Wee::WEBrickAdaptor.
    	      request_class(Wee::PagelessRequest).
    	      register('/app' => app).
    	      start
    	
    	* Wee::Session: use #set_response, so that subclass of Wee::Session can more
    	  easily modify a response (e.g. add cookies or HTTP headers).
  5. fixed bug. __inputXXX and __actionXXX methods were private and were a…

    mneumann
    mneumann committed Jan 29, 2005
    …liases
    
    to methods that must be public.
  6. * Wee::LiteralMethodCallback and Component#call: Additional arguments

    mneumann
    mneumann committed Jan 29, 2005
    	  are now prepended instead of appended. Example:
    
    	    call MessageBox.new('msg'), :confirm, 1
    
    	    def confirm(one, msgbox_result) 
    	    end
    
    	* Added named callbacks. Example:
    
    	    r.anchor.named_callback('test') { ... }
    
    	  will use 'test' as callback_id instead of a generic one.
    
    	* Methods ImageTag#src_for and GenericTagBrush#css_class_for no more
    	  prepend 'img.' or 'css.' in front of the property name. 
    
    	* Refactored wee/renderer/html/brushes.rb. Removed InputCallbackMixin,
    	  ActionCallbackMixin and ActionURLCallbackMixin modules. Instead the
    	  GenericTagBrush has methods __input_callback, __action_callback etc.
    	  which are aliased in the corresponding Brush classes. Also made the 
    	  SelectList callback marshallable.
Commits on Jan 28, 2005
  1. there no more a Session#current_page method, use #current_callbacks i…

    mneumann
    mneumann committed Jan 28, 2005
    …nstead
  2. * Method Wee::WEBrickAdaptor.request_class added. This allows you to

    mneumann
    mneumann committed Jan 28, 2005
    	  use a custom request class for your application or even a different
    	  one for each registered application. Also added cookie support.
    
    	* Added method Wee::Utils.autoreload_glob which is faster than
    	  #autoreload as it does not traverse the whole LOAD_PATH.
    
    	* Wee::Response: added cookies
  3. * Removed method Wee::Session#current_page and replaced it by

    mneumann
    mneumann committed Jan 28, 2005
    	  #current_callbacks.
    
    	* Wee::Session no longer applies a snapshot if the snapshot equals the current 
    	  state of the components tree 
    
    	* removed duplicate code from continuation/session.rb
  4. * added register_named_for method.

    mneumann
    mneumann committed Jan 28, 2005
  5. * added autoreload_glob to the run.rb template

    mneumann
    mneumann committed Jan 28, 2005
  6. * added 'wee' binary which generates a sample application and

    mneumann
    mneumann committed Jan 28, 2005
    	  recommended directory structure for you (similar to the 'rails' command).
Commits on Jan 27, 2005
  1. * Method Wee::Utils.app_for: Removed the id_seed option. Use id_gen

    mneumann
    mneumann committed Jan 27, 2005
    	  instead, which expects a IdGenerator object (default is now the much more
    	  secure Md5IdGenerator). 
    
    	* Wee::Request: Refactored a lot. Use =/ instead of @ as delimeter for
    	  the request_handler_id/page_id part ('@' looks ugly in Konqueror, as
    	  it is displayed as '%40')
    
    	* Wee::Application: Don't send a RedirectResponse when no
    	  request_handler_id was given. This wasn't neccessary and would
    	  break when introducing cookies.