sinatra/lib
Ryan Tomayko dfcb252773 Fix block param arity handling under 1.9
This modifies the way block params are handled so that block params
have 1.8 semantics under 1.8 and 1.9 semantics under 1.9.

* Spec Ruby 1.9 such that mismatched arity raises an ArgumentError.

* Spec Ruby 1.8 such that mismatched arity does not raise an
  ArgumentError.

* Do not attempt to pass block params to handlers defined with 0
  arity. This avoids the ArgumentError for 0 arity blocks on 1.9
  with the common case route that defines no block params but does
  include parameter captures/splats.

Coding for Ruby 1.9 results in code that is compatible with both
versions.
2009-02-02 18:49:12 -08:00
..
sinatra Fix block param arity handling under 1.9 2009-02-02 18:49:12 -08:00
sinatra.rb Minor tweaks to use_in_file_templates! auto loading 2009-01-17 17:10:10 -08:00