dfcb252773
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. |
||
---|---|---|
.. | ||
sinatra | ||
sinatra.rb |