Sha256: 33bc9c49f1fc9421d53e00d8b353e823d5817b4f58d08d23e1bf9617f865cc81

Contents?: true

Size: 1.38 KB

Versions: 48

Compression:

Stored size: 1.38 KB

Contents

= New Features

* An optimized_string_matchers plugin has been added, which contains
  optimized matchers for single strings.  r.on_branch is an optimized
  version of r.on and r.is_exactly is optimized version of r.is:

    plugin :optimized_string_matchers

    route do |r|
      r.on_branch "x" do
        # matches /x and paths starting with /x/
        r.is_exactly "y" do
          # matches /x/y
        end
      end
    end
 
  Both of these methods will work even if the strings have placeholders,
  but no captures will be yielded to the blocks.

* The error_handler plugin now has access to the request's
  remaining_path when handling an error.  You can then compare the
  remaining_path to path_info to see how much of request was already
  routed, which can be useful when reporting errors.

= Other Improvements

* String matching for strings without placeholders is now 60% faster
  as it uses optimized string operations instead of a regexp match.

* Symbol matching is now 60% faster as it uses optimized string
  operations instead of a regexp match. 

= Backwards Compatibility

* The match methods no longer automatically reset the remaining_path
  via ensure.  This means that using non-local jumps out of the code
  such as begin/rescue and throw/catch will not reset remaining_path
  automatically.  Users that want to reset remaining path in
  such cases should use their own ensure blocks.

Version data entries

48 entries across 48 versions & 1 rubygems

Version Path
roda-3.9.0 doc/release_notes/2.12.0.txt
roda-3.8.0 doc/release_notes/2.12.0.txt
roda-3.7.0 doc/release_notes/2.12.0.txt
roda-3.6.0 doc/release_notes/2.12.0.txt
roda-3.5.0 doc/release_notes/2.12.0.txt
roda-3.4.0 doc/release_notes/2.12.0.txt
roda-3.3.0 doc/release_notes/2.12.0.txt
roda-3.2.0 doc/release_notes/2.12.0.txt
roda-3.1.0 doc/release_notes/2.12.0.txt
roda-3.0.0 doc/release_notes/2.12.0.txt
roda-2.29.0 doc/release_notes/2.12.0.txt
roda-2.28.0 doc/release_notes/2.12.0.txt
roda-2.27.0 doc/release_notes/2.12.0.txt
roda-2.26.0 doc/release_notes/2.12.0.txt
roda-2.25.0 doc/release_notes/2.12.0.txt
roda-2.24.0 doc/release_notes/2.12.0.txt
roda-2.23.0 doc/release_notes/2.12.0.txt
roda-2.22.0 doc/release_notes/2.12.0.txt
roda-2.21.0 doc/release_notes/2.12.0.txt
roda-2.20.0 doc/release_notes/2.12.0.txt